Change the request distribution algorithm
Control panel
OpenStack CLI
-
In the Control panel, on the top menu, click Products and select Cloud Servers.
-
Go to the Load Balancers section → Target Groups tab.
-
Open the target group page.
-
In the Algorithm row, click .
-
Select an algorithm:
- Round Robin — a round-robin algorithm. The first request is sent to one server, the next request to another, and so on until the last server is reached. Then, the cycle starts over. Requests are distributed to servers according to the specified weight.
- Least connections — an algorithm that accounts for the number of connections to servers. A new request is sent to the server with the fewest active connections; the server weight is not taken into account.
-
Optional: to enable the Sticky Sessions method, in the Sticky Sessions row, click , check the Sticky Sessions box, and select a session identifier. For the APP-cookie session identifier, enter the cookie name.