About read pools

MySQL  |  PostgreSQL  |  SQL Server

Preview

This feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of theService Specific Terms. You can process personal data for this feature as outlined in theCloud Data Processing Addendum, subject to the obligations and restrictions described in the agreement under which you access Google Cloud. Pre-GA features are available "as is" and might have limited support. For more information, see thelaunch stage descriptions.

Cloud SQL read pools support load balancing for your large read workloads.

What are read pools?

Aread pool is a collection of read replica instances used to distributeyour large read workloads. These workloads can be redirected from the primaryinstance to the read pool to reduce load on the primary instance.

Each read replica in the read pool is called aread pool node.

You can scale your read pool in several ways:

  • Scale in or out: scale load balancing capacity horizontally by modifying the number of read pool nodes in the read pool. Each read pool supports between 1 and 20 read pool nodes.
  • Scale up or down: scale load balancing capacity vertically by modifying the machine type associated with a read pool node. Once defined, configuration is uniformly applied across each read pool node in the read pool.

When you modify read pool node settings such as storage, connectivity, ordatabase configuration flags, the changes are automatically applied uniformlyacross each read pool node in the read pool.

The read pool is accessible through asingle read endpoint withan immutable IP address. Connections made through the endpoint areautomatically redirected to one of the read pool nodes. When you want theread pool to scale in or scale out, applications that were previouslyconnected to this single read endpoint don't need to be reconfigured, eventhough you can create new read pool nodes in the read pool or delete previousones.

Each read pool node also has its own IP address. While notrecommended as an efficient approach for accessing your data, you can usethese IP addresses to troubleshoot individual read pool node performance.

For more information on how to retrieve the connection information for theread pool or the read pool nodes (either IP addresses or a connection string),seeView read pool information.

The following characteristics apply:

  • Read pool nodes of the read pool always reside in the same region, as specified by the user. Google Cloud alternates read pool node residency among all zones in the region.
  • A primary instance can have one or more read pools.
  • The following operations incur sub-second downtime:
    • Scaling out or in (adding or removing read pool nodes).
    • Scaling up or down (changing the machine type of the nodes in the pool).
    • Converting an existing zonal read replica to a read pool.
  • A read pool receives maintenance before its primary instance, similar to read replicas. Like read replicas, read pools receive maintenance during the primary instance's maintenance window.
  • Each read pool node has the same metrics available as a Cloud SQL read replica.
  • When usinggcloud or the Google Cloud console to describe the details of a project, the read pool name is listed, individual read pool node names are not.

Limitations

The following limitations apply:

  • Read pools are only available forCloud SQL Enterprise Plus edition instances on thenew network architecture. The primary instance associated with a read pool must also be a Cloud SQL Enterprise Plus edition instance.
  • Traffic is served from read pool nodes based on whether the database is healthy, but regardless of how high replication lag on that read pool node is. Traffic can be served from a lagging read pool node even if another read pool node is available that isn't lagging. A database is considered healthy if the database process is up and can answer queries, but there is no requirement on how fresh the data being served is.
  • No guarantee is made about a single logical session connecting to multiple read pool nodes in the read pool. It's possible for later requests in a session to connect to a read pool node that has a lower replication position (LSN) than the read pool node that served an earlier request, which can cause the state of the database to appear to go back in time.
  • The following types of updates aren't supported:
    • While read pools still receive Cloud SQL maintenance updates, you can't update your read pool to a new major database version.
    • Starting or stopping nodes of the read pool
  • In addition to operations that aren't supported on read replicas, the following operations aren't supported on read pools:
    • promote replica
    • restart
    • import
    • export
    • failover
    • re-encrypt
    • clone
  • The following features can't be used with a read pool:
    • Private Service Connect
    • SSL/TLS certificates with shared CA or customer-managed CA
  • A read pool can't replicate to another instance, for example, a cascading replica or another read pool.
  • A read pool must replicate directly from a primary instance. It can't be a cascading replica.
  • If you want to convert a regional read replica to a read pool, then you must first convert the regional read replica to a zonal read replica.
  • When creating or scaling a read pool, you must wait for previous create pool, scale in, or scale out operations associated with the read pool to finish. This restriction applies to any other read pool associated with the same primary instance. If you want to scale multiple read pools associated with the same primary instance, then you must wait for scaling operations associated with the first read pool to finish before you start scaling the next read pool. If you issue concurrent requests, then you might receive the following error:Operation failed because another operation was already in progress..
  • Only a zonal replica located in the same region as the primary can be converted for use in a read pool.
  • You can't add or remove read pool nodes from the read pool while you're changing their machine type at the same time.
  • If your application must connect to a dedicated read replica—for example, because of secondary indexes present on a specific read replica—create a Cloud SQL read replica and use it instead.
  • You can't query specific users and databases associated with a read pool. Since Cloud SQL Studio relies on data provided by users and databases, Cloud SQL Studio isn't supported with read pools.

What's next

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-14 UTC.