Create and Manage Target Groups
    • PDF

    Create and Manage Target Groups

    • PDF

    Article Summary

    The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.

    Available in VPC

    Create and manage the Target Groups to add to Load Balancers

    Create Target Group

    The following describes how to create a target group.

    1. Access the NAVER Cloud Platform console.
    2. Click the Services > Networking > Load Balancer menu one by one in the order.
    3. Click the Target Group menu.
    4. Click the [Create Target Group] button.
    5. When the Create Target Group screen appears, proceed with the following steps.

    1. Create Target Group

    Enter the information for the Target Group you wish to create and click the [Next] button.

    loadbalancer-targetgroup-vpc_info_ko

    • Currently only VPC Server is available as the Target Type.

    • VPC: Select the VPC that the Target(server) is included in.

    • Protocol: Select the protocol depending on the target's role.

      • The Load Balancer type varies by the selected protocol. The Load Balancer types for each protocol are the following:

        ProtocolLoad Balancer
        TCPNetwork Load Balancer
        PROXY_TCPNetwork Proxy Load Balancer
        HTTPApplication Load Balancer
        HTTPSApplication Load Balancer
    • Port: Enter the port number that each Target is listening(in service).

      • Forward the traffic to the port entered.

    2. Set Health Check

    Set up the health check policy of the Target Group and click the [Next] button.

    loadbalancer-targetgroup-vpc_healthcheck_ko

    • Protocol: Select the protocol that can check the target’s status.
      • You can only select TCP if the Target Group’s protocol is TCP/PROXY_TCP. If it is HTTP/HTTPS, you can select either HTTP or HTTPS.
    • Port: Enter the port number to use to check the target’s status.
      • As long as you can view the status, it does not have to match the port number you entered for 1. Create Target Group.
    • If you select HTTP or HTTPS protocol during 1. Create Target Group, please enter the URL Path and HTTP Method by referring to the following.
      • URL Method: Enter the URL address to use to check the target’s status.
      • HTTP Method: Select the HTTP Method(HEAD/GET) to use to check target's status.
    • Health Check Interval (sec): Enter the Health Check Interval between 5 to 300 seconds.
    • Enter a threshold where the target's status will be changed.
      • Normal Threshold: The number of status check times the abnormal target must succeed to be put back into service.
      • Failure Threshold: The number of times the normal target must fail to be changed as abnormal and be excluded from the load distribution target

    3. Add Targets

    loadbalancer-targetgroup-vpc_addtrg_ko

    1. Select the target to include in the Target Group from the All Target field.
      • All Target is for all servers in VPC.
    2. Click the [>] button to move to Applied Target field.
      • To remove a server included in the Applied Target field, select the target to eliminate and click [<].
    3. Click the [Next] button.

    4. View Setting Information

    Check the setting information for Target Group and click the [Create Target Group] button.

    Manage Target Groups

    The target group created can change settings, add/remove a target, change health check settings, or check the monitoring information as a graph.

    Target Group Settings

    The following describes how to check the target group settings information and change the settings.

    1. Click the Services > Networking > Load Balancer menu on the NAVER Cloud Platform console one by one in the order.
    2. Click the Target Group menu.
    3. Select the Target Group to check or change the setting information and click the [Change Target Group Settings] button.
    • The Change Target Group Settings window appears and you can view the setting information of the Target Group.
    1. After applying changes, click the [OK] button.

      loadbalancer-targetgroup-vpc_setting_ko

      • You can change the Sticky Session status, Proxy Protocol application status and load balancing algorithm.
      • Sticky Session is a feature that forwards to the same server for next requests by adding a unique server ID to headers.
        • The check box is only activated when the Target Group’s protocol is TCP/HTTP/HTTPS.
      • Proxy Protocol is only activated when the Target Group’s protocol is PROXY_TCP.
        • For further information about Proxy Protocol settings, see Proxy Protocol.
      • For the Load Balancing Algorithm, you can choose either Round Robin/Least Connection/Source Ip Hash.
        • If the Target Group’s protocol is TCP, Least Connection is excluded from the options.
        • For further information about Load Balancing Algorithm, please refer to Server > Networking > Load Balancer of the NAVER Cloud Platform or check the FAQ of this guide.

    Set Health Check

    The following describes how to check the health check policies set to the target group and change the settings.

    1. Click the Services > Networking > Load Balancer menu on the NAVER Cloud Platform console one by one in the order.

    2. Click the Target Group menu.

    3. Select a Target Group to establish the health check policy in and click the [Health Check Setting] button.

      • The Health Check Setting window pops up and you can view the health check policies.
    4. After applying changes, click the [OK] button.

      loadbalancer-targetgroup-vpc_setting2_ko

      • For the detailed information about each item of the health check policy setting, see 2. Set Health Check

    Target Setting

    The following describes how to check and add/delete the target included in the target group.

    Notes

    If you wish to change the servers applied to Load Balancers, please change the target of the Target Group added to the Load Balancer.

    1. Click the Services > Networking > Load Balancer menu on the NAVER Cloud Platform console one by one in the order.

    2. Click the Target Group menu.

    3. Select the Target Group to set a target in and click the [Target Setting] button.

      • The Target Settings window appears and you can view the targets included in the Target Group.

        loadbalancer-targetgroup-vpc_setting3_ko

    4. To add a target, select a target to add from the All Server and click the [>] button.

      • All Server is for all servers in VPC.
    5. To delete an included target, select a target to delete from the Applied Targets and click the [<] button.

    6. Click the [OK] button.

    Check Target Status

    The following describes how to check the target status.

    1. Click the Services > Networking > Load Balancer menu on the NAVER Cloud Platform console one by one in the order.
    2. Click the Target Group menu.
    3. Select the Target Group to set a target in and click the [View Target Status] button.
      • The View Target Status window pops up and you can check the status of the targets included in the Target Group according to the health check policy.

    Monitoring Target Groups

    You can check the information for Available Host Count and Unavailable Host Count collected for a period of time each as a graph.

    Notes

    The collection interval changes depending on the selected period. Especially, the monitoring information collected by processing the distributed loads can be viewed by setting for the minimum of 1 minutes up to recent 1 year.

    Collection IntervalView Period
    1 min IntervalMax. 6 hours
    5 mins IntervalMax. 1 day
    30 mins IntervalMax. 1 week
    2 hours IntervalMax. 1 month
    1 day intervalOver 1 month

    The following describes how to check the target group's monitoring information.

    1. Click the Services > Networking > Load Balancer menu on the NAVER Cloud Platform console one by one in the order.
    2. Click the Target Group menu.
    3. Select a Target Group to monitor and click the [Monitoring] button.
      • The Target Group Monitoring window pops up and shows the monitoring information as graphs.
      • Select the period to check the monitoring information collected for the selected period.
      • Click the [Refresh] button to refresh the graphs.
      • Click i_loadbalancer_enlargement to view an extended graph and click the [X] button to download the collected monitoring information as an excel file.

    Delete Target Groups

    Notes

    If a Target Group is connected to a Load Balancer, you cannot delete the Target Group. Delete the Load Balancer first and delete the Target Group.

    The following describes how to delete a target group.

    1. Click the Services > Networking > Load Balancer menu on the NAVER Cloud Platform console one by one in the order.
    2. Click the Target Group menu.
    3. Select a Target Group to delete and click the [Delete] button.
    4. Check the content on the Delete Target Group window and click the [Delete] button.
      • Selected target group is deleted.

    Proxy Protocol

    Proxy Protocol is a protocol to check the Original Client IP address that requests connections from a Proxy environment given you use TCP and SSL protocols for Load Balancer.

    The following describes how to check the client's IPs for each protocol you set for Load Balancer.

    ProtocolMethod
    HTTP, HTTPSX-Forwarded-For
    TCP, SSLProxy Protocol

    If you chose to use Proxy Protocol upon setting the Load Balancer rules, the Load Balancer calls the request as the following:

    PROXY_STRING + single space + INET_PROTOCOL + single space + CLIENT_IP + single space + PROXY_IP + single space + CLIENT_PORT + single space + PROXY_PORT + "\r\n“
    

    <Examples>

    PROXY TCP4 125.209.237.10 125.209.192.12 43321 80\r\n
    

    The Apache and NginX versions that support Proxy Protocol are the following:

    • Apache 2.2
    • Apache 2.4
    • NginX 1.11.12

    Proxy Protocol Settings

    The following describes how to set up Proxy Protocol.

    1. Select TCP or SSL protocols in the 1. Create Load Balancer stage and click the check box for Proxy Protocol.
    2. Check the following steps to set according to the version.

    Apache 2.2

    The following describes how to set up Proxy Protocol in the Apache 2.2 version.

    $ wget --no-check-certificate https://raw.githubusercontent.com/ggrandes/apache22-modules/master/mod_myfixip.c
    $ /{The location where Apache was installed}/bin/apxs -c -i mod_myfixip.c
    
    • Add the following settings to the /{Apache location}/conf/httpd.conf file.

      LoadModule myfixip_module modules/mod_myfixip.so
      
      <IfModule mod_myfixip.c>
      RewriteIPResetHeader off
      RewriteIPAllow 10.31.0.0/16  #LB IP 대역으로 설정 (e.g. LB IP가 125.209.197.92인 경우 125.209.0.0/16)
      </IfModule mod_myfixip.c>
      

    Apache 2.4

    The following describes how to set up Proxy Protocol in the Apache 2.4 version.

    $ wget --no-check-certificate https://raw.githubusercontent.com/ggrandes/apache24-modules/master/mod_myfixip.c
    $ /{The location where Apache was installed}/bin/apxs -c -i mod_myfixip.c
    
    • If you cannot find the apxs location, install the http-devel package and check again.

    • Add the following settings to the /{Apache location}/conf/httpd.conf file.

      LoadModule myfixip_module modules/mod_myfixip.so
      
      <IfModule mod_myfixip.c>
      RewriteIPResetHeader off
      RewriteIPAllow 10.31.0.0/16  #LB IP 대역으로 설정 (e.g. LB IP가 125.209.197.92인 경우 125.209.0.0/16)
      </IfModule mod_myfixip.c>
      

    Nginx 1.11.12

    The following describes how to set up Proxy Protocol in the Nginx 1.11.12 version.

    1. Check if the HTTP module is included on Nginx.
    $ nginx -V 2>&1 | grep – 'http_realip_module'
    
    1. Add the following settings to the NGINX conf file.
    http {
    proxy_set_header X-Real-IP         $proxy_protocol_addr;
    proxy_set_header X-Forwarded-For   $proxy_protocol_addr;
    log_format main ' $proxy_protocol_addr - $remote_user [$time_local]'
    #기존 로그 포맷에 추가
                     '"$request" $status $body_bytes_sent'
                     '"$http_referer" "$http_user_agent"';
    server
    { listen 80  proxy_protocol;
      set_real_ip_from LB IP 대역 1(192.168.0.0/16);
      set_real_ip_from LB IP 대역 2(192.168.0.0/16);
      real_ip_header proxy_protocol     }
    }
    

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.