When you use ELB, ensure that at least a healthy backend server is in the backend server group associated with your load balancer. If incoming traffic increases, you need to add more backend servers.
After a backend server is removed, it cannot receive requests from the load balancer. You can add it back to the backend server group when the traffic goes up again.
If the load balancer is associated with an AS group, instances in the AS group are automatically added to the backend server group associated with the load balancer. If instances are removed from the AS group, they will be automatically removed from the backend server group.
Configure the parameters based on Table 1 and Table 2.
Parameter |
Description |
Example Value |
---|---|---|
Name |
Specifies the name of the backend server group. |
server_group-sq4v |
Backend Protocol |
Specifies the protocol used by backend servers to receive requests. The backend protocol can be TCP, UDP, HTTP, or HTTPS. |
HTTP |
Load Balancing Algorithm |
Specifies the algorithm used by the load balancer to distribute traffic. The following options are available:
|
Weighted round robin |
Sticky Session |
Specifies whether to enable sticky sessions. If you enable sticky sessions, all requests from a client are sent to the same backend server. NOTE:You can enable sticky sessions only if you select Weighted round robin for Load Balancing Algorithm. |
- |
Sticky Session Type |
After you enable the sticky session feature, select a sticky session type:
Choose an appropriate sticky session type to better distribute requests and improve load balancing.
|
Load balancer cookie |
Stickiness Duration (min) |
Specifies the minutes that sticky sessions are maintained. You can enable sticky sessions only if you select Weighted round robin or Weighted least connections for Load Balancing Algorithm.
|
20 |
Slow Start |
Specifies whether to enable slow start, which is disabled by default. After you enable slow start, the load balancer linearly increases the proportion of requests to send to backend servers in this mode. When the slow start duration elapses, the load balancer sends full share of requests to backend servers and exits the slow start mode. For details, see Configuring Slow Start (Dedicated Load Balancers). |
- |
Slow Start Duration |
Specifies how long the slow start will last. The duration ranges from 30 to 1200, in seconds, and the default value is 30. |
30 |
Description |
Provides supplementary information about the backend server group. You can enter a maximum of 255 characters. |
- |
Parameter |
Description |
Example Value |
---|---|---|
Enable Health Check |
Specifies whether to enable health checks. |
N/A |
Protocol |
Specifies the protocol used by the load balancer to perform health checks on backend servers. You can select either TCP or HTTP. A selected protocol cannot be changed. |
HTTP |
Domain Name |
Specifies the domain name that will be used for health checks. The domain name can contain digits, letters, hyphens (-), and periods (.), and must start with a digit or letter. The field is left blank by default and is available only when the health check protocol is HTTP. |
www.elb.com |
Port |
Specifies the port used by the load balancer to perform health checks on backend servers. The port number ranges from 1 to 65535. NOTE:If you do not specify a health check port, the backend port will be used for health checks by default. If you specify a port, it will be used for health checks. |
80 |
Advanced Settings |
||
Interval (s) |
Specifies the maximum time between health checks, in seconds. The interval ranges from 1 to 50. |
5 |
Timeout (s) |
Specifies the maximum time required for waiting for a response from the health check, in seconds. The timeout duration ranges from 1 to 50. |
3 |
Check Path |
Specifies the destination path for health checks. Configure this parameter only if you have set Protocol to HTTP. The path can contain 1 to 80 characters and must start with a slash (/). |
/index.html |
Maximum Retries |
Specifies the maximum number of health check retries. The value ranges from 1 to 10. |
3 |