Worker running in unexpected location despite Smart Placement being disabled

Hi everyone, I’m experiencing an issue with my Cloudflare Worker where it’s running in a location that’s far from my users, despite Smart Placement being disabled. I’ve checked the settings and confirmed that Smart Placement is indeed disabled, but the Worker is still running in Marseille, FR, which is causing high latency for my users in Bengaluru, India. I’ve tried troubleshooting the issue, but I’m not sure what’s causing the Worker to run in a different location. Has anyone else experienced this issue? Any help or guidance would be greatly appreciated. Details: Location: Bengaluru, India Expected location: Data center closest to Bengaluru, India Actual location: Marseille, FR Smart Placement: Disabled Thanks in advance for your help!
19 Replies
Razboy20
Razboy205mo ago
How are you confirming where the worker is running? I would recommend checking request.cf.colo: https://developers.cloudflare.com/workers/runtime-apis/request/#incomingrequestcfproperties
mesachinjakhar
mesachinjakharOP5mo ago
showing on dashboard,
No description
Razboy20
Razboy205mo ago
I would recommend still adding some logging to confirm (or returning it as a header for your users to verify), you might not be looking at the requests you think you are
mesachinjakhar
mesachinjakharOP5mo ago
ok checking
mesachinjakhar
mesachinjakharOP5mo ago
its MRS, Marseille, France.
No description
Razboy20
Razboy205mo ago
Interesting; and you aren’t using a vpn?
mesachinjakhar
mesachinjakharOP5mo ago
nope
Razboy20
Razboy205mo ago
Can you confirm that ipinfo geolocates you in India?
mesachinjakhar
mesachinjakharOP5mo ago
No description
Razboy20
Razboy205mo ago
:thonk:
mesachinjakhar
mesachinjakharOP5mo ago
not a single request is getting hit by indian pops i am trying since yesterday all request are going to either germany or france and the latency for the api is around 1500-3000, which is really bad for this simple api which is just returning an object
Razboy20
Razboy205mo ago
Accessing your page locally gives me my closest data center (US), which is interesting cc. @Walshy | DevPlat EE
mesachinjakhar
mesachinjakharOP5mo ago
what could be the issue
Walshy
Walshy5mo ago
So for the request colo, pretty normal for non-paid zones. India is expensive to route in and can be quite tricky due to the ISPs there. We will commonly serve free traffic outside of India ?anycast for more
SuperHelpflare
SuperHelpflare5mo ago
Take a look here to see why the Cloudflare datacenter you are routed towards isn't always the closest geographically: https://www.cloudflare.com/en-gb/learning/cdn/glossary/anycast-network/
Walshy
Walshy5mo ago
Jesus this is an old blog now... but this is a good (slightly outdated) look at network costs globally: https://blog.cloudflare.com/bandwidth-costs-around-the-world/#six-expensive-networks
Razboy20
Razboy205mo ago
This blog post seems to summarize why India is a problem in routing traffic: https://mattgadient.com/matts-geolocation-anycast-and-server-location-notes/
Matt’s geolocation, anycast, and server location notes | mattgadi...
Aiming for low latency: Notes I made while setting up an Anycast + Geolocation + Latency Based Routing configuration for worldwide traffic.
Razboy20
Razboy205mo ago
(Specifically the section on India, for why it can be bad when you try and connect outside of India)
mesachinjakhar
mesachinjakharOP5mo ago
Thank you guys, super helpful.

Did you find this page helpful?