Creating a Load Balancer Policy

Create a load balancer traffic management policy that distributes traffic across many endpoints.

See Traffic Management for a feature overview and more information about load balancer policies.
    1. Open the navigation menu and click Networking. Under DNS management, click Traffic management steering policies.
    2. Under List scope, select the compartment in which you want to create the policy.
    3. Click Create traffic management steering policy.
    4. For Policy type, select Load balancer.
    5. Enter the following information:
      • Policy name: A unique name that identifies policy. Avoid entering confidential information.
      • Policy TTL: The time to live for responses from the policy. If not specified, the system sets this value.
      • Maximum answer count: The maximum number of answers returned for the policy.
      • Answer(s): Answer pools contain the group of answers to serve in response to DNS queries.

        • Name: A unique name to identify the answer. Avoid entering confidential information.
        • Type: The record type to provide as the answer.
        • Rdata: A valid domain name or IP address to add as an answer.
        • Weight: A number between 0 and 255 used to decide how often an answer is served in relation to other answers. Answers with higher values are more likely to be served.
        • Eligible: Select the check box to indicate that the answer is available within the pool to be used in response to queries.
      • Attach health check: Select an existing health check to be included as part of the policy, add a new one, or select None.
      • Attach domain(s): (Optional) The domain name and domain OCID that you want to attach to the policy. You can add more domains as needed.
    6. (Optional) Click Show Advanced Options: to apply tags to the policy.
      If you have permissions to create a resource, then you also have permissions to apply free-form tags to that resource. To apply a defined tag, you must have permissions to use the tag namespace. For more information about tagging, see Resource Tags. If you're not sure whether to apply tags, skip this option (you can apply tags later) or ask an administrator.
    7. Click Create policy.
  • Use the steering-policy create command and required parameters to create a load balancer steering policy:

    oci dns steering-policy create --compartment-id compartment_id --display-name policy_name
    --template LOAD_BALANCE  ... [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.

  • Run the CreateSteeringPolicy operation to create a load balancer steering policy. Specify the TemplateType parameter as LOAD_BALANCE.

    See Traffic Management Steering Policies API Guide for more information on using the API to create steering policies.