SlideShare a Scribd company logo
1 of 26
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 Science
        Graduated in Bachelor of Computing
Post Graduate in Project Analysis and Systems - FATEC
         Post Graduate in S.O. Linux - UFLA
                        LPIC
      Teacher of Undergraduate and Graduate



                                Twitter in Spare Time
                     Contact: fpires@utah.com.br
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 SLAVE
 It 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-MASTER
 The 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
               INTERNET




      LVS



      LVS
DRBD
 It is an open source system created by a
Austrian company called LINBIT. The
system was built to allow mechanisms for high
availability 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-master
but 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 01
hostname: jaspion
IP: 172.158.50.100
IP: 1.2.3.1
Replicated Folders:
/srv/www (master/master)
/var/lib/mysql (master/slave)

Node 02
hostname: jiraya
IP: 172.158.50.200
IP: 1.2.3.2
Replicated 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
DÚVIDAS




 fpires@utah.com.br
cursos@utah.com.br
SOURCE
www.linbit.com


www.linux-ha.org


https://oss.oracle.com/projects/ocfs2/


Utah Cluster Course

More Related Content

What's hot

DLM knowledge-sharing
DLM knowledge-sharingDLM knowledge-sharing
DLM knowledge-sharingEric Ren
 
Performance bottlenecks for metadata workload in Gluster with Poornima Gurusi...
Performance bottlenecks for metadata workload in Gluster with Poornima Gurusi...Performance bottlenecks for metadata workload in Gluster with Poornima Gurusi...
Performance bottlenecks for metadata workload in Gluster with Poornima Gurusi...Gluster.org
 
Distributed replicated block device
Distributed replicated block deviceDistributed replicated block device
Distributed replicated block deviceChanaka Lasantha
 
Gluster fs tutorial part 2 gluster and big data- gluster for devs and sys ...
Gluster fs tutorial   part 2  gluster and big data- gluster for devs and sys ...Gluster fs tutorial   part 2  gluster and big data- gluster for devs and sys ...
Gluster fs tutorial part 2 gluster and big data- gluster for devs and sys ...Tommy Lee
 
Red Hat Global File System (GFS)
Red Hat Global File System (GFS)Red Hat Global File System (GFS)
Red Hat Global File System (GFS)Schubert Zhang
 
High Availability != High-cost
High Availability != High-costHigh Availability != High-cost
High Availability != High-costnormanmaurer
 
Comparison between OCFS2 and GFS2
Comparison between OCFS2 and GFS2Comparison between OCFS2 and GFS2
Comparison between OCFS2 and GFS2Gang He
 
Cgroup resource mgmt_v1
Cgroup resource mgmt_v1Cgroup resource mgmt_v1
Cgroup resource mgmt_v1sprdd
 
Performance comparison of Distributed File Systems on 1Gbit networks
Performance comparison of Distributed File Systems on 1Gbit networksPerformance comparison of Distributed File Systems on 1Gbit networks
Performance comparison of Distributed File Systems on 1Gbit networksMarian Marinov
 
Disperse xlator ramon_datalab
Disperse xlator ramon_datalabDisperse xlator ramon_datalab
Disperse xlator ramon_datalabGluster.org
 
Linux High Availability Overview - openSUSE.Asia Summit 2015
Linux High Availability Overview - openSUSE.Asia Summit 2015 Linux High Availability Overview - openSUSE.Asia Summit 2015
Linux High Availability Overview - openSUSE.Asia Summit 2015 Roger Zhou 周志强
 
Linux container, namespaces & CGroup.
Linux container, namespaces & CGroup. Linux container, namespaces & CGroup.
Linux container, namespaces & CGroup. Neeraj Shrimali
 
Containers and Namespaces in the Linux Kernel
Containers and Namespaces in the Linux KernelContainers and Namespaces in the Linux Kernel
Containers and Namespaces in the Linux KernelOpenVZ
 
Java in containers
Java in containersJava in containers
Java in containersMartin Baez
 
HDFS introduction
HDFS introductionHDFS introduction
HDFS introductioninjae yeo
 
Introduction to RCU
Introduction to RCUIntroduction to RCU
Introduction to RCUKernel TLV
 

What's hot (20)

DLM knowledge-sharing
DLM knowledge-sharingDLM knowledge-sharing
DLM knowledge-sharing
 
Performance bottlenecks for metadata workload in Gluster with Poornima Gurusi...
Performance bottlenecks for metadata workload in Gluster with Poornima Gurusi...Performance bottlenecks for metadata workload in Gluster with Poornima Gurusi...
Performance bottlenecks for metadata workload in Gluster with Poornima Gurusi...
 
Distributed replicated block device
Distributed replicated block deviceDistributed replicated block device
Distributed replicated block device
 
Gluster fs tutorial part 2 gluster and big data- gluster for devs and sys ...
Gluster fs tutorial   part 2  gluster and big data- gluster for devs and sys ...Gluster fs tutorial   part 2  gluster and big data- gluster for devs and sys ...
Gluster fs tutorial part 2 gluster and big data- gluster for devs and sys ...
 
Red Hat Global File System (GFS)
Red Hat Global File System (GFS)Red Hat Global File System (GFS)
Red Hat Global File System (GFS)
 
High Availability != High-cost
High Availability != High-costHigh Availability != High-cost
High Availability != High-cost
 
Strata - 03/31/2012
Strata - 03/31/2012Strata - 03/31/2012
Strata - 03/31/2012
 
Comparison between OCFS2 and GFS2
Comparison between OCFS2 and GFS2Comparison between OCFS2 and GFS2
Comparison between OCFS2 and GFS2
 
Cgroup resource mgmt_v1
Cgroup resource mgmt_v1Cgroup resource mgmt_v1
Cgroup resource mgmt_v1
 
Introduction to HDFS
Introduction to HDFSIntroduction to HDFS
Introduction to HDFS
 
Performance comparison of Distributed File Systems on 1Gbit networks
Performance comparison of Distributed File Systems on 1Gbit networksPerformance comparison of Distributed File Systems on 1Gbit networks
Performance comparison of Distributed File Systems on 1Gbit networks
 
Disperse xlator ramon_datalab
Disperse xlator ramon_datalabDisperse xlator ramon_datalab
Disperse xlator ramon_datalab
 
Linux High Availability Overview - openSUSE.Asia Summit 2015
Linux High Availability Overview - openSUSE.Asia Summit 2015 Linux High Availability Overview - openSUSE.Asia Summit 2015
Linux High Availability Overview - openSUSE.Asia Summit 2015
 
Linux container, namespaces & CGroup.
Linux container, namespaces & CGroup. Linux container, namespaces & CGroup.
Linux container, namespaces & CGroup.
 
Containers and Namespaces in the Linux Kernel
Containers and Namespaces in the Linux KernelContainers and Namespaces in the Linux Kernel
Containers and Namespaces in the Linux Kernel
 
Java in containers
Java in containersJava in containers
Java in containers
 
HDFS introduction
HDFS introductionHDFS introduction
HDFS introduction
 
Introduction to RCU
Introduction to RCUIntroduction to RCU
Introduction to RCU
 
Namespaces in Linux
Namespaces in LinuxNamespaces in Linux
Namespaces in Linux
 
Cassandra勉強会
Cassandra勉強会Cassandra勉強会
Cassandra勉強会
 

Similar to HIGH AVAILABLE CLUSTER IN WEB SERVER WITH HEARTBEAT + DRBD + OCFS2

Red Hat Linux.pptx
Red Hat Linux.pptxRed Hat Linux.pptx
Red Hat Linux.pptxssuser16fc07
 
How devops exhausts itself, and what will happen next
How devops exhausts itself, and what will happen nextHow devops exhausts itself, and what will happen next
How devops exhausts itself, and what will happen nextKirill Vechera
 
Server interview[1]
Server interview[1]Server interview[1]
Server interview[1]sourav nanda
 
Nadhiya lamp
Nadhiya lampNadhiya lamp
Nadhiya lampNadhi ya
 
Linux@assignment ppt
Linux@assignment pptLinux@assignment ppt
Linux@assignment pptRama .
 
Redhat Linux server administration industrial training report.
Redhat Linux server administration industrial training report.Redhat Linux server administration industrial training report.
Redhat Linux server administration industrial training report.AlokGupta336
 
The Why and How of HPC-Cloud Hybrids with OpenStack - Lev Lafayette, Universi...
The Why and How of HPC-Cloud Hybrids with OpenStack - Lev Lafayette, Universi...The Why and How of HPC-Cloud Hybrids with OpenStack - Lev Lafayette, Universi...
The Why and How of HPC-Cloud Hybrids with OpenStack - Lev Lafayette, Universi...OpenStack
 
commands that's are commonly used in linux
commands that's are commonly used in linuxcommands that's are commonly used in linux
commands that's are commonly used in linuxNavdeep Bhuii
 
Pacemaker+DRBD
Pacemaker+DRBDPacemaker+DRBD
Pacemaker+DRBDDan Frincu
 
Lamp technology
Lamp technologyLamp technology
Lamp technology2tharan21
 
linux interview questions and answers
linux interview questions and answerslinux interview questions and answers
linux interview questions and answersGanapathi Raju
 
Linux interview questions and answers
Linux interview questions and answersLinux interview questions and answers
Linux interview questions and answersGanapathi Raju
 
Presentation1 linux os
Presentation1 linux osPresentation1 linux os
Presentation1 linux osjoycoronado
 
Presentation1 linux os
Presentation1 linux osPresentation1 linux os
Presentation1 linux osruzzelarpon
 
2008-09-09 IBM Interaction Conference, Red Hat Update for System z
2008-09-09 IBM Interaction Conference, Red Hat Update for System z2008-09-09 IBM Interaction Conference, Red Hat Update for System z
2008-09-09 IBM Interaction Conference, Red Hat Update for System zShawn Wells
 

Similar to HIGH AVAILABLE CLUSTER IN WEB SERVER WITH HEARTBEAT + DRBD + OCFS2 (20)

Red Hat Linux.pptx
Red Hat Linux.pptxRed Hat Linux.pptx
Red Hat Linux.pptx
 
linux
linuxlinux
linux
 
How devops exhausts itself, and what will happen next
How devops exhausts itself, and what will happen nextHow devops exhausts itself, and what will happen next
How devops exhausts itself, and what will happen next
 
Server interview[1]
Server interview[1]Server interview[1]
Server interview[1]
 
Nadhiya lamp
Nadhiya lampNadhiya lamp
Nadhiya lamp
 
Linux@assignment ppt
Linux@assignment pptLinux@assignment ppt
Linux@assignment ppt
 
Redhat Linux server administration industrial training report.
Redhat Linux server administration industrial training report.Redhat Linux server administration industrial training report.
Redhat Linux server administration industrial training report.
 
Rhel7 vs rhel6
Rhel7 vs rhel6Rhel7 vs rhel6
Rhel7 vs rhel6
 
The Why and How of HPC-Cloud Hybrids with OpenStack - Lev Lafayette, Universi...
The Why and How of HPC-Cloud Hybrids with OpenStack - Lev Lafayette, Universi...The Why and How of HPC-Cloud Hybrids with OpenStack - Lev Lafayette, Universi...
The Why and How of HPC-Cloud Hybrids with OpenStack - Lev Lafayette, Universi...
 
commands that's are commonly used in linux
commands that's are commonly used in linuxcommands that's are commonly used in linux
commands that's are commonly used in linux
 
Pacemaker+DRBD
Pacemaker+DRBDPacemaker+DRBD
Pacemaker+DRBD
 
LAMP TECHNOLOGY
LAMP TECHNOLOGYLAMP TECHNOLOGY
LAMP TECHNOLOGY
 
Lamp technology
Lamp technologyLamp technology
Lamp technology
 
linux interview questions and answers
linux interview questions and answerslinux interview questions and answers
linux interview questions and answers
 
Linux interview questions and answers
Linux interview questions and answersLinux interview questions and answers
Linux interview questions and answers
 
Presentation1 linux os
Presentation1 linux osPresentation1 linux os
Presentation1 linux os
 
Presentation1 linux os(2)
Presentation1 linux os(2)Presentation1 linux os(2)
Presentation1 linux os(2)
 
Presentation1 linux os
Presentation1 linux osPresentation1 linux os
Presentation1 linux os
 
Presentation1 linux os
Presentation1 linux osPresentation1 linux os
Presentation1 linux os
 
2008-09-09 IBM Interaction Conference, Red Hat Update for System z
2008-09-09 IBM Interaction Conference, Red Hat Update for System z2008-09-09 IBM Interaction Conference, Red Hat Update for System z
2008-09-09 IBM Interaction Conference, Red Hat Update for System z
 

Recently uploaded

SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 

Recently uploaded (20)

SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 

HIGH AVAILABLE CLUSTER IN WEB SERVER WITH HEARTBEAT + DRBD + OCFS2

  • 1. HIGH AVAILABLE CLUSTER MULTI-MASTER AND MASTER- SLAVE WITH DRBD + HA + OCFS2
  • 2. 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
  • 3. SOCIAL MEDIA Follow! @fabioandpires Follow! @utah_networxs Enjoy! Utah Networxs
  • 4. Speaker: Fabio Pires Mini Curriculum: Graduated in Computer Science Graduated in Bachelor of Computing Post Graduate in Project Analysis and Systems - FATEC Post Graduate in S.O. Linux - UFLA LPIC Teacher of Undergraduate and Graduate Twitter in Spare Time Contact: fpires@utah.com.br
  • 5. 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”.
  • 6. 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.
  • 7. Types of Clusters HIGH AVAILABILITY HIGH PERFORMANCE (must popular Beowulf). LOAD BALANCE
  • 8. HA CLUSTERS LAYOUT MASTER SLAVE It 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.
  • 10. HA CLUSTERS LAYOUT MULTI-MASTER The 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.
  • 11. MULTI-MASTER LAYOUT INTERNET LVS LVS
  • 12. DRBD It is an open source system created by a Austrian company called LINBIT. The system was built to allow mechanisms for high availability 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-master but it is paid. More in: http://www.libit.com
  • 14. 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.
  • 15. 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.
  • 16. ENVIRONMENT Node 01 hostname: jaspion IP: 172.158.50.100 IP: 1.2.3.1 Replicated Folders: /srv/www (master/master) /var/lib/mysql (master/slave) Node 02 hostname: jiraya IP: 172.158.50.200 IP: 1.2.3.2 Replicated Folders: /srv/www (master/master) /var/lib/mysql (master/slave)
  • 17. SOFTWARES OS → Debian GNU Linux AMD_64 HA → heartbeat Replication → drbd8-utils FileSystem → ocfs2-tools WebServer → apache2 Database → mysql-server LP → php5 Application → colabitive
  • 18. 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.
  • 19. 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
  • 20. MAIN DRBD CONF FILE /etc/drbd.conf
  • 21. heartbeat INSTALL FAST # apt-get install heartbeat
  • 22. 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
  • 23. ocfs2-tools INSTALL FAST # apt-get install ocfs2-tools
  • 24. MAIN OCFS2 CONF FILES /etc/ocfs/cluster.conf → main conf file /etc/defaults/o2cb → init config files