Creating a Load Balancer with Steering Policies
On Compute Cloud@Customer, if you have more than one DNS server, you can distribute traffic in a load balancing fashion, based on the weight you assign to each of them.
Avoid entering confidential information in names and tags.
-
In the Compute Cloud@Customer Console navigation menu, click DNS, then click Steering Policies.
-
Click Create Steering Policy.
-
Select Load Balancer to create a load balancer steering policy.
-
Enter the required information:
-
Name: Enter a name to display for the load balancer steering policy. Do not use confidential information.
-
Policy TTL: Enter a TTL in seconds for responses to steering policy requests. The maximum is 604800 seconds (equal to 168 hours or 7 days).
-
Answers: Supply the answer or answers to the DNS request for FILTER, WEIGHED, and LIMIT rules. You don't have to specify which condition the answers is for: that's all done by the load balancer template.
-
Name: Enter a name for the RData returned, such as Server1.
-
Type: Choose the type of resource record to return for the request from the drop-down list. Choices are items such as A (IPv4 address) or CNAME (canonical name).
-
RData: Enter the resource record RData that is returned that corresponds to the Type selected. For example, for Type = A, the RData would be an IPv4 address.
-
Weight: Enter a weight for this policy to use for load balancing. Values up to 256 are supported. The default is 10. Higher weights mean that policy answer is used more often. For example, if
dns-server1
anddns-server2
have equal weights, DNS requests are split evenly between them. Ifdns-server1
has a weight twice that ofdns-server2
, thendns-server1
is used twice as often asdns-server2
.
-
-
-
Disabled: The steering policy answer is enabled at creation by default. To disable this steering policy answer, click the toggle to change the Disabled value to TRUE.
-
Tagging: (Optional) Add one or more tags to this resource. Tags can also be applied later. For more information about tagging resources, see Resource Tags.
-
Click Save Changes.
The load balancing steering policy is created.
-
Use the oci dns steering-policy create command and required parameters to create a new steering policy in the specified compartment.
oci dns steering-policy create [OPTIONS]
For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Use the CreateSteeringPolicy operation to create a new steering policy in the specified compartment.
For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.