You can easily create a DSR-type load balancer by simply entering the settings in the NHN Cloud console. Load Balancer (DSR) operates in direct server return (DSR) mode, allowing server response traffic to be sent directly to the client without passing through the load balancer, providing high throughput.
The Load Balancer (DSR) creation screen consists of the following three sections:
Configure the basic information for Load Balancer (DSR). The required items are as follows:
Caution
If the manually specified VIP address is not within the CIDR range of the subnet, creation will fail. Make sure to specify an IP within the IP range of the subnet.
Note
Load Balancer (DSR) operates at the TCP/UDP L4 level, and server response traffic does not pass through the load balancer. Therefore, unlike a standard load balancer, L7 features such as HTTP header-based routing, SSL offloading, and the listener/member group concept are not provided.
Configure health checks to periodically verify that member instances are operating normally.
Configure the following additional items for each protocol:
TCP
ICMP
HTTP
/.200.Caution
The delay must be greater than or equal to the timeout. If the timeout is greater than the delay, health checks may not function correctly.
Note
TCP/HTTP health checks send requests to the DSR VIP (private IP) as the destination, so if the VIP is not configured on the lo interface of the member server, the packets cannot be received or processed, causing the health check to fail and the member to be marked as INACTIVE. ICMP health checks send requests to the actual IP of the member, so they only verify connectivity regardless of the VIP configuration.
Specify the member instances to register when creating Load Balancer (DSR). Members can also be registered after Load Balancer (DSR) is created.
Note
Load Balancer (DSR) forwards client requests to member instances while preserving the destination port of the client request (VIP port). Therefore, unlike a standard load balancer, the service port is not specified per member when registering members; only the network interface of the member instance is selected. The application on the member server must be bound to 0.0.0.0 or the VIP and listen on the same port that the client sends requests to.
Caution
For a member instance to properly receive and respond to traffic arriving at the VIP, the following configurations are required within the server.
arp_ignore=1, arp_announce=2)lo interface with a /32 subnetThe address registered in the lo interface and additional allowed addresses is the VIP (private IP), not the floating IP associated with Load Balancer (DSR).
For detailed instructions, see the Member server configuration guide in Load Balancer (DSR) Overview.
Note
The initial status of a newly registered member is INACTIVE. Once the health check passes, the status automatically transitions to ACTIVE and the member begins receiving traffic.
After entering all items, click Create Load Balancer to create Load Balancer (DSR).
Once Load Balancer (DSR) creation is complete, the basic information of the created Load Balancer (DSR) instances can be viewed on the list screen. The items displayed on the list screen are as follows:
Note
The status of Load Balancer (DSR) is determined by one of the following:
| Status | Description |
|---|---|
ACTIVE |
Operating normally |
BUILD |
Load Balancer (DSR) being created |
ERROR |
Error occurred. Contact the administrator. |
Additional Load Balancer (DSR) instances can be created using + Create DSR button at the top. To delete, select Load Balancer (DSR) instances using the checkboxes in the list, then click Delete button.
Selecting a Load Balancer (DSR) from the list displays its details at the bottom of the screen. The details screen is divided into three tabs: Basic information, Members, and Health Check.
The Basic Information tab displays the following:
To modify the name of Load Balancer (DSR), click Modify Name icon in the details, enter the new name, and click Confirm.
A Floating IP can be connected or disconnected to enable access to Load Balancer (DSR) from an external network.
Note
Disassociating a Floating IP does not affect access to the VIP from within the VPC.
Note
The VPC, subnet, and VIP address connected to Load Balancer (DSR) cannot be changed after creation. If a change is needed, delete Load Balancer (DSR) and recreate it.
If you activate deletion protection, you can protect load balancers (DSR) from accidental deletion. The load balancer (DSR) cannot be deleted until deletion protection is deactivated. You can change the deletion protection setting at any time after creating a load balancer (DSR).
On the Load Balancer (DSR) list screen, select the Load Balancer (DSR) to delete, click Delete button, and then click Confirm button in the confirmation window to delete the selected Load Balancer (DSR).
Warning
Deleting Load Balancer (DSR) will also delete all members registered in the DSR. If a Floating IP is associated, it will be automatically released.
Note
You cannot delete a Load Balancer (DSR) with deletion protection enabled. To delete it, you must first disable deletion protection for the Load Balancer (DSR).
Select the desired load balancer (DSR) from the load balancer (DSR) list, then click Members tab to display the member instance management screen.
The Members tab displays the list and status of member instances registered in Load Balancer (DSR). The items displayed in the list are as follows:
Note
Since Load Balancer (DSR) forwards client requests to members while preserving the destination port, the L4 service port is not displayed separately in the member list. The actual service port is the port that the client uses to send requests to the VIP, and the application on the member server must listen on the port.
Note
The member status is determined by one of the following:
| Status | Description |
|---|---|
ACTIVE |
Health check passed, target for traffic distribution |
INACTIVE |
Health check failed or immediately after being newly registered, excluded from traffic distribution |
ONLINE |
The member is manually disabled |
Click + Add Member button on the Member tab to display the add member modal.
Note
Unlike a standard load balancer, Load Balancer (DSR) does not require entering an L4 service port when adding members. Since Load Balancer (DSR) forwards the destination port of client requests to members without modification, per-member port mapping is not required.
Caution
Note the following restrictions when registering members:
Note
To properly receive traffic after registering a member, add the VIP as an additional allowed address on the network interface, and configure the ARP kernel parameters, add the VIP to the lo interface, and set up Security Groups rules within the member server. For detailed instructions, see the Member server configuration guide in the Load Balancer (DSR) Overview.
You can temporarily exclude a member from the service without deleting it. Select the member to exclude from the list on the Members tab, click the Deactivate Member button, and then click Confirm. The status of a deactivated member changes to ONLINE and the member is excluded from traffic distribution.
Note
A deactivated member remains registered in Load Balancer (DSR) without being removed, and continues to count toward the number of members per Load Balancer (DSR) quota. For more information about member status values, see Member List.
Select the member to delete from the list on the Members tab and click Delete button. When the confirmation window appears, click Confirm to remove the member from Load Balancer (DSR).
Note
Deleting a member from Load Balancer (DSR) does not delete the instance itself. Conversely, if an instance registered as a member is deleted, the member is automatically removed from Load Balancer (DSR).
The current health check settings can be viewed and modified on the Health Check tab of the Load Balancer (DSR) details screen.
The Health Check tab displays the following information about the currently configured health check:
Click Change Setting button on the Health Check tab to modify the health check settings.
Click Confirm after completing the settings to apply the changes
Caution
The delay must be greater than or equal to the timeout. If the timeout is greater than the delay, health checks may not function correctly.
Note
Health check requests are sent from a dedicated health check IP automatically assigned to the same subnet as Load Balancer (DSR). The Security Groups of member instances must allow this traffic by specifying the subnet CIDR as the remote for health checks to function correctly. For more information, see the Security Groups configuration section in the Load Balancer (DSR) Overview.
The following quotas and limitations apply when using Load Balancer (DSR):
| Item | Default Limit | Description |
|---|---|---|
| Number of Load Balancers (DSR) per project | 10 | Maximum number of Load Balancer (DSR) instances that can be created per project |
| Number of members per Load Balancer (DSR) | 30 | Maximum number of members that can be registered in a single Load Balancer (DSR) |
Note
If you need to exceed the default quota, contact customer support.