HIGH AVAILABLE CLUSTER MULTI-MASTER AND MASTER-SLAVE WITH DRBD + HA + OCFS2
WHO WE ARE?
FIRST SCHOOL AND CONSULTING LINUX IN BRAZIL.
17 YEARS OF PRATICE IN LINUX
12 YEARS WITH BEST LINUX IN BRAZIL
MORE THAN 50.000 STUDENTS TRAINED
MORE THEAN 5.000 CLIENTS TO DIFERENT PROJECTS
LPI-C ATP IN BRAZIL
MORE: www.utah.com.br
SOCIAL MEDIA
Follow! @fabioandpires
Follow! @utah_networxs
Enjoy! Utah Networxs
Speaker: Fabio Pires
Mini Curriculum:
Graduated in Computer ScienceGraduated in Bachelor of ComputingPost Graduate in Project Analysis and Systems - FATECPost Graduate in S.O. Linux - UFLALPICTeacher of Undergraduate and Graduate
Twitter in Spare TimeContact: [email protected]
TARGET
PRESENT SOLUTIONS CLUSTER MULTI-MASTERS AND MASTER SLAVE TO WEB SERVER ENVIRONMENT WITH LAMP SERVICES (LINUX, APACHE, MYSQL AND PHP) USING FREE SOFTWARES DRBD + HEARTBEAT AND OCFS2.
WHATS A CLUSTER?
The cluster, or cluster of computers, is formed by a group computer, which uses a type special operating system classified as a distributed system.
It is often constructed from conventional computers (personal computers), which are networked and communicate through the system, working as a unified large machine.
Types of Clusters
HIGH AVAILABILITY
HIGH PERFORMANCE (must popular Beowulf).
LOAD BALANCE
HA CLUSTERS LAYOUT
MASTER SLAVEIt is when we have a primary node and another slave. Only the primary node provides particular network service for making to work with the secondary system failover.
MASTER SLAVE LAYOUT
HA CLUSTERS LAYOUT
MULTI-MASTERThe existence of two or more servers providing the same services on the network allowing the use of real-time both transparent to the network clients.
MULTI-MASTER LAYOUT
LVS
LVS
INTERNET
DRBD
It is an open source system created by a
Austrian company called LINBIT. Thesystem was built to allow mechanisms for highavailability Linux systems. Basically it's like a RAID a level between two or more nodes.
The second version of DRBD, DRBD +
already has native support for multi-masterbut it is paid.
More in: http://www.libit.com
DRBD LAYOUT M-S
HEARTBEAT
It is a term used when we want a particular service is always eliminating the maximum available time stop.
This service can be deployed on Linux by software called hearthbeat.
When we talk about high availability SLA and think about the amount of 9 (nine) after the comma. The more nine longer available.
OCFS2
Oracle Cluster File System is a Files created
and maintained by Oracle on the GNU / GPL License.
One of the characteristics is to provide OCFS
high performance and high availability in
addition to the varying size block, flexible allocation,
journaling, creating I / O failover
and parallel.
ENVIRONMENT
Node 01hostname: jaspionIP: 172.158.50.100IP: 1.2.3.1Replicated Folders:/srv/www (master/master)/var/lib/mysql (master/slave)
Node 02hostname: jirayaIP: 172.158.50.200IP: 1.2.3.2Replicated Folders:/srv/www (master/master)/var/lib/mysql (master/slave)
SOFTWARES
OS Debian GNU Linux AMD_64
HA heartbeat
Replication drbd8-utils
FileSystem ocfs2-tools
WebServer apache2
Database mysql-server
LP php5
Application colabitive
Premisses
The partition does not receive the DRBD
file systems must possess
The heartbeat in the version used does not OCFS2 has system support.
The hardware for the deployment of cluster is recommended that they be identical.
drbd8-utils INSTALL FAST
Update /etc/apt/sources.list
# echo deb http://ftp.debian.org/debian squeeze main contrib
non-free >> /etc/apt/sources.list
Update Mirrors List# apt-get update
Install package
# apt-get install drbd8-utils
MAIN DRBD CONF FILE
/etc/drbd.conf
heartbeat INSTALL FAST
# apt-get install heartbeat
MAIN HEARTBEAT CONF FILES
/etc/ha.d work directory
/etc/ha.d/ha.cf config files
/etc/ha.d/authkeys change key file
/etc/ha.d/haresources config resources
/etc/ha.d/resources.d resources ha
ocfs2-tools INSTALL FAST
# apt-get install ocfs2-tools
MAIN OCFS2 CONF FILES
/etc/ocfs/cluster.conf main conf file
/etc/defaults/o2cb init config files
DVIDAS
[email protected]
[email protected]
SOURCE
www.linbit.com
www.linux-ha.org
https://oss.oracle.com/projects/ocfs2/
Utah Cluster Course
Top Related