Prev: Next: Up: Balancer[Contents][Index]


6.2 Balancer groups

Backends within each service are grouped in balancer groups. Each such group is assigned a unique integer priority, which defines the order in which groups are tried. When selecting a backend, a group with the numerically smallest priority is tried first and a suitable backend is looked up among backends defined in that group, using one of the balancing strategies discussed above. If no backend can be selected (e.g. all backends are unavailable), next group is tried. The process continues until either a backend is chosen or the list of balancer groups is exhausted.

By default, backends declared using the Backend keyword are assigned to the balancer group 0. These are backends used during normal operation. Backends declared using the Emergency keyword (see Emergency) are assigned to the balancer group 65535. These backends form a pool of high availability backends, which will be used if all normal backends fail.

More backend groups can be added using dynamic backends, discussed in the next section.