Backend
Load balancer backends let you distribute traffic evenly across multiple servers, with support for health checks, session persistence, and other advanced options.
Create or Edit a Backend
Navigate to the Backend Creation tab
From your load balancer's overview page, click on the "Backends" tab, then click the "Create" button.
Basic Information
Fill in the basic information for your backend.
- Name: Give your backend a name.
- Port: The backend will send traffic to this port of each of your servers.
- Mode: Choose between "HTTP" and "TCP" mode, use "HTTP" if you need control over HTTP parameters like path, headers, etc, otherwise "TCP" would be fast and efficient.
- Load Balancing Method: Choose a load balancing algorithm, for example "Round Robin" would distribute traffic evenly across your servers.
Warning
Frontends and backends must have the same "mode", so choose carefully.
Add Servers to your Backend
Choose the servers you want to add to your backend.
Traffic will be distributed to these servers according to your selected load balancing method.
Note
You can add more servers to your backend later.
Session Persistence / Sticky Sessions
Optionally enable session persistence (sticky sessions) to send all traffic from the same client to the same server.
For example, you can choose to persist sessions based on the client's IP address, or using a specific cookie. You can adjust session timeout as well as other options.
Health Check
Optionally enable health checks to monitor server health and automatically stop sending traffic to unhealthy servers. Available health check modes include HTTP, TCP, MySQL, Postgres, and more.
Notes
- The default port for health checks is the same as the "Server Port" you specified earlier.
- The default health status is any "successful" response from the server, but you can change that to any specific status code you want (regular expression may be added in the future for more control).