New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
Ah! I was under the impression Cloudflare Load Balancer is a DNS based solution. It's not.
I have tested one site with BunnyDNS + 2 HAPROXY VPS + 3 Cluster VPS. All looks good with session affinity for the woo users. Idea is Bunny will auto assign to the nearest HAProxy node to the visitor and from there HAProxy will assign the visitor to the nearest WP node.
I have around 2 million requests per month combined of all sites looking at the CF Dashboard. BunnyDNS will suffice for it.
Thanks @quanhua92 and @pbx for all the help!
Try to turn off the HAProxy server intentionally to see how it works. Make sure that you have the BunnyDNS script to fail over to the second haproxy
Is it a CDN based solution then?
Are you still using CF's CDN with the CNAME trick with this setup?
It's a proper reverse proxy based solution.
No. But I am considering as I am missing the WAF from Cloudflare. It's very effective if rightly configured. I have those WAF rules at HAProxy Instances also but I feel these lightweight VPSes for HaProxy won't be able to protect against a major ddos attack unlike the Cloudflare DDos Protection + WAF. Bunny is working on a WAF as we speak but not sure how long it will take.
I'll be playing around a bit with this CNAME trick suggested in the thread.
Update: I have removed the HAProxy Instances as they were increasing the latency and adding more complexity. I realize I don't need sticky sessions as I can also get it via DNS load balancing if I am only keeping one server for each region. Sticky session was sending a particular user to the same location anyways.
Now I am testing between DNS providers who provide Geo Balancing - ClouDNS, NS1, BunnyDNS, Route53. I need only one domain due to @quanhua92 infamous cname trick.
I also tried https://perfops.net/flexbalancer which is kind of same and works well but out of budget.