10

Say I have 3 VPS nodes with Linode to serve traffic on a single website. Linode themselves provide a node balancing solution.

But I use CloudFlare and was wondering after I read their blog article on their architecture if it was necessary to use Linode's node balancer if CloudFlare's DNS load balancing can do that for me.

Is there any benefit in using Linode's load balancer instead of using the CloudFlare's DNS load balancer?

Simon East
  • 1,514
Masum
  • 228

2 Answers2

8

Yes, CloudFlare can load balance your traffic. However this opens up some issues that you have to be willing to deal with:

  1. CloudFlare does not automatically provide sticky sessions. This means anyone that goes to you site may land on one server for one request and another for another request. This has implications with any user logins or anything that requires server sessions. But there are other solutions for this, and if you are just serving up static content this is not a problem.

2. CloudFlare does not provide automatic failover nor monitor the origin servers, so if one goes down, web requests will still be directed to the dead server and users will see a CloudFlare error page. However, there are other ways to perform this monitoring and remove the failed server from your DNS, see Can CloudFlare perform automatic failover to a different backend?

As long as you can deal with the 2 items above then it works great. In fact I use this setup today for multiple sites that have survived the front page of HackerNews.

Elliot B.
  • 1,366
madflojo
  • 320
0

If your web site has only static content, Cloudflare's load balancing is enough.

However, if your website has any dynamic content, which is served always by your servers, you need your own load balancing solution to distribute the requests to your own backend servers.

Tero Kilkanen
  • 38,887