Review core Cloud Spanner objects, such as instances and databases. Understand how to scale instances via adjusting partition counts.
- [Instructor] As we get started working with Google Cloud Spanner, let's go over the objects that you'll be working with, just one more time. So, you'll have an instance, which is roughly akin to a server, but this, remember, is a NoOps, or basically, a server-less environment. You'll have one or more databases, and those databases will have tables. When you create those tables, you'll define the column names, the data types, whether or not the columns are nullable, and which columns will be part of the primary key. As we'll discover in future movies, defining the primary key correctly is critical to having Spanner be able to scale appropriately, so we'll go into that in some detail, just show you the mechanics of it first.
Additionally, we have the ability to create secondary indices, or indexes. They are optional, and we will cover that in subsequent movies. There are other objects that you can create related to Spanner, and these include IAM permissions, or user permissions, and we'll look at those as well. Now, as you remember when I introduced Spanner, as of this recording, the product is in beta, so in terms of instances, you can, at this time, have one per account. You'll set the location, so which data center, and the number of nodes, and as you'll see, when I get into the console, this will effect the cost and the performance.
It's important to understand that you can very easily change the number of nodes after you create the instance, which is one of the great features of Spanner, and I'll be demonstrating that. I'll also remind you that Spanner is set to autoshard and partition, and you can scale up by adding more of these partitions, which at this time, are two terabytes, are fixed size. During the beta, you can set up an instance in only one region, and Google is guaranteeing four nines of uptime. They have announced that, when they move to general availability, you'll be able to add instances to multiple regions, which will then allow them to offer you five nines of uptime.
So, we're gonna go ahead and go into the console, and we're going to set up an instance and a database, next.
- What is Cloud Spanner?
- Creating an instance and database using the console
- Making hot schema updates
- Cloud Spanner queries
- Loading data into Cloud Spanner
- Understanding transactions
- Cloud Spanner DevOps tools
- Auditing logs with Stackdriver
- Cost optimization