2.3. Allowing Multiple HAProxies on a Node Host

The ALLOW_MULTIPLE_HAPROXY_ON_NODE setting, located in the /etc/openshift/broker.conf file, is set to false by default. In production environments, Red Hat recommends to leave this setting as default. If two or more HAProxies for a single application reside on the same node host, the front-end Apache will map the DNS or alias to one HAProxy gear and not for the remaining HAProxy gears. If, for example, you have only one node host and wish to enable scalability, changing the ALLOW_MULTIPLE_HAPROXY_ON_NODE setting to true allows multiple HAProxy gears for the same application to reside on the same node host.

Procedure 2.2. To Allow Multiple HAProxies on a Single Node:

  1. Open the /etc/openshift/broker.conf file on the broker host and set the ALLOW_MULTIPLE_HAPROXY_ON_NODE value to true:
    ALLOW_MULTIPLE_HAPROXY_ON_NODE="true"
  2. Restart the openshift-broker service:
    # service openshift-broker restart