Setting Up Load Balancer
Cloud Infrastructure Automation allows your customers to create load balancers to balance incoming network traffic by distributing the workload among several cloud servers. Using this feature, customers can improve response times and reliability of their websites and online stores.
How It Works?
You define the image parameters, the system will create a virtual server with the selected operating system, install the load-balancing package on it from a default or defined by you repository, create an image from the server in the selected location and configure it as the load balancer. This image will be used for creating load balancers when customers create them in UX1 for Customers.
To set up the load-balancing functionality, you need to do the following:
- In Operations control panel, go to Services > Cloud Infrastructure > Load Balancers.
- Switch to the Images tab.
- Click Create Image for Load Balancer.
-
Define the following parameters of an image:
- Image Name – the name of the image to be created.
- OS Template – operating system to be installed on a virtual server from which the image is created.
- Location – node location where the image will be created.
- Custom HAProxy – by default the system uses the load-balancing package from the
/RHEL/6/haproxy-1.4.23-51.odin.i386.rpm.
You can specify a custom location of repository with the load-balancing package. -
Delete Source VE After Completion – if checked, then after the image creation, the virtual server, from which this image was created, will be deleted automatically. If unchecked, then the virtual server will not be deleted. The last case is needed, if you plan to customize a server which is used for image creation. The server has name VeForLb and can be found in Services > Cloud Infrastructure > Virtual Servers.
Each time when the system creates an image, it first checks if there is already created virtual server with the name VeForLb that can be used for image creation. If such a server is found, no new servers for image will be created.
- When ready, click Apply.
Once you have created and configured the image, make sure that the CS Load Balancer resource type is included in your service template (and in your service plan). Otherwise, the load balancing functionality will not be available to your customers.