Global Regions enable the distribution of traffic depending on your user locations by creating child Load Balancer instances linked to a parent Load Balancer. You can create one child Load Balancer in each Vultr region and link multiple instances to distribute traffic. User requests to the parent Load Balancer are routed to the nearest child Load Balancer in a region depending on the user's location.
Follow this guide to manage global regions on a Vultr Load Balancer using the Vultr Customer Portal or API.
Send a GET
request to the List Regions endpoint and note your target region ID.
$ curl "https://api.vultr.com/v2/regions" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a PATCH
request to the Update Load Balancer endpoint to create a child Load Balancer in the target region.
$ curl "https://api.vultr.com/v2/load-balancers/{load-balancer-id}" \
-X PATCH \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"global_regions": [
"{region_1_id}",
"{region_2_id}"
]
}'
No comments yet.