How To Set Up A Loadbalanced High-Availability Apache Cluster Based On Ubuntu 8.04 LTS | Linux Today

How To Set Up A Loadbalanced High-Availability Apache Cluster Based On Ubuntu 8.04 LTS

Written By
Web Webster
Web Webster
Jun 15, 2008

[ Thanks to Falko
Timme
for this link. ]

“This tutorial shows how to set up a two-node Apache web server
cluster that provides high-availability. In front of the Apache
cluster we create a load balancer that splits up incoming requests
between the two Apache nodes. Because we do not want the load
balancer to become another ‘Single Point Of Failure,’ we must
provide high-availability for the load balancer, too. Therefore our
load balancer will in fact consist out of two load balancer nodes
that monitor each other using heartbeat, and if one load balancer
fails, the other takes over silently.

“The advantage of using a load balancer compared to using round
robin DNS is that it takes care of the load on the web server nodes
and tries to direct requests to the node with less load, and it
also takes care of connections/sessions. Many web applications
(e.g. forum software, shopping carts, etc.) make use of sessions,
and if you are in a session on Apache node 1, you would lose that
session if suddenly node 2 served your requests. In addition to
that, if one of the Apache nodes goes down, the load balancer
realizes that and directs all incoming requests to the remaining
node which would not be possible with round robin DNS…”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.