Load Balancing Policy
Configure how the DNS server selects an address from a group.
curl -s -X PATCH https://api.1bytedns.ru/client/v1/zones/42/address_groups/5/policy \
-H "Authorization: Bearer TOKEN" \
-H "Content-Type: application/json" \
-d '{"lb_policy": "weighted", "evaluate_health": true}' | python3 -m json.tool
Policies:
| Policy | Description |
|---|---|
round_robin | Cycle through members in order |
weighted | Distribute according to member weights |
failover | Use primary; fail over to secondary if unhealthy |
multivalue | Return all healthy members in one response |
Body Parameters:
| Field | Type | Required | Description |
|---|---|---|---|
lb_policy | string | Yes | One of: round_robin, weighted, failover, multivalue |
evaluate_health | boolean | No | Consider health status (default: true) |
Last updated: 2026-06-26