Creating a simple Load Balance client for a MySQL
Cluster
There are few key points in using the Connector/J with Load
Balancing on MySQL Cluster
- Dynamic JMX with Connector/J
- loadBalanceEnableJMX=true&loadBalanceConnectionGroup=<group>
- Timeout value in the blacklist with Connector/J
The following code piece is used on my notebook with MySQL
Cluster running on 2 x VMs. IPs for accessing the 2 MySQL
Nodes on the Cluster are 192.168.56.104 and 192.168.56.105.
The port number with the 2 x MySQL Nodes are the same with
the value of "3306".
Here is the MySQL Cluster status with MySQL Cluster Manager
(MCM)
…