Help Center/ GaussDB(for MySQL)/ User Guide/ Database Proxy (Read/Write Splitting)/ How to Use a Proxy Instance to Enable Read/Write Splitting
Updated on 2024-09-24 GMT+08:00

How to Use a Proxy Instance to Enable Read/Write Splitting

After creating a GaussDB(for MySQL) instance, you can create a proxy instance. With the proxy address, write requests are automatically forwarded to the primary node, and read requests are forwarded to each node based on the routing policy of the proxy instance to offload read pressure from the primary node.

This section describes how to use a proxy instance to enable read/write splitting.

Step 1: Creating a Proxy Instance

Step 2: Perform User Authentication

Step 3: Check Security Group Rules

Step 4: Use the Proxy Address to Connect to Your GaussDB(for MySQL) Instance

Step 5: Verifying Read/Write Splitting

Constraints

Before creating a proxy instance, you need to ensure that:

  • You have purchased a GaussDB(for MySQL) instance.
  • You have been understood precautions. For details, see Precautions.

Procedure