A load balancer spreads traffic on one public address over several servers, so a website keeps answering when one server is busy or down. They're available for your own private clouds (OpenStack and CloudStack). Open Clouds and choose Load balancers next to the cloud.
Creating one#
- Name: for example
web. - Location: where the load balancer and its servers are.
- Protocol:
- TCP passes any traffic through, including HTTPS. Your servers keep their own certificates.
- HTTP also checks that the servers' web page answers.
- Spread traffic by:
- Taking turns: each new connection goes to the next server.
- Fewest connections: to the least busy server.
- Same visitor, same server: by visitor address, useful when sessions are kept on the server.
- Public port and Port on the servers: for example 80 → 80, or 443 → 8443.
- Servers: the servers in that location to send traffic to. Only servers in the chosen location are listed.
The load balancer starts passing traffic within a few minutes, once its health checks see the servers answer. A server that stops answering gets no traffic until it answers again.
How each cloud does it#
- OpenStack: the load balancer gets its own public IP. The servers need an IPv4 address on a private network, and their security groups must allow the server port from that network (see Firewall).
- CloudStack: the load balancer uses the public address of the servers' network, and the cloud opens that public port in the network's firewall. All servers behind one load balancer must be on the same network, and each public port can be used once per network. Health checks depend on the cloud's setup.
Changing and deleting#
Tick or untick servers and choose Save servers; at least one must stay. Delete load balancer removes it and its public address (OpenStack) or opened port (CloudStack). The servers themselves aren't touched.
Owners, Admins and Developers can make changes; everyone else can see the page. Every change is in the audit log.