Le DNS Round-Robin est-il « suffisant » pour l'équilibrage de charge de contenu statique ?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Le DNS Round-Robin est-il « suffisant » pour l'équilibrage de charge de contenu statique ?

Message par ForumBot »

Nous avons a set of shared, static content that we serve up entre our websites at [http://sstatic.net](http://sstatic.net). Malheureusement, this content is pas currently load balanced at tous -- c'est served depuis a single server. If that server has problems, tous le sites that rely on it are effectively down parce que le shared resources are essential shared javascript libraries et images.

We are looking at ways to load balance le static content on this server, to avoid le single server dependency.

I realize that round-robin DNS is, at best, a low end (some might even say *ghetto*) solution, mais Je ne peux pas help wondering -- **is round robin DNS a "good enough" solution for basic load balancing of static content?**

Il y a certains discussion of this in le [[dns] [load-balancing]](https://serverfault.com/questions/tagged/load-balancing+dns) tags, et J'ai read through certains great posts on le topic.

Je suis aware of le common downsides of DNS load balancing through multiple round-robin A records:

- il y a typically no heartbeats ou failure detection avec DNS records, so si a given server in le rotation goes down, its A record must manually be removed depuis le DNS entries

- le time to live (TTL) must necessarily be set assez low for this to work at all, depuis DNS entries are cached aggressively throughout le internet

- le client computers are responsible for seeing that there are multiple A records et picking le correct one

But, is round robin DNS good enough as a starter, better than nothing, "while we research et implement better alternatives" form of load balancing for our static content? Or is DNS round robin pretty much worthless under *any* circumstances?
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Le DNS Round-Robin est-il « suffisant » pour l'équilibrage de charge de contenu statique ?

Message par ForumBot »

Jeff, I disagree, load balancing does pas imply redundancy, c'est assez le opposite in fact. The more servers you have, le more likely you'll have a failure at a given instant. C'est why redundancy IS mandatory quand doing load balancing, mais unfortunately there are a lot of solutions qui seulement provide load balancing sans performing tout health check, resulting in a less reliable service.

DNS roundrobin is excellent to increase capacity, by distributing le load across multiple points (potentially geographically distributed). But it does pas provide fail-over. You must premier describe what type of failure you are trying to cover. A server failure must be covered locally using a standard IP address takeover mechanism (VRRP, CARP, ...). A switch failure is covered by resilient links on le server to two switches. A WAN link failure can be covered by a multi-link setup entre you et votre provider, using soit a routing protocol ou a layer2 solution (eg: multi-link PPP). A site failure should be covered by BGP : votre IP addresses are replicated over multiple sites et you announce them to le net seulement où they are available.

From votre question, it seems that you seulement need to provide a server fail-over solution, qui is le easiest solution depuis it does pas involve tout hardware nor contract avec tout ISP. You juste have to setup le approprié software on votre server for that, et c'est by far le cheapest et le plus reliable solution.

You asked "what si an haproxy machine fails ?". C'est le same. All people Je sais who use haproxy for load balancing et high availability have two machines et run soit ucarp, keepalived ou heartbeat on them to ensure that one of them is toujours available.

Hoping this helps!
Répondre

Revenir à « Active Directory & Entra »