Skip to main content

Create a target group

  1. In the Control panel, on the top menu, click Products and select Cloud Servers.

  2. Go to the Load Balancers section → Target groups tab.

  3. Click Create target group.

  4. Select a location where the target group will be created. The load balancer and target group must be in the same location.

  5. Select a load balancer.

  6. Select the traffic destination protocol that the load balancer will use to forward traffic to the target group. The following protocol combinations are available for receiving traffic on the load balancer and forwarding traffic to the target group:

    • TCP–TCP — classic L4 load balancing;
    • TCP–PROXY — client information is not lost and is transmitted in a separate connection header;
    • UDP–UDP — the UDP protocol is faster than TCP but less reliable;
    • HTTP–HTTP — L7 load balancing;
    • HTTPS–HTTP — L7 load balancing with encryption and SSL certificate termination on the load balancer.
  7. The default port will be automatically selected for the chosen protocol; change it if necessary. The port value will be common to all servers in the group.

  8. Open the Servers tab.

  9. Select the servers to add to the target group.

  10. Specify settings for each selected server:

    10.1. Select an IP address.

    10.2. Optional: change the port.

    10.3. Specify the server weight — this is a proportional measure indicating the share of requests that the server processes. If weight values are equal, the servers handle an equal number of requests. For example, if there is one server with a weight of "2" and two servers with a weight of "1" in a group, the first server will receive 50% of all requests, and the other two will receive 25% each. The maximum weight value is 256.

    10.4. Optional: to direct traffic to a server only when other servers in the group are unavailable, select the Backup checkbox.

  11. Open the Algorithm tab.

  12. Select a request distribution algorithm — Round Robin or Least connections.

  13. Optional: to enable the Sticky Sessions method, select the Sticky sessions checkbox.

  14. Open the Availability checks tab.

  15. Select the type of availability check. Once the group is created, the check type cannot be changed.

  16. If the HTTP check type is selected, specify the request parameters — method, path, and expected response codes.

  17. Specify the check interval — the interval in seconds at which the load balancer sends check requests to the servers.

  18. Specify the connection timeout — the response wait time in seconds; it must be less than the check interval.

  19. Specify the success threshold — the number of consecutive successful requests after which the server is set to working status.

  20. Specify the failure threshold — the number of consecutive unsuccessful requests after which server operation is suspended.

  21. Optional: change the target group name or leave the default one.

  22. Optional: enter a comment for the group.

  23. Click Create target group.