Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 4

SECTION 03

Clustering in Linux
WHY USE A CLUSTER?

• A cluster is a way of providing highly-available applications. It contains two or


more machines, each hosts a replica of an application or service. For example, a
web application.
• All machines share a common IP address called service IP or virtual IP (VIP). Any
traffic received by this IP is routed to one or more of the backend machines
depending on the architecture.
• Machines in a cluster may also share storage; so that data is kept in a consistent
state.
• By using a cluster, you ensure that the service is always up and running; because if
one machine is down, the other machine(s) will continue to provide the service.
OUR LAB

• In this lab we are going to create a two-node Linux cluster running Centos 7 and
hosting a web application.
• I am using VirtualBox for this demonstration, so a cloned the already existing
Centos machine into another one.
• I made sure that each machine is now having a static IP address as follows:
• Centos 1: 192.168.56.102
• Centos 2: 192.168.56.103
• For the shared storage, I will create a third clone of the Centos machine and add
a dedicated disk for cluster storage needs.
PREREQUISITE PACKAGES

• On each node, issue the following command: yum –y install ricci luci cluster
ccs cman

You might also like