Skip to main content

Create and manage target groups

The following describes how to create a target group, view the list, change information, and manage target groups such as configuring listener associations.

Create target group

  1. Go to KakaoCloud console > Networking > Load Balancing > Target group.

  2. Click the [Create target group] button at the top right.

  3. On the Step 1: Configure target group screen, enter the settings and click the [Next] button.

    CategoryItemDescription
    Load balancerAvailability zoneSelect from the availability zones available in the project
    Load balancerDisplays the list of all load balancers in the selected availability zone
    ListenerDisplays the list of all listeners of the selected load balancer and the Do not select a listener option
    Basic informationTarget group nameName of the target group
    ProtocolTarget group protocols available according to the listener protocol
    - HTTP listener: HTTP, PROXY
    - HTTPS listener: HTTPS
    Protocol versionDisplayed when the connected load balancer is an Application Load Balancer (ALB), the selected listener is an HTTPS listener, and the target group protocol is set to HTTP
    - HTTP/1.1: Sends requests to targets using HTTP/1.1
    - HTTP/2: Sends requests to targets using HTTP/2
    Algorithm- Round robin: Distributes traffic sequentially to targets in the target group
    - Least connections: Distributes traffic preferentially to the target with fewer connections
    - Source IP: Sends traffic from clients using the same IP header to the same target
    Sticky sessionCan be enabled or disabled only when the listener x target group combination is one of the following cases
    - HTTP x HTTP, TCP x TCP, UDP x UDP
    - Otherwise: Fixed to Disabled (inactive)
    TypeSticky session types available when the listener x target group combination is one of the following cases
    - HTTP x HTTP: HTTP cookie, App cookie
    - TCP x TCP: Source IP
    - UDP x UDP: Source IP
    Sticky durationEnabled only when sticky session (HTTP cookie, App cookie) is in use
    - Integer between 1 and 604800 (default: 3,600 seconds for HTTP cookie, otherwise 360 seconds)
    Cookie nameEnabled only when sticky session (App cookie) is in use
    - For app cookie, the custom cookie name used by the user's application must be entered (string)
    - Allowed characters: uppercase/lowercase English letters, numbers, and some special characters (! # $ % ^ & _ * + ~ - )
    - Allowed length: 1-255 characters
    Health checkHealth checkSet whether to use it
    Health check protocolHealth check protocol types available according to the target group protocol
    - HTTP target group: HTTP, PING
    - PROXY target group: PING, TCP
    HTTP methodSet only when HTTP is selected as the health check type
    HTTP versionSet only when HTTP is selected as the health check type
    - Select 1 or 1.1
    HTTP status codeSet only when HTTP is selected as the health check type
    - Enter a single code, multiple codes separated by commas, or a code range specified with a hyphen (-)
    Check pathEnter in URL format
    Check intervalInteger between 1 and 3600 (default: 30 seconds). Must be set to a value greater than the timeout
    TimeoutInteger between 1 and 900 (default: 4 seconds). Must be set to a value smaller than the check interval
    Threshold for state change (success)Integer from 1 to 10 (default: 5 times)
    Threshold for state change (failure)Integer from 1 to 10 (default: 2 times)
    info

    When the algorithm is set to Source IP, traffic sent from one source is delivered only to a specific target. Therefore, separate sticky session settings are not required and this feature is disabled. Since sticky session settings specify a retention duration, using Source IP is recommended if you want to maintain stickiness continuously.

  4. On the Step 2: Add targets screen, you can add resources in the same availability zone and VPC as the load balancer selected in Step 1 as targets.

  5. Select the instance to add as a target and enter the port number.

  6. Click the [Add target] button.

  7. You can add the same target again with a different port number or remove an added target.

  8. After adding targets, click the [Next] button.

  9. On the Step 3: Advanced settings screen, you can modify the detailed settings below. After modifying the values or leaving the default values as they are, click the [Next] button.

  10. On the Step 4: Review screen, review the configured information and click the [Create] button.

    info
    • After creating a target group, you must configure the security group settings of the targets. In Target group details > Targets tab, check the health check IP addresses and add those IP addresses to the inbound rules of the target's security group.
    • Those IP addresses are used as service ports, so they must be opened through inbound rule settings even when health check is not used.

Manage target groups

You can modify or delete existing target groups or add new targets.

View target group list and basic information

  1. Go to KakaoCloud console > Networking > Load Balancing > Target group.
  2. Check the target group list and basic information.
    CategoryDescription
    NameDisplays the target group name entered when created
    IDDisplays the ID assigned when created
    Provisioning statusIndicates whether the target group was created successfully or whether modification or deletion is in progress
    Operating statusIndicates whether the created target group is available for use
    ProtocolProtocol used to route traffic to targets
    Load balancerDisplays the name of the load balancer connected to the target group
    Load balancer IDDisplays the ID of the load balancer connected to the target group
    VPCDisplays the name of the VPC that includes the load balancer
    Created atDisplays the date when the target group was created

View target group details

  1. Go to KakaoCloud console > Networking > Load Balancing > Target group.

  2. Select the target group whose details you want to view.

  3. Check detailed information in each tab of the details page.

    ItemDescription
    NameUser-defined name used to identify the target group
    IDUnique identifier automatically assigned when the target group is created
    Provisioning statusProgress status of resource creation/change operations
    Operating statusCurrent operating status of the target group
    ProtocolCommunication protocol used by the target group (for example, HTTP, HTTPS, TCP)
    AlgorithmMethod of distributing traffic (for example, round robin)
    Created atDate and time when the target group was created

Rename

  1. Go to KakaoCloud console > Networking > Load Balancing > Target group.
  2. Select [⋮] > Rename for the target group.
  3. Change the name in the pop-up window, and then click the [Change] button.

Configure listener association

  1. Go to KakaoCloud console > Networking > Load Balancing > Target group
  2. Select [⋮] > Configure listener association for the target group.
  3. Change the listener association settings in the pop-up window, and then click the [Apply] button.
    • When configuring listener association: You can connect to two or more listeners by selecting listeners from the list to connect.
    • When setting Do not associate listener: Disassociates from the listener.

Set algorithm

  1. Go to KakaoCloud console > Networking > Load Balancing > Target group.
  2. Select [⋮] > Set algorithm for the target group.
  3. Change the algorithm in the pop-up window, and then click the [Apply] button.

Configure targets

  1. Go to KakaoCloud console > Networking > Load Balancing > Target group.
  2. Select the target group for which you want to change target settings.
  3. Click the Targets tab, and then click the [Configure targets] button.
  4. In the pop-up window, check the registered targets, delete or add targets, and then click the [Apply] button.
    • To revert to the initial state while modifying targets, click the [Revert] button at the top of the added target list.

Set traffic weight

  1. Go to KakaoCloud console > Networking > Load Balancing > Target group.
  2. Select the target group for which you want to change the traffic weight settings.
  3. Click the Targets tab, and then click [⋮] > Set traffic weight.
  4. Change the weight in the pop-up window, and then click the [Set] button
    ItemDescription
    WeightTraffic distribution value set for the target. The greater the value, the more traffic is delivered
    - Enter as an integer between 0 and 256
    Weight conversion(weight/256)*100 (rounded up to the first decimal place)
    RatioWeight conversion / total sum of weight conversions
    IPPrivate IP address of the target to which traffic is delivered
    InstanceDisplays the name of the connected instance
    Instance IDUnique ID of the connected instance

Configure health check

  1. Go to KakaoCloud console > Networking > Load Balancing > Target group.

  2. Select the target group for which you want to change health check settings.

  3. Click the Health check tab, and then click the [Configure health check] button.

  4. In the pop-up window, change whether to use health check or modify the settings.

    CategoryDescription
    Target groupName of the current target group
    ProtocolTypes available according to the protocol of the target group
    - HTTP target group: HTTP, PING
    - HTTPS target group: HTTPS, PING
    - TCP target group: PING, TCP
    - UDP target group: TCP, HTTP
    - PROXY target group: PING, TCP
    Whether to use health checkHealth check protocol: Health check type
    - PING: Sends packets to the target and checks the response returned by the target (ICMP Ping)
    - HTTP: Sends packets to the configured path and checks the response
    - HTTPS: Checks responses in the same way as HTTP for targets using certificates
    - TCP: Checks the status of the target using a TCP protocol port
    Check interval: Target health check interval (unit: seconds, 1-3600 seconds)
    - Timeout: Sets the maximum time to wait for a target with delayed response (unit: seconds, 1-900 seconds)
    - If the specified time is exceeded, communication with the target is considered failed
    - Must be set to a value smaller than the check interval
    - Threshold for state change (success): If health checks succeed consecutively for the entered number of times, the target is determined to be healthy
    - Threshold for state change (failure): If health checks fail consecutively for the entered number of times, the target is determined to be unhealthy and excluded from traffic distribution
  5. If the health check type is HTTP or HTTPS, you can configure additional attributes.

    CategoryDescription
    HTTP methodSet only when HTTP is selected as the health check type
    HTTP versionSet only when HTTP is selected as the health check type
    - Select 1 or 1.1
    HTTP status codeSet the status code expected to be returned by the target to the load balancer
    - If the target returns the HTTP status code configured by the user, the health check is considered successful
    - Example of a single status code: 200, 201
    - Example of multiple status codes: 201, 202, 401, 402
    - Example of a range: 200-500
    Check pathEnter the path for health checks based on the URL path
  6. Click the [Apply] button.

info

If the target in the target group uses the SELinux option provided by the latest CentOS distribution, PING type health checks do not work because SELinux denies shell_exec_t calls.

Configure sticky session

Sticky sessions can be configured only for some target groups depending on the listener and target group protocol.

Sticky session options by listener and target group protocol
Target group\ListenerHTTPHTTPSTCPUDP
HTTP            HTTP cookie, App cookieXXX
HTTPSXXXX
TCPXXSource IPX
UDPXXXSource IP
PROXYXXXX
  1. Go to KakaoCloud console > Networking > Load Balancing > Target group.
  2. Select the target group for which you want to change sticky session settings.
  3. Click the Attributes tab, and then click the [Configure sticky session] button.
  4. Change whether to use it or modify the settings in the pop-up window, and then click the [Apply] button.

Delete target group

  1. Go to KakaoCloud console > Networking > Load Balancing > Target group.
  2. Select [⋮] > Delete target group for the target group.
  3. Enter the delete confirmation text in the pop-up window, and then click the [Delete] button.

Manage targets

You can view, modify, and delete targets added to the target group.

caution

Two health check IPs are created for each subnet containing targets. To perform health checks, communication through those IPs must be allowed.
Refer to the View health check IP and Allow health check IP communication guides and add inbound rules to the security group.

View health check IP

  1. Go to KakaoCloud console > Networking > Load Balancing > Target group.
  2. Select the target group for which you want to view the health check IP.
  3. Select the Targets tab, and then select [⋮] > View health check IP for the target.

Allow health check IP communication

There are two ways to configure security groups to allow communication from health check IPs.
For your convenience, choose one of the following two methods to allow communication.

First, add inbound rules that allow the IPs in the existing security group of the target instance
  1. Go to KakaoCloud console > Networking > Load Balancing > Target group.

  2. Select the target group for which you want to view the health check IP and allow communication.

  3. Select the Targets tab.

  4. Click Health check IP by subnet at the top of the tab details screen to check the list of health check IPs. Keep the health check IP view open or copy the list.

  5. In the Target list at the bottom of the tab details screen, identify the instance for which communication from the health check IPs should be allowed, and select the security group name of that instance.

    • If multiple security groups are connected, select any one of them and register it.
    • If the same rule has already been added to one or more connected security groups, communication is already allowed.
  6. In the Inbound rules tab of the Security group details screen, click the [Add inbound rule] button.

  7. In the Manage security group rules pop-up window, click the [Add] button at the bottom of the inbound rules tab to add a new rule input field. Image Manage security group rules

  8. Based on the detailed information in Process 5 of the Target group > Targets tab, enter the rule information and click the [Apply] button on the right.

    Configure inbound rule
    CategoryDescription
    ProtocolProtocol for communication (TCP, UDP, ICMP, ALL), selected according to the health check type of the target group
    - If the health check type is PING: ICMP
    - If the health check type is HTTP, HTTPS, TCP: TCP
    SourceSource IP to allow access
    - Enter the health check IP confirmed in target details
    - Register each of the two health check IPs created in the subnet containing the target
    PortPort for communication
    - Enter the health check port of the target
    Rule description (optional)Description of the rule
  9. Click the [Close] button at the bottom of the Manage security group rules pop-up window to complete rule registration.

Second, create a new security group for health checks and connect it to the target instance
  1. Go to KakaoCloud console > Networking > Load Balancing > Target group.

  2. Select the target group for which you want to view the health check IP and allow communication.

  3. Select the Targets tab.

  4. Click Health check IP by subnet at the top of the tab details screen to check the list of health check IPs.
    Keep the health check IP view open or copy the list.

  5. Refer to Create security group and go to the screen for creating a new security group.

  6. In the pop-up window, enter the security group name and description, and then add inbound rules. Image Create security group

  7. Based on the detailed information in Process 3 of the Target group > Targets tab, enter all rule information.

    • You can register all health check IPs in one security group and connect that security group to all target instances.
      Or you can create a security group for each subnet, register only the health check IPs created in that subnet, and connect it only to the target instances in the same subnet.
    Configure inbound rule
    CategoryDescription
    ProtocolProtocol for communication (TCP, UDP, ICMP, ALL), selected according to the health check type of the target group
    - If the health check type is PING: ICMP
    - If the health check type is HTTP, HTTPS, TCP: TCP
    SourceSource IP to allow access
    - Enter the health check IP confirmed in target details
    - Register each of the two health check IPs created in the subnet containing the target
    - If managing with one security group, register each of all health check IPs
    PortPort for communication
    - Enter the health check port of the target
    - Can be entered as a single port or a range
    Rule description (optional)Description of the rule
  8. Click the [Create] button to complete creating the security group.

  9. In the Security group list, click the [Manage connected resources] button on the right of the created security group to connect the target instance and complete the configuration.

View target list and basic information

  1. Go to KakaoCloud console > Networking > Load Balancing > Target group.
  2. Select the target group for which you want to view targets.
  3. Select the Targets tab.
  4. Check the target list and basic information of the targets.
    CategoryDescription
    IPTarget IP
    PortTarget port
    InstanceName and ID of the target instance
    SubnetName of the subnet that contains the target
    Security groupSecurity group connected to the target instance
    Health check portPort on which the health check is performed
    Weight ratioWeight ratio converted from the entered weight according to the formula
    Provisioning statusIndicates whether the target was added successfully or whether modification or deletion is in progress
    Operating statusIndicates whether the added target is available for use

Modify targets

info

You cannot modify the port of an added target. If you want to change the port, delete the target and then perform Configure targets again.

Set health check port

  1. Go to KakaoCloud console > Networking > Load Balancing > Target group.
  2. Select the target group for which you want to change the health check port settings.
  3. Click the Targets tab, and then click [⋮] > Set health check port.
  4. Change the health check port value in the pop-up window to suit your environment, and then click the [Save] button.

Detach target

  1. Go to KakaoCloud console > Networking > Load Balancing > Target group.
  2. Select the target group from which you want to disassociate a target.
  3. Select the Targets tab, and then select [⋮] > Detach target for the target.
  4. Enter the information in the pop-up window, and then click the [Disassociate] button.
info

Disassociating a target does not delete the instance. To associate it again, add it in Configure targets.