How to configure the policy

This section describes how to configure the policy.

You can specify the algorithm for L4 load balancing, persistence method, health monitor, listener, and target group.

Add policy

  • From the control panel, select Cloud / Server Local Network → Managed Load Balancer.

  • The Managed Load Balancers list page is displayed, select the Managed Load Balancer to which you want to add a policy.

policy_add_1
  • Open the "Policies" tab and click "Add Policy".

policy_add_2
  • Enter the required fields to add the policy and click "Add Policy".

  • The items that can be configured when adding a policy are as follows.

category

Specifiable parameters

Contents

Input format

detail

name

You can specify the name of the policy.

255 half-width characters

 

Explanation

You can specify a description for the policy.

255 half-width characters

 

tag

You can specify tags for the policy.

JSON format

 

algorithm

You can select the load balancing algorithm to use from the pull-down menu.
[round-robin, weighted-round-robin, least-connection, weighted-least-connection, source-ip-port-hash]
 
 

Persistence

You can select the session maintenance method to use from the pull-down menu.
[none, source-ip]
 

Details 2

Health monitor

You can specify the health monitor to use.

 
 

listener

You can specify the listener to use.

 
 

Default target group

You can specify the default target group to use.

 

Note

  • The distributed algorithms that can be selected and their contents are as follows.

    • round-robin:Sorts the requests to the server in order.

    • weighted-round-robin:Sorts requests based on the weight assigned to the server.

    • least-connection:Distributes the request to the server with the fewest connections.

    • weighted-least-connection:Requests are distributed based on the combination of the weight assigned to the server and the number of connections.

    • source-ip-port-hash:Requests are distributed based on the hash value of the source IP header and port number from the client.

Note

  • The persistence settings (session maintenance method) that can be selected and their contents are as follows.

    • none:Does not set persistence (session maintenance method).

    • source-ip:Requests from the same source IP address are distributed to the same server.

  • Confirm that the policy config status is "CREATE_STAGED".

policy_add_3
  • Executed "Apply Load Balancer Settings" to complete the addition of policy.

Note

  • You can apply the load balancer settings together with other setting items.

View policy details

  • In the Managed Load Balancer list page, click the resource name of the Managed Load Balancer for which you want to check the policy details.

  • Open the "Policies" tab and click the resource name of the policy for which you want to see details.

policy_detail_1
  • The information that can be confirmed on the policy details screen is as follows.

category

Specifiable parameters

Contents

Overview

name

You can see the name of the policy.

  ID

You can see the ID of the policy.

 

Explanation

You can see the policy description.

 

tag

You can see the tag of the policy.

 

Config status

You can see the configuration status of the policy.

The possible values are as follows.
・”ACTIVE”:The load balancer does not have a config waiting to be applied.
・”CREATE_STAGED”:The config added to the load balancer is waiting to be applied.
・”UPDATE_STAGED”:The config to be changed to the load balancer is waiting to be applied.
・”DELETE_STAGED”:The config to be deleted by the load balancer is waiting to be applied.
 

Operation status

You can see the operational status of the policy.

The possible values are as follows.
・”NONE”:Initial state
・”PROCESSING”:The state in which the config is being applied to the load balancer.
・”COMPLETE”:The state where the latest operation is completed
・”STUCK”:The latest operation processing is stopped and operator intervention is required, so it is impossible to operate the resource.
・”ERROR”:The latest operation processing failed, but since it has been rolled back normally, it is possible to operate the resource.
 

Monitoring status

You can see the number of normal members and the number of abnormal members in the target group associated with the policy.

 

algorithm

You can see the load balancing algorithm to be used.

 

Persistence

You can see the session maintenance method to be used.

 

Health monitor ID

You can see the health monitor ID to be used.

 

Listener ID

You can see the listener ID to be used.

 

Default target group ID

You can see the default target group ID to be used.

Note

  • The ”Details” of the monitoring status provides a link to the monitoring service GUI. If you have never accessed the GUI of the monitoring service, you will be redirected to the SDPF portal, so you need to access the monitoring service from the SDPF portal in advance.

Edit policy

  • In the Managed Load Balancer list page, click the resource name of the Managed Load Balancer whose policy you want to edit.

  • Open the "Policies" tab and click "Edit Policy" from the Actions pull-down for the policy you want to edit.

policy_edit_1
  • Enter the settings you want to edit and click "Edit Policy".

  • The items that can be configured when editing the policy are as follows.

category

Specifiable parameters

Contents

Input format

detail

name

You can specify the name of the policy.

255 half-width characters

 

Explanation

You can specify a description for the policy.

255 half-width characters

 

tag

You can specify tags for the policy.

JSON format

 

algorithm

You can select the load balancing algorithm to use from the pull-down menu.
[round-robin, weighted-round-robin, least-connection, weighted-least-connection, source-ip-port-hash]
 
 

Persistence

You can select the session maintenance method to use from the pull-down menu.
[none, source-ip]
 

Details 2

Health monitor

You can specify the health monitor to use.

 
 

listener

You can specify the listener to use.

 
 

Default target group

You can specify the default target group to use.

 
  • If the policy config status is ”UPDATE_STAGED” or ”CREATE_STAGED”, execute ”Apply Load Balancer Settings” to complete policy editing.

policy_edit_2

Note

  • If you edit the name, description, or tag, the config status will not change to ”UPDATE_STAGED”.

  • In addition, you can apply the load balancer settings together with other setting items.

Cancel policy settings

  • In the Managed Load Balancer list page, click the resource name of the Managed Load Balancer for which you want to cancel the policy settings.

  • Open the "Policies" tab and click "Cancel the Policy Settings" from the Actions pull-down for the policy for which you want to cancel the setting.

policy_cancel_change_1
  • The confirmation page for canceling the policy settings is displayed, click ”Confirmation of Cancellation of Policy Settings”.

policy_cancel_change_2

Delete policy

  • In the Managed Load Balancer list page, click the resource name of the Managed Load Balancer whose policy settings you want to delete.

  • Open the "Policies" tab and click "Delete Policy" from the Actions pull-down for the policy you want to delete.

policy_delete_1
  • The confirmation for deleting the policy is displayed, click ”Delete Policy”.

policy_delete_2

Note

  • After the policy config status turns into ”DELETE_STAGED” in this operation, the policy settings is not deleted from the load balancer instance until the load balancer settings are applied. If you want to delete the policy setting from the load balancer instance, execute ”Apply Load Balancer Setting” following this operation.

  • If you want to cancel the setting that is ”DELETE_STAGED”, execute "Cancel the Policy Settings".

  • Confirm that the status of the policy is ”DELETE_STAGED”.

policy_delete_3
  • Execute ”Apply Load Balancer Settings” to complete the deletion of policy.

Note

  • You can apply the load balancer settings together with other setting items.