Skip to main content
When deploying multiple FE nodes, users can deploy a load balancing layer on top of the FEs to achieve high availability. The following are some high availability options:

Code approach

One way is to implement code at the application layer to perform retry and load balancing. For example, if a connection is broken, it will automatically retry on other connections. This approach requires users to configure multiple FE node addresses.

JDBC Connector

JDBC connector supports automatic retry:

ProxySQL

ProxySQL is a MySQL proxy layer that supports read/write separation, query routing, SQL caching, dynamic load configuration, failover, and SQL filtering. The database FE is responsible for receiving connection and query requests, and it’s horizontally scalable and highly available. However FE requires users to set up a proxy layer on top of it to achieve automatic load balancing. See the following steps for setup:

1. Install relevant dependencies

2. Download the installation package

3. Decompress to the current directory

4. Modify the configuration file

Direct to a directory that the user has privilege to access (absolute path):

5. Start

6. Log in

7. Configure the global log

8. Insert into the leader node

9. Insert the observer nodes

10. Load the configuration

11. Configure the username and password

12. Load the configuration

13. Write to the proxy rules

14. Load the configuration