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 in GCP by anonymous
• 6,650 points
29 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 by Sirajul
• 40,980 points

Related Questions In GCP

0 votes
1 answer

Create a Cloud Filestiore instance on GCP.

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

answered Nov 22 in GCP by Sirajul
• 40,980 points
18 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 in GCP by Sirajul
• 40,980 points
76 views
0 votes
1 answer

Create a Windows VM instance using Google Compute Engine (GCE).

To create a Windows virtual machine instance ...READ MORE

answered Sep 20 in GCP by Sirajul
• 40,980 points
108 views
0 votes
1 answer

Deleting a Cloud Spanner instance

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

answered Nov 13 in GCP by Sirajul
• 40,980 points
22 views
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 in GCP by Sirajul
• 40,980 points
26 views