China Geo Steering Region Load Balancing

Where in the group is China present?

I want China to get a specific pool if possible.

  1. Also which region India comes?

@ryan

For China should we still rely on A record?

You can refer https://developers.cloudflare.com/load-balancing/reference/region-mapping-api
Like so:

curl -X GET "https://api.cloudflare.com/client/v4/accounts/01a7362d577a6c3019a474fd6f485823/load_balancers/regions?country_code=CN" \
     -H "X-Auth-Email: [email protected]" \
     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
     -H "Content-Type: application/json"

Per the response we can see it is not present in any of the regions:

{
  "result": {
    "iso_standard": "Country and subdivision codes follow ISO 3166-1 alpha-2 and ISO 3166-2",
    "regions": []
  },
  "success": true,
  "errors": [],
  "messages": []
}

This API call would tell us:

curl -X GET "https://api.cloudflare.com/client/v4/accounts/01a7362d577a6c3019a474fd6f485823/load_balancers/regions?country_code=IN" \
     -H "X-Auth-Email: [email protected]" \
     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
     -H "Content-Type: application/json"

Like so:

{
  "result": {
    "iso_standard": "Country and subdivision codes follow ISO 3166-1 alpha-2 and ISO 3166-2",
    "regions": [
      {
        "region_code": "SAS",
        "countries": [
          {
            "country_code_a2": "IN",
            "country_name": "India"
          }
        ]
      }
    ]
  },
  "success": true,
  "errors": [],
  "messages": []
}

We can then refer https://developers.cloudflare.com/load-balancing/reference/region-mapping-api#list-of-load-balancer-regions and see that the region code SAS stands for Southern Asia.

Yes. You might want to look into https://www.cloudflare.com/china-network/

Hope this helps.

Note: You’ll need to replace your account ID, e-mail and API key on the API calls given above. Make sure to treat your API key as you would a password.

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.