Docs
ulb
Classic Load Balancer CLB
Frequently Asked Questions
Related to how it works
How is session persistence achieved?

How is Session Persistence Achieved?

Request Proxy

In the request proxy mode (HTTP, HTTPS), the session persistence feature is implemented using cookies. CLB writes cookies to the source and, according to the cookie information carried by the request, directly sends the request to the corresponding backend host.

  • Automatically Generate KEY: Choose to automatically generate the key, and the cookie insertion operations on the client side are allocated and managed by CLB.
  • User-defined KEY: User-defined key, CLB uses the customer’s key to allocate and manage the Cookie insertion operations carried out on the client.

Session persistence is not supported in the request proxy mode of the TCP protocol.

Message Forwarding

In message forwarding mode (TCP, UDP), the session persistence feature is based on IP address session persistence. CLB will forward access requests from the same IP address to the same backend cloud server for processing.