Obtaining the Eucalyptus Elastic Load Balancer Image

Download the eucalyptus-load-balancer-image RPM from downloads.eucalyptus.com

This blog entry will use the eucalyptus-load-balancer-image RPM, and update the image according. To get started, create a directory (in this example ‘eucalyptus-lb’), and download the latest eucalyptus load balancer image RPM from downloads.eucalyptus.com:

After unpacking the RPM, change directory to ~/usr/share/eucalyptus-load-balancer-image, and decompress the eucalyptus-load-balancer-image-1.1.0-212.tgz file to obtain the Eucalyptus Load Balancer image:

We will modify and add the following HAProxy options under the ‘default’ section in the /etc/load-balancer-servo/haproxy_template.conf file. For information about these options, please refer to the HAProxy 1.5 documentation:

replace ‘srvtimeout‘ with ‘timeout server‘ since ‘srvtimeout‘ is deprecated, and set the value to ‘2m‘

replace ‘clitimeout‘ with ‘timeout client‘ since ‘clitimeout‘ is deprecated, and set the value to ‘2m‘

replace ‘contimeout ‘ with ‘timeout connect‘ since ‘contimeout‘ is deprecated, and set the value to ‘5s‘

add ‘timeout http-keep-alive‘ with the value of ‘10s‘

add ‘timeout queue‘ with the value of ‘1m‘

add ‘timeout check‘ with the value of ‘5s‘

add ‘retries‘ with the value of ‘3‘

add the following options to not log null connections, and to enable session redistribution in case of failure:

‘option dontlognull‘

‘option redispatch‘

The /etc/load-balancer-servo/haproxy_template.conf should look similar to the following after all the desired attributes are added:

The ‘default‘ section should contain all the modifications made to the /etc/load-balancer-servo/haproxy_template.conf file. The Eucalyptus Load Balancer will now utilize the updated changes needed to address the desired performance with the various backend applications that will be used with the load balancer.