When the ANS network load balancer receives a client request, it uses the client's source address as the basis for determining session association. Within a specific time period, all connections with the same source address are forwarded to the same backend server, allowing applications that require session persistence to function properly and ensuring session continuity and stability. The default session persistence timeout is 300 seconds.
After session persistence is configured, if the interval between a client's current connection request and its previous connection request is less than or equal to the session persistence timeout, the two requests are considered part of the same session. The client request is still forwarded to the backend server that handled the previous request, and the session persistence timeout is reset. If the interval exceeds the session persistence timeout, the request is treated as a new session, and the load balancer reselects a backend server to handle the request according to the scheduling policy.