Since each cluster is essentially a pairing of an IP address and TCP port at the network level, each cluster must be unique in these settings. The same IP address can be used as the inbound IP for more than one cluster provided that each cluster is configured for a different TCP port. The opposite holds true as well. The same TCP port can be used for more than one cluster provided that the inbound IP address is unique in the configuration.
If more than one IP address is needed for your ScaleArc system, please refer to Set up network configuration for instructions on adding additional IP addresses.
Note that the inbound and outbound IP addresses can be changed after you have created the cluster. However, this requires you to stop the cluster, resulting in service disruption. Alternatively, you can make use of the Clone cluster configuration option (See Step 9 in Configure Standalone Servers) to duplicate the existing cluster configuration on a new IP address/port combination. Once completed, shift the application traffic from the old cluster to the new one.
Configure the endpoints
Follow these steps to define a cluster and configure how your application will connect to ScaleArc and how ScaleArc will connect to the database servers:
- On the ScaleArc dashboard, click the Clusters tab > Add Cluster button.
- Locate the Network section which is the first panel on the Create Cluster screen.
Fill in the fields for the Network section as follows for the cluster:
Field Description Default/User input Cluster Name
The descriptive name used throughout the web console.
Enter a cluster name, such as Accounting or Product-Catalog.
Cluster Virtual IP Address
The IP address that applications use to connect to ScaleArc.
Cluster TCP Port The port that the applications use to connect to ScaleArc. Each cluster requires a unique IP:port combination.
Set the database TCP port. The default is 3306.
Outbound Virtual IP Address
The IP address that ScaleArc uses to connect to the database servers.
Select a load balancer virtual IP address from the drop-down list.
Note that if you are creating more than one cluster, each cluster should have its own unique IP:port number tuple.
- Next, complete the database access panel on the screen.