Report this

What is the reason for this report?

Can I load balance according to region/geoip?

Posted on January 17, 2020

I have a Wordpress site in a droplet in the Frankfurt data centre. A lot of our traffic however comes from the USA.

The response time to EU origin visitors is great, but the response time and even Google speed metrics (affecting our ranking) is poor.

Is it possible to direct US traffic to a US based droplet and EU traffic to the EU droplet while keeping the database(s) in sync? In fact, what would be the best configuration for my needs? I do not think that a CDN would be that effective as my Wordpress site and associated plugins seem to be database/memory bound and the content appears to be dynamic, not cacheable.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I don’t think that this is yet possible, I would recommend checking the answer here provided by jtittle1:

https://www.digitalocean.com/community/questions/can-i-use-the-do-load-balancer-solution-to-route-based-on-region

Another thing that you could try doing is having multiple domains for example yourdomain.com and yourdomain.de, and point the .com domain name to the Droplet based in the USA and the .de domain to the Droplet based in Germany.

Maybe consider using Cloud Flare for example, as least it would offload some of the traffic from your Droplets.

Hi there,

A quick update here, DigitalOcean has announced new Global Load Balancers (currently in beta) which will allow you to distribute traffic to Droplets in different regions for high availability (HA) and performance.

Whereas regional load balancers distribute traffic within a single region, global load balancers span multiple regions and route users to your nearest available backend Droplet.

For more information you can check out this documentaiton here:

https://docs.digitalocean.com/products/networking/load-balancers/how-to/create-global-load-balancer/

Or check out this introduction video here:

- Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.