Spanner instance in Google console use Spanner dual-region configurations.
Presenting Spanner dual-region solutions that ensure both high availability and data residency.
Spanner is a database managed by Google that is spread globally, has a high throughput, and can scale essentially without limits. At its peak, Spanner is capable of processing more than 4 billion queries per second. With its sophisticated features automated sharding, zero downtime, and great consistency spanner effectively manages challenging, global projects. Along with being heavily used inside Google, it fits a broad spectrum of businesses including financial services, gambling, retail, and others. These tasks can have relational as well as non-relational character.
Spanner separates compute resources from data storage, enabling seamless scaling of processing resources. Each additional compute capability has the ability to handle both read and write operations, allowing for easy horizontal scalability. Spanner enhances performance by autonomously managing the distribution of data over multiple servers, ensuring data redundancy, and efficiently processing transactions.
Handling failovers and controlling the internal mechanisms
The Spanner dual-region configurations are specifically designed to ensure that Google can provide the same level of availability and zero recovery-point objective (RPO) assurances as the Spanner multi-region deployments, which usually cover three distinct regions.
Spanner instance
Let consider a case where a Spanner instance is running in a newly launched dual-region setup in India. These occurrences duplicate data to Mumbai and Delhi. Each region consists of three replicas, with two being read/write replicas and one being a witness replica. The Spanner instance, when considering both regions together, comprises a total of six replicas. This setup is referred to as dual-region mode.
If one of the three replicas in a region has a zone outage, Spanner continues to operate in dual-region mode. In this mode, Spanner maintains a quorum of at least two replicas in each region, ensuring that your database remains accessible even during a zonal outage.
If an entire area has an outage, databases in dual-region mode will lose their availability. In order to restore availability, databases need to transition to a single-region configuration, which entails having three copies located within a single region.
Initiating Spanner dual-region configurations
When instantiating a new Spanner object, you have the option to select the recently introduced dual-region setups in the Google Cloud console.
Aside from generating new Spanner instances, you can also transfer your current regional or multi-regional setups utilising the newly introduced self-serve instance move function of Spanner. Relocating your instance does not result in any period of time when the service is unavailable, and Spanner maintains its standard transaction assurances, such as strong consistency, during the relocation process.
Spanner
Enhance cost-efficiency and enhance dependability for databases of any magnitude.
Synchronous replication and maintenance are inherent and automated. Performing schema modifications and maintenance tasks entirely online, without any interruption to the ongoing traffic, ensuring continuous operation.
Integrate the scalability and stability features of Spanner with the familiar and portable PostgreSQL interface. Utilise the existing talents and tools of your teams, ensuring the long-term viability of your investment and providing reassurance.
Eliminate the need for manual resharding of your database. The use of sharding in the system automatically distributes data in order to maximise performance and ensure availability. Expand and contract seamlessly.
Utilise Spanner’s exact nearest neighbour (KNN) vector search (in preview) to search vector embeddings at a large scale. This feature is particularly useful for highly partitionable workloads, where each search is limited to data linked to a specific user. Spanner’s integrated KNN search capabilities are well-suited for these workloads, since they enable Spanner to effectively narrow down the search area and deliver precise, real-time results with minimal delays.
Spanner Data Boost allows users to execute analytical queries, batch processing tasks, or data export procedures more quickly without impacting the current transactional burden. Data Boost, which is fully managed by Google Cloud, eliminates the need for capacity planning or management. The system is consistently warm and prepared to directly handle user queries on data stored in Spanner’s distributed storage system, Colossus. This flexible and autonomous computing resource allows users to efficiently manage diverse workloads and securely share data without any concerns.
Integrate LangChain to effortlessly develop advanced AI applications that exhibit enhanced accuracy, transparency, and reliability. Spanner incorporates three LangChain integrations: Document loader, which facilitates the loading and storage of information from documents; Vector stores, which enable semantic search capabilities; and Chat Messages Memory, which allows chains to remember and retrieve past discussions.
In the past, if you wanted to ensure that your data was stored in countries that only had two Google Cloud regions, you were only able to use regional Spanner configurations that had a 99.99% availability. This is because Spanner multi-region arrangements necessitate the use of three regions, with one of them being situated outside of the country. The new Spanner dual-region configurations allow you to benefit from Spanner’s exceptional 99.999% availability and meet data residency requirements. The newly introduced dual-region setups, now accessible in Australia, Germany, India, and Japan, guarantee that your data is stored exclusively within the chosen nation.