Create a Cloud spanner instance

0 votes
I want to set up a relational database that offers transactional consistency at global scale, that is also having high availability. I found Cloud spanner as the perfect match for my requirements. How to create a cloud spanner instance on google cloud?
Nov 13, 2019 in GCP by anonymous
• 19,610 points
1,029 views

1 answer to this question.

0 votes

You can create an instance with the gcloud command-line tool or with the Google Cloud Platform Console.

Use the gcloud spanner instances create command:

gcloud spanner instances create [INSTANCE-ID] --config=[INSTANCE-CONFIG] \
    --description="[INSTANCE-NAME]" --nodes=[NODE-COUNT]

Provide the following values:

  • [INSTANCE-ID]: A permanent identifier that is unique within your Google Cloud Platform project. You cannot change the instance ID later.

  • [INSTANCE-CONFIG]: The instance configuration, which defines the geographic location of the instance's nodes and affects how data is replicated.

  • [INSTANCE-NAME]: The name to display for the instance in the GCP Console. The instance name must be unique within your Google Cloud Platform project.

  • [NODE-COUNT]: The number of nodes for the instance. The number of nodes determines the amount of serving and storage resources that are available to databases in the instance.

For example:

gcloud spanner instances create test-instance --config=regional-us-central1 \
    --description="Test Instance" --nodes=1

You should see a message similar to the following example:

Creating instance...done.
answered Nov 13, 2019 by Sirajul
• 59,230 points

Related Questions In GCP

+1 vote
1 answer

Create a Cloud Filestiore instance on GCP.

You could create a cloud filestore instance ...READ MORE

answered Nov 22, 2019 in GCP by Sirajul
• 59,230 points
750 views
0 votes
1 answer

How to create a Cloud Filestore instance in GCP?

Hi@MD, You can create a Cloud Filestore instance in ...READ MORE

answered Nov 10, 2020 in GCP by akhtar
• 38,260 points
838 views
0 votes
1 answer

How do I create a Google Cloud Platform (GCP) account?

In order to access the services provided ...READ MORE

answered Sep 20, 2019 in GCP by Sirajul
• 59,230 points
2,754 views
0 votes
1 answer

Deleting a Cloud Spanner instance

Deleting an instance permanently removes the instance ...READ MORE

answered Nov 13, 2019 in GCP by Sirajul
• 59,230 points
904 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to create a Google Cloud Filestore instance?

Create an instance by running the instances create command, ...READ MORE

answered Oct 23, 2019 in GCP by Sirajul
• 59,230 points
1,720 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP