Help Center/ Elastic Load Balance/ Best Practices/ Advanced Functions/ Configuring Sticky Sessions for a Dedicated Load Balancer/ Configuration Procedure
Updated on 2026-10-20 GMT+08:00
Configuration Procedure
Constraints
- Direct Connect/VPN scenario: If you access a load balancer through Direct Connect or VPN, use the source IP hash algorithm (the load balancing algorithm) instead of sticky sessions.
- Impact of sticky session changes: For HTTP and HTTPS backend server groups, enabling or disabling sticky sessions may cause a few seconds of service interruptions.
- Traffic imbalance risk: Enabling sticky sessions may result in uneven traffic distribution across backend servers. If traffic imbalance occurs, disable sticky sessions temporarily and check whether the issue persists.
- Restrictions on shared load balancers: Sticky sessions cannot be enabled for shared load balancers. Use dedicated load balancers instead.
- Sticky sessions between backend server groups: To ensure that sticky sessions take effect in a backend server group, enable sticky sessions between backend server groups.
- Relationship between the source IP hash algorithm and source IP address-based sticky sessions: If the source IP hash algorithm is used, source IP address-based sticky sessions are supported by default. No additional configuration is required.
Configuring Sticky Session in a Backend Server Group
- Go to the backend server group list page.
- In the upper left corner of the page, select a region and a project.
- Locate the row that contains the target backend server group and click Edit in the Operation column.
- On the page for modifying the backend server group, enable Sticky Session.
- Select a sticky session type and configure the sticky session duration.
- Click OK.
Configuring Sticky Session Between Backend Server Groups
- Go to the load balancer list page.
- In the upper left corner of the page, select a region and a project.
- Click the name of the target dedicated load balancer.
- In the listener list, click the name of the target HTTP or HTTPS listener.
- On the Forwarding Policies tab, click Add Forwarding Policy or edit an existing forwarding policy.
- Set Forwarding Action to Forward to a backend server group.
- Add at least two backend server groups and configure a weight for each backend server group.
- A maximum of five backend server groups can be added for a forwarding policy.
- The weight value ranges from 0 to 100.
- Enable Sticky Session and configure stickiness duration.
The stickiness duration ranges from 1 to 1440 minutes. Set the value to be the same as the stickiness duration configured for the sticky session in a backend server group.
- Ensure that sticky session is enabled for each backend server group.
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot