You have now defined the name, service agreement, and service port number of a SLB instance. The next step is to configure the health check and session retention. The entire load-balancing service will run automatically according to your configuration and perform a health check on the cloud server as a load-balanced service. If a cloud server fails, it automatically removes the cloud server from your load-balancing service, and when the cloud server resumes functioning, the Health check service automatically adds it to your load-balancing service. In order to ensure that a user session can be forwarded to a fixed cloud service, you can turn on the session retention feature, and the load Balancing service will distribute access requests from the same client to the same cloud server for processing.
HTTP protocol Configuration
1, for the HTTP protocol SLB services, you can for the current SLB instance under the different service ports for "Direct access to IP", "Session Maintenance" and "Health Check" configuration;
2, once the "direct access to IP", you can use x-forwarded-for way to obtain the visitor IP address;
3. When you choose to turn on "session retention", you can select and set the cookie's handling mode (SLB Insert cookies and slb rewrite cookies);
1 When you select the "SLB" cookie processing method, you need to set the specific timeout, if you do not fill in the session forever.
2 You need to customize the cookie name when you select the cookie processing method for "SLB rewrite cookies".
4. When you choose to turn on the "Health check", you can set the health check mode.
Where, domain name, check port, check path is not required.
TCP protocol Configuration
1, for the TCP protocol SLB service, you can for the current SLB instance under the different service ports for "forwarding rules", "Session Maintenance" and "Health Check" configuration;
2, you can in accordance with your actual needs in the "polling mode" and "minimum number of connections," the two rules of choice, external access requests will be forwarded in accordance with your choice;
3. When you choose to turn on "session retention", you can select and set the timeout time for the session retention;
4. When you choose to turn on "Health check", you can select and set up for health Check mode (VTCP, TCP, HTTP).
1 When you choose the "vtcp" Health Check mode, you need to set the specific expiration time;
2 When you select the "TCP" Health Check mode, you need to set the specific check port and expiration time;
3 When you select the "HTTP" Health Check mode, you need to set more detailed configuration information.
Where the port is checked, the check path is not required.
When the configuration is complete, click the Next button.
Open the Add Cloud Server page in the SLB Service Configuration Wizard.