3
Most read
7
Most read
8
Most read
Corosync
+
Pacemaker
Corosync
+
Pacemaker
Marian HackMan Marinov <mm@1h.com>
ArchitectureArchitecture
Corosync
Pacemaker Pacemaker Pacemaker
ArchitectureArchitecture
Corosync
Pacemaker Pacemaker Pacemaker
121.12.12.6
ArchitectureArchitecture
Corosync
Pacemaker Pacemaker Pacemaker
121.12.12.6
ArchitectureArchitecture
Corosync
Pacemaker Pacemaker Pacemaker
121.12.12.6
ArchitectureArchitecture
Corosync
Pacemaker Pacemaker Pacemaker
121.12.12.6
ArchitectureArchitecture
Corosync
Pacemaker Pacemaker Pacemaker
121.12.12.6
ArchitectureArchitecture
➢ Corosync
➢ A messaging and membership layer
➢ Quorum information (odd number of nodes)
➢ Pacemaker
➢ Cluster Resource Manager
➢ resource-agents
ManagementManagement
➢ crmsh
➢ Cluster Resource Manager shell
➢ pcs
➢ Pacemaker configuration system
Easy clusterEasy cluster
node tom
node jerry
primitive apache lsb:apache 
op monitor interval=2s target-role=Started
primitive ip-10 IPaddr2 
params ip=122.12.31.10 cidr_netmask=24 nic=bond0
On tom:
# iptables -t nat -I PREROUTING -j DNAT -d 122.12.31.10 
-p tcp --dport 80 --to 10.0.0.1:80
On jerry:
# iptables -t nat -I PREROUTING -j DNAT -d 122.12.31.10 
-p tcp --dport 80 --to 10.0.0.2:80
Config 1Config 1
node luke attributes standby=off
node leia attributes standby=off
node han attributes standby=off
primitive apache lsb:apache 
op monitor interval=2s target-role=Started
primitive bind lsb:named 
op monitor interval=5s target-role=Started
primitive cron-migrate lsb:cron-migrate 
op monitor interval=15s target-role=Started 
meta is-managed=true target-role=Started
primitive ip-10 IPaddr2 
params ip=122.12.31.10 cidr_netmask=24 nic=bond0
primitive ip-11 IPaddr2 
params ip=122.12.31.11 cidr_netmask=24 nic=bond0
Config 2Config 2
clone apache-clone apache meta clone-max=3 
clone-node-max=1 globally-unique=false ordered=false 
interleave=false target-role=Started
clone bind-clone bind meta clone-max=3 
clone-node-max=1 globally-unique=false ordered=false 
interleave=false target-role=Started
Config 3Config 3
location cli-prefer-cron-migrate cron-migrate 
role=Started inf: luke
colocation dont-put-cron-with-webs -100: cron-migrate ( ip-10
ip-11 )
property cib-bootstrap-options: 
dc-version=1.1.10-14.el6_5.2-368c726 
cluster-infrastructure="classic openais (with plugin)" 
expected-quorum-votes=3 
stonith-enabled=false 
is-managed-default=true 
maintenance-mode=false 
no-quorum-policy=ignore
rsc_defaults rsc-options: 
resource-stickiness=100
ConceptsConcepts
➢ Resource = service
➢ clone = multiple instances of a resource
➢ ms = master-slave instances of a resource
Types of servicesTypes of services
➢ LSB - linux standard base
➢ can be used for basic stuff
➢ /etc/init.d/resource
➢ OCF - Open Cluster Framework
➢ required for ms resources
➢ /usr/lib/ocf/resource.d/heartbeat
LogicLogic
➢ ordering
➢ location constrains
➢ co-location constrains
AlternativesAlternatives
➢ Nomad - www.nomadproject.io
➢ VRRP
➢ vrrpd - github.com/fredbcode/Vrrpd
➢ keepalived - www.keepalived.org
All of the above lack the resource agent
scripts and notion for MS and Cloned
resources
Thank YouThank You
IRC: irc.freenode.net hackman
ICQ: 7556201
Jabber: hackman@jabber.com
E-Mail: mm@1h.com

More Related Content

PPT
Pacemaker+DRBD
PDF
Maxscale_메뉴얼
PDF
MariaDB MaxScale monitor 매뉴얼
PPTX
Introduction to Apache Kafka
PDF
Introduction to AMQP Messaging with RabbitMQ
PDF
Building a redundant CloudStack management cluster - Vladimir Melnik
PPT
Zookeeper Introduce
DOCX
Keepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docx
Pacemaker+DRBD
Maxscale_메뉴얼
MariaDB MaxScale monitor 매뉴얼
Introduction to Apache Kafka
Introduction to AMQP Messaging with RabbitMQ
Building a redundant CloudStack management cluster - Vladimir Melnik
Zookeeper Introduce
Keepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docx

What's hot (20)

PDF
Intro to HBase
PDF
Fast Data Analytics with Spark and Python
ODP
Linux Introduction (Commands)
PDF
Fundamentals of Apache Kafka
PDF
Comparing high availability solutions with percona xtradb cluster and percona...
PDF
Cassandra Introduction & Features
PPTX
Scylla Summit 2022: Scylla 5.0 New Features, Part 1
PDF
MAAS High Availability Overview
PPTX
Ceph Performance and Sizing Guide
PPTX
Apache Kafka at LinkedIn
PPTX
Ceph Introduction 2017
PDF
[OpenInfra Days Korea 2018] Day 2 - CEPH 운영자를 위한 Object Storage Performance T...
PPTX
Database replication
PDF
Virtualization - Kernel Virtual Machine (KVM)
PPTX
Hadoop fault-tolerance
PPT
Linux basic commands
PDF
OverlayFS as a Docker Storage Driver
PPTX
Apache HBase Performance Tuning
PPTX
Introduction to YARN and MapReduce 2
PDF
MySQL High Availability Solutions
Intro to HBase
Fast Data Analytics with Spark and Python
Linux Introduction (Commands)
Fundamentals of Apache Kafka
Comparing high availability solutions with percona xtradb cluster and percona...
Cassandra Introduction & Features
Scylla Summit 2022: Scylla 5.0 New Features, Part 1
MAAS High Availability Overview
Ceph Performance and Sizing Guide
Apache Kafka at LinkedIn
Ceph Introduction 2017
[OpenInfra Days Korea 2018] Day 2 - CEPH 운영자를 위한 Object Storage Performance T...
Database replication
Virtualization - Kernel Virtual Machine (KVM)
Hadoop fault-tolerance
Linux basic commands
OverlayFS as a Docker Storage Driver
Apache HBase Performance Tuning
Introduction to YARN and MapReduce 2
MySQL High Availability Solutions
Ad

Similar to Corosync and Pacemaker (20)

DOC
X64服务器 lnmp服务器部署标准 new
PDF
Network Automation (Bay Area Juniper Networks Meetup)
PDF
Building the Enterprise infrastructure with PostgreSQL as the basis for stori...
PDF
FPC for the Masses - CoRIIN 2018
PDF
Php version 7
PDF
Salesforce at Stacki Atlanta Meetup February 2016
PDF
2014 OSDC Talk: Introduction to Percona XtraDB Cluster and HAProxy
PPTX
16 ARTIFACTS TO CAPTURE WHEN YOUR CONTAINER APPLICATION IS IN TROUBLE
PDF
ProxySQL at Scale on AWS.pdf
PPTX
Kubernetes Navigation Stories – DevOpsStage 2019, Kyiv
PPT
Cloug Troubleshooting Oracle 11g Rac 101 Tips And Tricks
PDF
Atmosphere Conference 2015: Taming the Modern Datacenter
PDF
Puppet Camp 2012
PPTX
Apache Flink in the Cloud-Native Era
PDF
Operating CloudStack: Sharing My Tool Box @ApacheCon NA'15
PDF
Hacking the swisscom modem
PDF
MySQL Galera 集群
PDF
10 things i wish i'd known before using spark in production
PDF
파이썬 개발환경 구성하기의 끝판왕 - Docker Compose
PPT
[OpenStack 하반기 스터디] HA using DVR
X64服务器 lnmp服务器部署标准 new
Network Automation (Bay Area Juniper Networks Meetup)
Building the Enterprise infrastructure with PostgreSQL as the basis for stori...
FPC for the Masses - CoRIIN 2018
Php version 7
Salesforce at Stacki Atlanta Meetup February 2016
2014 OSDC Talk: Introduction to Percona XtraDB Cluster and HAProxy
16 ARTIFACTS TO CAPTURE WHEN YOUR CONTAINER APPLICATION IS IN TROUBLE
ProxySQL at Scale on AWS.pdf
Kubernetes Navigation Stories – DevOpsStage 2019, Kyiv
Cloug Troubleshooting Oracle 11g Rac 101 Tips And Tricks
Atmosphere Conference 2015: Taming the Modern Datacenter
Puppet Camp 2012
Apache Flink in the Cloud-Native Era
Operating CloudStack: Sharing My Tool Box @ApacheCon NA'15
Hacking the swisscom modem
MySQL Galera 集群
10 things i wish i'd known before using spark in production
파이썬 개발환경 구성하기의 끝판왕 - Docker Compose
[OpenStack 하반기 스터디] HA using DVR
Ad

More from Marian Marinov (20)

PDF
How to start and then move forward in IT
PDF
Thinking about highly-available systems and their setup
PDF
Understanding your memory usage under Linux
PDF
How to implement PassKeys in your application
PDF
Dev.bg DevOps March 2024 Monitoring & Logging
PDF
Basic presentation of cryptography mechanisms
PDF
Microservices: Benefits, drawbacks and are they for me?
PDF
Introduction and replication to DragonflyDB
PDF
Message Queuing - Gearman, Mosquitto, Kafka and RabbitMQ
PDF
How to successfully migrate to DevOps .pdf
PDF
How to survive in the work from home era
PDF
Managing sysadmins
PDF
Improve your storage with bcachefs
PDF
Control your service resources with systemd
PDF
Comparison of-foss-distributed-storage
PDF
Защо и как да обогатяваме знанията си?
PDF
Securing your MySQL server
PDF
Sysadmin vs. dev ops
PDF
DoS and DDoS mitigations with eBPF, XDP and DPDK
PDF
Challenges with high density networks
How to start and then move forward in IT
Thinking about highly-available systems and their setup
Understanding your memory usage under Linux
How to implement PassKeys in your application
Dev.bg DevOps March 2024 Monitoring & Logging
Basic presentation of cryptography mechanisms
Microservices: Benefits, drawbacks and are they for me?
Introduction and replication to DragonflyDB
Message Queuing - Gearman, Mosquitto, Kafka and RabbitMQ
How to successfully migrate to DevOps .pdf
How to survive in the work from home era
Managing sysadmins
Improve your storage with bcachefs
Control your service resources with systemd
Comparison of-foss-distributed-storage
Защо и как да обогатяваме знанията си?
Securing your MySQL server
Sysadmin vs. dev ops
DoS and DDoS mitigations with eBPF, XDP and DPDK
Challenges with high density networks

Recently uploaded (20)

PDF
UEFA_Embodied_Carbon_Emissions_Football_Infrastructure.pdf
PPTX
CN_Unite_1 AI&DS ENGGERING SPPU PUNE UNIVERSITY
PDF
Computer organization and architecuture Digital Notes....pdf
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PDF
First part_B-Image Processing - 1 of 2).pdf
PPTX
Module 8- Technological and Communication Skills.pptx
PDF
distributed database system" (DDBS) is often used to refer to both the distri...
PPT
Chapter 1 - Introduction to Manufacturing Technology_2.ppt
PPTX
Feature types and data preprocessing steps
PDF
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
PDF
August 2025 - Top 10 Read Articles in Network Security & Its Applications
PPTX
ai_satellite_crop_management_20250815030350.pptx
PDF
Soil Improvement Techniques Note - Rabbi
PPTX
Chemical Technological Processes, Feasibility Study and Chemical Process Indu...
PPTX
Building constraction Conveyance of water.pptx
PPTX
ASME PCC-02 TRAINING -DESKTOP-NLE5HNP.pptx
PPTX
Measurement Uncertainty and Measurement System analysis
PPTX
Amdahl’s law is explained in the above power point presentations
PPTX
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
PPTX
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
UEFA_Embodied_Carbon_Emissions_Football_Infrastructure.pdf
CN_Unite_1 AI&DS ENGGERING SPPU PUNE UNIVERSITY
Computer organization and architecuture Digital Notes....pdf
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
First part_B-Image Processing - 1 of 2).pdf
Module 8- Technological and Communication Skills.pptx
distributed database system" (DDBS) is often used to refer to both the distri...
Chapter 1 - Introduction to Manufacturing Technology_2.ppt
Feature types and data preprocessing steps
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
August 2025 - Top 10 Read Articles in Network Security & Its Applications
ai_satellite_crop_management_20250815030350.pptx
Soil Improvement Techniques Note - Rabbi
Chemical Technological Processes, Feasibility Study and Chemical Process Indu...
Building constraction Conveyance of water.pptx
ASME PCC-02 TRAINING -DESKTOP-NLE5HNP.pptx
Measurement Uncertainty and Measurement System analysis
Amdahl’s law is explained in the above power point presentations
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...

Corosync and Pacemaker