How many cloud spanner instances should I have for a database? I want to have a single database along with a single instance.

0 votes
How many cloud spanner instances should I have for a database? I want to have a single database along with a single instance.
Nov 20 in GCP by anonymous
• 4,330 points
17 views

1 answer to this question.

0 votes

To provide high availability and low latency for accessing a database, Cloud Spanner requires 1 node for every 2 TB of data in the database. 

For example, if your instance has 1 database that stores 3.5 TB of data, you need to provision at least 2 nodes. 

Those nodes will keep the instance below the limit until the database grows to 4 TB. 

After your database reaches that size, you need to add another node to allow the database to grow. 

Otherwise, writes to the database will fail. For a smooth growth experience, add nodes before this limit is reached for your database.

answered Nov 20 by Sirajul
• 40,980 points

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Create a Cloud spanner instance.

You can create an instance with the gcloud command-line ...READ MORE

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

Cancel a long running database operation.

Use projects.instances.databases.operations.cancel to cancel a long-running instance operation. Click projects.instances.databases.operations.cancel. For name, enter ...READ MORE

answered Nov 14 in GCP by anonymous
• 40,980 points
27 views