Information

Parallels Operations Automation Cloud Infrastructure module provides Basic Load Balancer feature based on haproxy solution. By default provider needs to perform certain actions to prepare Load Balancer servers provisioning to customers.

  1. Create CentOS 5 x86_64 container:

    • Go to Parallels Operations Automation > Hosting CP > Hosting > Cloud Infrastructure > Servers and click New Server;
    • Enter all parameters according to your needs, but make sure that the following requirements are met:

      Operating System: Free Linux

      I will manage the OS kernel: Unchecked

      Amount of IPv4 addresses: 1

    • Select "Storage Type" = "Network Storage" if you want that load balancers are created on network storage.
    • Proceed with the wizard.
    • Start the CI Server once creation is completed.
  2. Install haproxy package to the newly created Load Balancer container:

    • Log on to the container;

    • Download haproxy package from POA repository:

      [root@localhost ~]# wget http://${YOUR_POA_CORE_IP}/tarballs/CentOS/5/x86_64/YUM/haproxy-1.4.15-25.i386.rpm
      
    • Remove Apache:

      [root@localhost ~]# rpm -e httpd
      
    • Install haproxy RPM:

      [root@localhost ~]# rpm -ivh haproxy-1.4.15-25.i386.rpm
      Preparing...                ########################################### [100%]
      1:haproxy                ########################################### [100%]
      
  3. Disable other network services except for haproxy to make the Load Balancer secure.

  4. Create image from CI server:

    • In Hosting CP > Hosting > Cloud Infrastructure > Servers click on server name;
    • Stop the server and click Make Image;
    • Enter image name and description;
    • Proceed with the wizard.
  5. Make the image as default load balancer:

    • Go to Hosting CP > Hosting > Cloud Infrastructure > Images;
    • Click Set as HTTP Load Balancer link near the newly create image name.
  6. [Optional] It is safe to remove initial CI Server the image was created from.

Now customers will be able to create HTTP Load Balancers in their CCP from the image.

Internal content