Load Balancing allows you to define multiple backends with which to receive the traffic directed at your X4B Service. Load Balancing is supported for both the Layer 4 (TCP/UDP) and Layer 7 (HTTP/HTTPS).
Load Balancing at Layer 7
There is multiple methods of balancing available for balancing connections to HTTP(s) services. All defined backends must be either HTTP or HTTPS.
Balancing Methods: - Default: Connections distributed 'fairly' using a weighted round robin algorithm.
IP Hash: We will attempt to route connecting clients to a consistent server based on their connecting IP address.
Least Connections: The connecting client will be routed to the server with the least number of active connections.
- Weight: Some balancing methods have a weight property. A higher value here will result in more requests being sent to this backend.
- Number of failures & Failure Timeout: After a number of failures we will remove a backend from the pool temporarily
- Type: Backup backends are used if primary backends are offline
Statistics are provided in regards to the distribution of requests between backends in total and for a 30 day period.
Load Balancing at Layer 4
Sessions are balanced in a round robin manner with best effort fairness. In the context of TCP one session is one connection. In the context of UDP one session is one unique tuple (srcip,srcport,dstip,dstport) in this way it is much the same as TCP connection.