Help Center/ TaurusDB/ User Guide/ Database Proxy (Read/Write Splitting)/ How to Use a Proxy Instance to Enable Read/Write Splitting
Updated on 2024-11-06 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: Create 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: Verify 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