SlideShare a Scribd company logo
kim.donghyun@kt.com
OpenInfra Community Day Korea 2023
WHOAMI
■
https://www.facebook.com/groups/clusterlabskorea
https://clusterlabs.org/developers.html
OpenInfra Community Day Korea 2023
Pacemaker Project is…
■
https://openhub.net/p/pacemaker?ref=sample
http://www.beekhof.net/
OpenInfra Community Day Korea 2023
In this Session
■
OpenInfra Community Day Korea 2023
오픈소스 Pacemaker 소개
안정적인 이중화 솔루션이고
다양한 리소스 지원 및 이중화 모델을 지원
01
•
[1] LSB (Linux Standard Base)
[2] OCF (Open Cluster Framework)
1. Pacemaker’s Story - The Open Source, High Availability Cluster
•
•
Active Standby
OpenInfra Community Day Korea 2023
오픈소스 Pacemaker 특징
02
다양한 오픈 플랫폼 적용 가능하고 다수 커뮤니티 참여로 업데이트 진행 中
• 대부분 엔터프라이즈 Linux운영체제에서 사용
• 지속적인 업데이트를 진행
1. Pacemaker’s Story - The Open Source, High Availability Cluster
OpenInfra Community Day Korea 2023
HA Clustering in the OpenSource Ecosystem
03
7
1999s
2002s
2004s
2008s
2010s ~
~ 현재
2006s
1. Pacemaker’s Story - The Open Source, High Availability Cluster
https://github.com/ClusterLabs/pacemaker/releases?page=1
https://alteeve.ca/w/High-Availability_Clustering_in_the_Open_Source_Ecosystem
OpenInfra Community Day Korea 2023
Novell - Red Hat 등 Vendor 주도
오픈소스 Project Progress - Last day
04
Linux-HA
SUSE Red Hat
Hwak (GUI) luci
Resources
Layer
Resource
Allocation
Layer
Messaging
/
Infrastructure
Layer
PCS (CLI)
Novell
Developer
Red Hat
Developer
Pacemaker-mgmt
crmsh (CLI)
Heartbeat cman
rgmanager
PCS (CLI)
ricci
1. Pacemaker’s Story - The Open Source, High Availability Cluster
Pacemaker
fence-agents
resource-agents resource-agents
resource-agents
Community
Developer
OpenAIS
OpenInfra Community Day Korea 2023
오픈소스 Project Progress - Today
05
앞으로도 지속 가능한 오픈소스 프로젝트
ClusterLabs
SUSE Red Hat
Hwak (GUI)
crmsh (CLI)
Corosync
PCSD (GUI)
Resources
Layer
Resource
Allocation
Layer
Messaging
/
Infrastructure
Layer
PCS (CLI)
Upstream Downstream
Upstream
Downstream
1. Pacemaker’s Story - The Open Source, High Availability Cluster
Pacemaker
fence-agents
resource-agents
Novell
Developer
Red Hat
Developer
Community
Developer
LCMC (GUI)
OpenInfra Community Day Korea 2023
Pacemaker - High level architecture
01
Messaging / Infrastructure Layer
Resource Allocation Layer
Resources Layer
XML XML
Cluster
Node #1
Cluster
Node #2
Corosync
Cluster
Resource
Manager
CRM
Corosync
Services
(Apache, PostgreSQL 등)
Local
Resource
Manager LRM
Policy
Engine
Cluster
Information
Base
CIB (복제)
Resource
Agents RAs
2. Overview of HA architectural components
OpenInfra Community Day Korea 2023
Pacemaker - Architecture Component
02
Resource Agents
- Agent Scripts
- Open Cluster Framework
Resource Agents
Pacemaker
- Resource Management
LRMd
Stonith CRMd CIB
PEngine
Corosync
- Membership
- Messaging
- Quorum
Cluster Abstraction Layer
Corosync
2. Overview of HA architectural components
OpenInfra Community Day Korea 2023
Quick Overview of Components - CRMd
03
RA
Resource
Layer
Messaging/Infra
structure
Layer
Corosync
RA RA
CIB
(XML)
CRM
Resource
Allocation
Layer
PE
LRM
STONITH
2. Overview of HA architectural components
https://github.com/ClusterLabs/pacemaker-1.0/blob/master/crmd/crmd.c
OpenInfra Community Day Korea 2023
Quick Overview of Components - CIB
04
RA
Resource
Layer
Messaging/Infra
structure
Layer
Corosync
RA RA
CIB
(XML)
CRM
Resource
Allocation
Layer
PE
LRM
STONITH
2. Overview of HA architectural components
https://github.com/ClusterLabs/pacemaker/blob/main/include/crm/cib.h
OpenInfra Community Day Korea 2023
Quick Overview of Components - PEngine
05
RA
Resource
Layer
Messaging/Infra
structure
Layer
Corosync
RA RA
CIB
(XML)
CRM
Resource
Allocation
Layer
PE
LRM
STONITH
2. Overview of HA architectural components
OpenInfra Community Day Korea 2023
Quick Overview of Components - LRMd
06
RA
Resource
Layer
Messaging/Infra
structure
Layer
Corosync
RA RA
CIB
(XML)
CRM
Resource
Allocation
Layer
PE
LRM
STONITH
2. Overview of HA architectural components
https://github.com/ClusterLabs/pacemaker/blob/main/include/crm/lrmd.h
OpenInfra Community Day Korea 2023
Quick Overview of Components - RAs
07
RA
Resource
Layer
Messaging/Infra
structure
Layer
Corosync
RA RA
CIB
(XML)
CRM
Resource
Allocation
Layer
PE
LRM
STONITH
2. Overview of HA architectural components
http://linux-ha.org/wiki/OCF_Resource_Agent
http://linux-ha.org/wiki/LSB_Resource_Agents
https://github.com/ClusterLabs/resource-agents
OpenInfra Community Day Korea 2023
Quick Overview of Components - STONITHD
08
RA
Resource
Layer
Messaging/Infra
structure
Layer
Corosync
RA RA
CIB
(XML)
CRM
Resource
Allocation
Layer
PE
LRM
STONITH
2. Overview of HA architectural components
OpenInfra Community Day Korea 2023
What is fencing?
■
Kernel panic
System freeze
Live hang / recovery
2. Overview of HA architectural components
OpenInfra Community Day Korea 2023
Quick Overview of Components - Corosync
09
RA
Resource
Layer
Messaging/Infra
structure
Layer
Corosync
RA RA
CIB
(XML)
CRM
Resource
Allocation
Layer
PE
LRM
STONITH
2. Overview of HA architectural components
http://corosync.github.io/corosync/
OpenInfra Community Day Korea 2023
Quick Overview of Components - User Interface
10
Hwak
(HA Web Console, SUSE)
LCMC
(Linux Console Management Console)
2. Overview of HA architectural components
PCSD
(Pacemaker Cluster Service Web UI, Red Hat)
https://lcmc.sourceforge.net/
https://hawk-ui.github.io/
https://horizon-ui.com/
OpenInfra Community Day Korea 2023
Cluster Filesystem on shared disk
11
2. Overview of HA architectural components
OpenInfra Community Day Korea 2023
해외 적용 사례 - NTT
01
http://linux-ha.osdn.jp/wp/
https://www.sic.ecl.ntt.co.jp/e/oss/
<ClusterLabs Summit 2020>
Pacemaker 적용/확대
자체 개발
커뮤니티 리딩
https://osdn.net/projects/pg-rex
<NTT 표준 OSS 레퍼런스>
<PostgreSQL HA Architecture>
3. Pacemaker USE CASE
OpenInfra Community Day Korea 2023
02
3. Pacemaker USE CASE
IP Address
DBMS
FileSystem
Virtual Machine
H/B
Active Stanby
eth1 eth1
eth0 eth0
fence_sbd
eth1 eth1
fence_sbd
Heartbeat구간 별도 네트워크인터페이스 없이
UDP/Unicast을 이용
HA-LVM사용하여 문제발생시
Data Corruption상황 방지
fence_sbd(STONITH Block
Device Daemon) 적용
CentOS 7.4, Rocky Linux 8 버전 이상
OpenInfra Community Day Korea 2023
03
Shared Volumes
Database WEB
Network
Infra Cloud
Virtual IP
Virtual IP
Active
Standby
Active
Queue
Application
CLIENTS
Database
3. Pacemaker USE CASE
Standby
Pacemaker
Pacemaker
OpenInfra Community Day Korea 2023
환경에 따라 적정 값 필요
Create HA Cluster
04
3. Pacemaker USE CASE
# pcs cluster config update totem token=10000  단위는 ms, 기본 값은 1000
# totem {
version: 2
secauth: off
cluster_name: pgsql-cluster
transport: udpu
rrp_mode: passive
token: 10000
}
# pcs cluster sync
# pcs cluster reload corosync
# corosync-cmapctl | grep totem.token
runtime.config.totem.token (u32) = 10000
...
OpenInfra Community Day Korea 2023
HA-LVM 권고사항이 아닌 필수로 설정
Configure HA-LVM
05
# vi /etc/lvm/lvm.conf
system_id_source = "uname"
# dracut -f -v
# reboot
# pvcreate /dev/sda
# vgcreate cluster_vg /dev/sda
# lvcreate -l 100%FREE -n cluster_vg cluster_lv
# mkfs.xfs /dev/cluster_vg/cluster_lv
# pcs resource create DATA ocf:heartbeat:LVM-activate vgname=cluster_vg activation_mode=exclusive
vg_access_mode=system_id --group ha-lvm
# pcs resource create clu-fs ocf:heartbeat:Filesystem device=/dev/cluster_vg/cluster_lv directory=/data
fstype=xfs --group ha-lvm
3. Pacemaker USE CASE
OpenInfra Community Day Korea 2023
Detail : Configuration
■
[root@pgsql-db1 ~]# pcs status
Cluster name: pgsql-cluster
Stack: corosync
Current DC: node1 (version 2.0.0-11.el8-efbf81b659) – partition with quorum
Last updated: Thu Jan 10 00:12:36 2023
Last change: Thu Jan 10 00:12:33 2023 by root via cibadmin on node1
2 nodes configured
8 resources configured
Online: [ node1 node2 ]
Full list of resources:
sbd (stonith:fence_sbd: Started node2
Resource Group: pgsql-svr
vip (ocf:heartbeat:ipaddr2): stated node1
pgsq-11 (ocf:heartbeat:pgsql): started node1
pg_wal-vg (ocf::heartbeat:LVM-activate): Started node1
pg-wal (ocf::heartbeat:Filesystem): Started node1
archive-vg (ocf::heartbeat:LVM-activate): Started node1
archive (ocf::heartbeat:Filesystem): Started node1
data-vg (ocf::heartbeat:LVM-activate): Started node1
data (ocf::heartbeat:Filesystem): Started node1
Daemon Status:
corosync: active/disabled
pacemaker: active/disabled
pcsd: active/enabled
sbd: active/enabled
3. Pacemaker USE CASE
OpenInfra Community Day Korea 2023
Situations Where This Procedure May Be Useful
■
# crm_report
# crm_report -f "2023-06-30 12:00:00"
# crm_report -f "`date --date='7 days ago' +%Y-%m-%d' '%H:%M:%S`" -S
# pcs cluster disable --all
# pcs cluster disable
# vi /etc/sysconfig/pacemaker
~~ Snip ~~~
# Enable debug logging globally or per-subsystem
# Multiple subsystems may me listed separated by commas
# eg. PCMK_debug=crmd,pengine
# PCMK_debug=yes|no|crmd|pengine|cib|stonith-ng|attrd|pacemakerd
3. Pacemaker USE CASE
OpenInfra Community Day Korea 2023
General Future - Kronosnet(KNET)
■
 What is Kronosnet?
https://www.kronosnet.org
 Project Features
Pacemaker
Corosync
totempg
totemsrp
totemnet
totemknet
libknet
NIC 1 NIC 2
3. Pacemaker USE CASE
OpenInfra Community Day Korea 2023
General Future - Kronosnet(KNET)
■
https://build.clusterlabs.org/corosync/presentations/2017-Kronosnet-The-new-face-of-corosync-communications.pdf
3. Pacemaker USE CASE
OpenInfra Community Day Korea 2023
설명 Previous name Current name
Pacemaker
corosync
cpg Quorum
Resource1 Resource2
Pacemaker-execd Pacemaker-fenced
Pacemaker-schedulerd Pacemaker-attrd
Pacemaker-based
Pacemaker-controld
Pacemakerd
Network
Node 1 Node 2
Pacemaker
corosync
cpg Quorum
Resource1 Resource2
Pacemaker-execd Pacemaker-fenced
Pacemaker-schedulerd Pacemaker-attrd
Pacemaker-based
Pacemaker-controld
Pacemakerd
General Future - Pacemaker 2.0
■
3. Pacemaker USE CASE
OpenInfra Community Day Korea 2023
At the end of….
■
여러분이 생각하는 고가용성이란 무엇인가요?
그리고, 어떻게 생각하고 계셨나요?
어떠한 솔루션도 99.9% 고가용성을 보장해줄수는 없습니다.
또한, 정해진 Best Practice 란 없습니다.
오로지 Test! Test! TEST!!!
kim.donghyun@kt.com

More Related Content

What's hot

Namespaces and cgroups - the basis of Linux containers
Namespaces and cgroups - the basis of Linux containersNamespaces and cgroups - the basis of Linux containers
Namespaces and cgroups - the basis of Linux containers
Kernel TLV
 
FOSDEM 2017: GitLab CI
FOSDEM 2017:  GitLab CIFOSDEM 2017:  GitLab CI
FOSDEM 2017: GitLab CI
OlinData
 
(발표자료) CentOS EOL에 따른 대응 OS 검토 및 적용 방안.pdf
(발표자료) CentOS EOL에 따른 대응 OS 검토 및 적용 방안.pdf(발표자료) CentOS EOL에 따른 대응 OS 검토 및 적용 방안.pdf
(발표자료) CentOS EOL에 따른 대응 OS 검토 및 적용 방안.pdf
ssuserf8b8bd1
 
Kubernetes a comprehensive overview
Kubernetes   a comprehensive overviewKubernetes   a comprehensive overview
Kubernetes a comprehensive overview
Gabriel Carro
 
Terraform
TerraformTerraform
Terraform
Phil Wilkins
 
Grafana Mimir and VictoriaMetrics_ Performance Tests.pptx
Grafana Mimir and VictoriaMetrics_ Performance Tests.pptxGrafana Mimir and VictoriaMetrics_ Performance Tests.pptx
Grafana Mimir and VictoriaMetrics_ Performance Tests.pptx
RomanKhavronenko
 
Terraform modules and (some of) best practices
Terraform modules and (some of) best practicesTerraform modules and (some of) best practices
Terraform modules and (some of) best practices
Anton Babenko
 
The RED Method: How to monitoring your microservices.
The RED Method: How to monitoring your microservices.The RED Method: How to monitoring your microservices.
The RED Method: How to monitoring your microservices.
Grafana Labs
 
Implementation &amp; Comparison Of Rdma Over Ethernet
Implementation &amp; Comparison Of Rdma Over EthernetImplementation &amp; Comparison Of Rdma Over Ethernet
Implementation &amp; Comparison Of Rdma Over Ethernet
James Wernicke
 
Gitlab, GitOps & ArgoCD
Gitlab, GitOps & ArgoCDGitlab, GitOps & ArgoCD
Gitlab, GitOps & ArgoCD
Haggai Philip Zagury
 
LISA2019 Linux Systems Performance
LISA2019 Linux Systems PerformanceLISA2019 Linux Systems Performance
LISA2019 Linux Systems Performance
Brendan Gregg
 
What’s the Best PostgreSQL High Availability Framework? PAF vs. repmgr vs. Pa...
What’s the Best PostgreSQL High Availability Framework? PAF vs. repmgr vs. Pa...What’s the Best PostgreSQL High Availability Framework? PAF vs. repmgr vs. Pa...
What’s the Best PostgreSQL High Availability Framework? PAF vs. repmgr vs. Pa...
ScaleGrid.io
 
왜 쿠버네티스는 systemd로 cgroup을 관리하려고 할까요
왜 쿠버네티스는 systemd로 cgroup을 관리하려고 할까요왜 쿠버네티스는 systemd로 cgroup을 관리하려고 할까요
왜 쿠버네티스는 systemd로 cgroup을 관리하려고 할까요
Jo Hoon
 
Linux monitoring and Troubleshooting for DBA's
Linux monitoring and Troubleshooting for DBA'sLinux monitoring and Troubleshooting for DBA's
Linux monitoring and Troubleshooting for DBA's
Mydbops
 
OPENMARU APM 브로셔
OPENMARU APM 브로셔OPENMARU APM 브로셔
OPENMARU APM 브로셔
Opennaru, inc.
 
ksqlDB로 실시간 데이터 변환 및 스트림 처리
ksqlDB로 실시간 데이터 변환 및 스트림 처리ksqlDB로 실시간 데이터 변환 및 스트림 처리
ksqlDB로 실시간 데이터 변환 및 스트림 처리
confluent
 
Broken Linux Performance Tools 2016
Broken Linux Performance Tools 2016Broken Linux Performance Tools 2016
Broken Linux Performance Tools 2016
Brendan Gregg
 
Java Performance Analysis on Linux with Flame Graphs
Java Performance Analysis on Linux with Flame GraphsJava Performance Analysis on Linux with Flame Graphs
Java Performance Analysis on Linux with Flame Graphs
Brendan Gregg
 
OpenStack High Availability
OpenStack High AvailabilityOpenStack High Availability
OpenStack High Availability
Jakub Pavlik
 
Configuration management with puppet
Configuration management with puppetConfiguration management with puppet
Configuration management with puppet
Jakub Stransky
 

What's hot (20)

Namespaces and cgroups - the basis of Linux containers
Namespaces and cgroups - the basis of Linux containersNamespaces and cgroups - the basis of Linux containers
Namespaces and cgroups - the basis of Linux containers
 
FOSDEM 2017: GitLab CI
FOSDEM 2017:  GitLab CIFOSDEM 2017:  GitLab CI
FOSDEM 2017: GitLab CI
 
(발표자료) CentOS EOL에 따른 대응 OS 검토 및 적용 방안.pdf
(발표자료) CentOS EOL에 따른 대응 OS 검토 및 적용 방안.pdf(발표자료) CentOS EOL에 따른 대응 OS 검토 및 적용 방안.pdf
(발표자료) CentOS EOL에 따른 대응 OS 검토 및 적용 방안.pdf
 
Kubernetes a comprehensive overview
Kubernetes   a comprehensive overviewKubernetes   a comprehensive overview
Kubernetes a comprehensive overview
 
Terraform
TerraformTerraform
Terraform
 
Grafana Mimir and VictoriaMetrics_ Performance Tests.pptx
Grafana Mimir and VictoriaMetrics_ Performance Tests.pptxGrafana Mimir and VictoriaMetrics_ Performance Tests.pptx
Grafana Mimir and VictoriaMetrics_ Performance Tests.pptx
 
Terraform modules and (some of) best practices
Terraform modules and (some of) best practicesTerraform modules and (some of) best practices
Terraform modules and (some of) best practices
 
The RED Method: How to monitoring your microservices.
The RED Method: How to monitoring your microservices.The RED Method: How to monitoring your microservices.
The RED Method: How to monitoring your microservices.
 
Implementation &amp; Comparison Of Rdma Over Ethernet
Implementation &amp; Comparison Of Rdma Over EthernetImplementation &amp; Comparison Of Rdma Over Ethernet
Implementation &amp; Comparison Of Rdma Over Ethernet
 
Gitlab, GitOps & ArgoCD
Gitlab, GitOps & ArgoCDGitlab, GitOps & ArgoCD
Gitlab, GitOps & ArgoCD
 
LISA2019 Linux Systems Performance
LISA2019 Linux Systems PerformanceLISA2019 Linux Systems Performance
LISA2019 Linux Systems Performance
 
What’s the Best PostgreSQL High Availability Framework? PAF vs. repmgr vs. Pa...
What’s the Best PostgreSQL High Availability Framework? PAF vs. repmgr vs. Pa...What’s the Best PostgreSQL High Availability Framework? PAF vs. repmgr vs. Pa...
What’s the Best PostgreSQL High Availability Framework? PAF vs. repmgr vs. Pa...
 
왜 쿠버네티스는 systemd로 cgroup을 관리하려고 할까요
왜 쿠버네티스는 systemd로 cgroup을 관리하려고 할까요왜 쿠버네티스는 systemd로 cgroup을 관리하려고 할까요
왜 쿠버네티스는 systemd로 cgroup을 관리하려고 할까요
 
Linux monitoring and Troubleshooting for DBA's
Linux monitoring and Troubleshooting for DBA'sLinux monitoring and Troubleshooting for DBA's
Linux monitoring and Troubleshooting for DBA's
 
OPENMARU APM 브로셔
OPENMARU APM 브로셔OPENMARU APM 브로셔
OPENMARU APM 브로셔
 
ksqlDB로 실시간 데이터 변환 및 스트림 처리
ksqlDB로 실시간 데이터 변환 및 스트림 처리ksqlDB로 실시간 데이터 변환 및 스트림 처리
ksqlDB로 실시간 데이터 변환 및 스트림 처리
 
Broken Linux Performance Tools 2016
Broken Linux Performance Tools 2016Broken Linux Performance Tools 2016
Broken Linux Performance Tools 2016
 
Java Performance Analysis on Linux with Flame Graphs
Java Performance Analysis on Linux with Flame GraphsJava Performance Analysis on Linux with Flame Graphs
Java Performance Analysis on Linux with Flame Graphs
 
OpenStack High Availability
OpenStack High AvailabilityOpenStack High Availability
OpenStack High Availability
 
Configuration management with puppet
Configuration management with puppetConfiguration management with puppet
Configuration management with puppet
 

Similar to [발표자료] 오픈소스 기반 고가용성 Pacemaker 소개 및 적용 사례_20230703_v1.1F.pptx

Federated Kubernetes: As a Platform for Distributed Scientific Computing
Federated Kubernetes: As a Platform for Distributed Scientific ComputingFederated Kubernetes: As a Platform for Distributed Scientific Computing
Federated Kubernetes: As a Platform for Distributed Scientific Computing
Bob Killen
 
Pacemaker+DRBD
Pacemaker+DRBDPacemaker+DRBD
Pacemaker+DRBDDan Frincu
 
Lxc – next gen virtualization for cloud intro (cloudexpo)
Lxc – next gen virtualization for cloud   intro (cloudexpo)Lxc – next gen virtualization for cloud   intro (cloudexpo)
Lxc – next gen virtualization for cloud intro (cloudexpo)
Boden Russell
 
The power of linux advanced tracer [POUG18]
The power of linux advanced tracer [POUG18]The power of linux advanced tracer [POUG18]
The power of linux advanced tracer [POUG18]
Mahmoud Hatem
 
Sun cluster 3.0 introduce
Sun cluster 3.0 introduce Sun cluster 3.0 introduce
Sun cluster 3.0 introduce gilbertgreen
 
Web scale infrastructures with kubernetes and flannel
Web scale infrastructures with kubernetes and flannelWeb scale infrastructures with kubernetes and flannel
Web scale infrastructures with kubernetes and flannel
purpleocean
 
Through the firewall with miniCRAN
Through the firewall with miniCRANThrough the firewall with miniCRAN
Through the firewall with miniCRANRevolution Analytics
 
Cyclone DDS Unleashed: ROS & Cyclone DDS.pdf
Cyclone DDS Unleashed: ROS & Cyclone DDS.pdfCyclone DDS Unleashed: ROS & Cyclone DDS.pdf
Cyclone DDS Unleashed: ROS & Cyclone DDS.pdf
ZettaScaleTechnology
 
A GitOps model for High Availability and Disaster Recovery on EKS
A GitOps model for High Availability and Disaster Recovery on EKSA GitOps model for High Availability and Disaster Recovery on EKS
A GitOps model for High Availability and Disaster Recovery on EKS
Weaveworks
 
NFV features in kubernetes
NFV features in kubernetesNFV features in kubernetes
NFV features in kubernetes
Kuralamudhan Ramakrishnan
 
What's New in Docker - February 2017
What's New in Docker - February 2017What's New in Docker - February 2017
What's New in Docker - February 2017
Patrick Chanezon
 
eBPF Basics
eBPF BasicseBPF Basics
eBPF Basics
Michael Kehoe
 
[발표자료] 오픈소스 Pacemaker 활용한 zabbix 이중화 방안(w/ Zabbix Korea Community)
[발표자료] 오픈소스 Pacemaker 활용한 zabbix 이중화 방안(w/ Zabbix Korea Community) [발표자료] 오픈소스 Pacemaker 활용한 zabbix 이중화 방안(w/ Zabbix Korea Community)
[발표자료] 오픈소스 Pacemaker 활용한 zabbix 이중화 방안(w/ Zabbix Korea Community)
동현 김
 
[JOI] TOTVS Developers Joinville - Java #1
[JOI] TOTVS Developers Joinville - Java #1[JOI] TOTVS Developers Joinville - Java #1
[JOI] TOTVS Developers Joinville - Java #1
Rubens Dos Santos Filho
 
Nex clipper 1905_summary_eng
Nex clipper 1905_summary_engNex clipper 1905_summary_eng
Nex clipper 1905_summary_eng
Jinyong Kim
 
Continuous Security: From tins to containers - now what!
Continuous Security: From tins to containers - now what!Continuous Security: From tins to containers - now what!
Continuous Security: From tins to containers - now what!
Michael Man
 
OpenShift Meetup - Tokyo - Service Mesh and Serverless Overview
OpenShift Meetup - Tokyo - Service Mesh and Serverless OverviewOpenShift Meetup - Tokyo - Service Mesh and Serverless Overview
OpenShift Meetup - Tokyo - Service Mesh and Serverless Overview
María Angélica Bracho
 
IEEE HPSR 2017 Keynote: Softwarized Dataplanes and the P^3 trade-offs: Progra...
IEEE HPSR 2017 Keynote: Softwarized Dataplanes and the P^3 trade-offs: Progra...IEEE HPSR 2017 Keynote: Softwarized Dataplanes and the P^3 trade-offs: Progra...
IEEE HPSR 2017 Keynote: Softwarized Dataplanes and the P^3 trade-offs: Progra...
Christian Esteve Rothenberg
 
Virtuoso RDF Triple Store Analysis Benchmark & mapping tools RDF / OO
Virtuoso RDF Triple Store Analysis Benchmark & mapping tools RDF / OOVirtuoso RDF Triple Store Analysis Benchmark & mapping tools RDF / OO
Virtuoso RDF Triple Store Analysis Benchmark & mapping tools RDF / OO
Paolo Cristofaro
 
Fast Streaming into Clickhouse with Apache Pulsar
Fast Streaming into Clickhouse with Apache PulsarFast Streaming into Clickhouse with Apache Pulsar
Fast Streaming into Clickhouse with Apache Pulsar
Timothy Spann
 

Similar to [발표자료] 오픈소스 기반 고가용성 Pacemaker 소개 및 적용 사례_20230703_v1.1F.pptx (20)

Federated Kubernetes: As a Platform for Distributed Scientific Computing
Federated Kubernetes: As a Platform for Distributed Scientific ComputingFederated Kubernetes: As a Platform for Distributed Scientific Computing
Federated Kubernetes: As a Platform for Distributed Scientific Computing
 
Pacemaker+DRBD
Pacemaker+DRBDPacemaker+DRBD
Pacemaker+DRBD
 
Lxc – next gen virtualization for cloud intro (cloudexpo)
Lxc – next gen virtualization for cloud   intro (cloudexpo)Lxc – next gen virtualization for cloud   intro (cloudexpo)
Lxc – next gen virtualization for cloud intro (cloudexpo)
 
The power of linux advanced tracer [POUG18]
The power of linux advanced tracer [POUG18]The power of linux advanced tracer [POUG18]
The power of linux advanced tracer [POUG18]
 
Sun cluster 3.0 introduce
Sun cluster 3.0 introduce Sun cluster 3.0 introduce
Sun cluster 3.0 introduce
 
Web scale infrastructures with kubernetes and flannel
Web scale infrastructures with kubernetes and flannelWeb scale infrastructures with kubernetes and flannel
Web scale infrastructures with kubernetes and flannel
 
Through the firewall with miniCRAN
Through the firewall with miniCRANThrough the firewall with miniCRAN
Through the firewall with miniCRAN
 
Cyclone DDS Unleashed: ROS & Cyclone DDS.pdf
Cyclone DDS Unleashed: ROS & Cyclone DDS.pdfCyclone DDS Unleashed: ROS & Cyclone DDS.pdf
Cyclone DDS Unleashed: ROS & Cyclone DDS.pdf
 
A GitOps model for High Availability and Disaster Recovery on EKS
A GitOps model for High Availability and Disaster Recovery on EKSA GitOps model for High Availability and Disaster Recovery on EKS
A GitOps model for High Availability and Disaster Recovery on EKS
 
NFV features in kubernetes
NFV features in kubernetesNFV features in kubernetes
NFV features in kubernetes
 
What's New in Docker - February 2017
What's New in Docker - February 2017What's New in Docker - February 2017
What's New in Docker - February 2017
 
eBPF Basics
eBPF BasicseBPF Basics
eBPF Basics
 
[발표자료] 오픈소스 Pacemaker 활용한 zabbix 이중화 방안(w/ Zabbix Korea Community)
[발표자료] 오픈소스 Pacemaker 활용한 zabbix 이중화 방안(w/ Zabbix Korea Community) [발표자료] 오픈소스 Pacemaker 활용한 zabbix 이중화 방안(w/ Zabbix Korea Community)
[발표자료] 오픈소스 Pacemaker 활용한 zabbix 이중화 방안(w/ Zabbix Korea Community)
 
[JOI] TOTVS Developers Joinville - Java #1
[JOI] TOTVS Developers Joinville - Java #1[JOI] TOTVS Developers Joinville - Java #1
[JOI] TOTVS Developers Joinville - Java #1
 
Nex clipper 1905_summary_eng
Nex clipper 1905_summary_engNex clipper 1905_summary_eng
Nex clipper 1905_summary_eng
 
Continuous Security: From tins to containers - now what!
Continuous Security: From tins to containers - now what!Continuous Security: From tins to containers - now what!
Continuous Security: From tins to containers - now what!
 
OpenShift Meetup - Tokyo - Service Mesh and Serverless Overview
OpenShift Meetup - Tokyo - Service Mesh and Serverless OverviewOpenShift Meetup - Tokyo - Service Mesh and Serverless Overview
OpenShift Meetup - Tokyo - Service Mesh and Serverless Overview
 
IEEE HPSR 2017 Keynote: Softwarized Dataplanes and the P^3 trade-offs: Progra...
IEEE HPSR 2017 Keynote: Softwarized Dataplanes and the P^3 trade-offs: Progra...IEEE HPSR 2017 Keynote: Softwarized Dataplanes and the P^3 trade-offs: Progra...
IEEE HPSR 2017 Keynote: Softwarized Dataplanes and the P^3 trade-offs: Progra...
 
Virtuoso RDF Triple Store Analysis Benchmark & mapping tools RDF / OO
Virtuoso RDF Triple Store Analysis Benchmark & mapping tools RDF / OOVirtuoso RDF Triple Store Analysis Benchmark & mapping tools RDF / OO
Virtuoso RDF Triple Store Analysis Benchmark & mapping tools RDF / OO
 
Fast Streaming into Clickhouse with Apache Pulsar
Fast Streaming into Clickhouse with Apache PulsarFast Streaming into Clickhouse with Apache Pulsar
Fast Streaming into Clickhouse with Apache Pulsar
 

Recently uploaded

Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Globus
 
Designing for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web ServicesDesigning for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web Services
KrzysztofKkol1
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Natan Silnitsky
 
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
XfilesPro
 
Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024
Sharepoint Designs
 
Why React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdfWhy React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdf
ayushiqss
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
Tendenci - The Open Source AMS (Association Management Software)
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
Georgi Kodinov
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Globus
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
informapgpstrackings
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
IES VE
 
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Hivelance Technology
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
Tier1 app
 
De mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FMEDe mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FME
Jelle | Nordend
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
Cyanic lab
 

Recently uploaded (20)

Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
Designing for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web ServicesDesigning for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web Services
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
 
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
 
Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024
 
Why React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdfWhy React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdf
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
 
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
 
De mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FMEDe mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FME
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
 

[발표자료] 오픈소스 기반 고가용성 Pacemaker 소개 및 적용 사례_20230703_v1.1F.pptx

  • 2. OpenInfra Community Day Korea 2023 WHOAMI ■ https://www.facebook.com/groups/clusterlabskorea https://clusterlabs.org/developers.html
  • 3. OpenInfra Community Day Korea 2023 Pacemaker Project is… ■ https://openhub.net/p/pacemaker?ref=sample http://www.beekhof.net/
  • 4. OpenInfra Community Day Korea 2023 In this Session ■
  • 5. OpenInfra Community Day Korea 2023 오픈소스 Pacemaker 소개 안정적인 이중화 솔루션이고 다양한 리소스 지원 및 이중화 모델을 지원 01 • [1] LSB (Linux Standard Base) [2] OCF (Open Cluster Framework) 1. Pacemaker’s Story - The Open Source, High Availability Cluster • • Active Standby
  • 6. OpenInfra Community Day Korea 2023 오픈소스 Pacemaker 특징 02 다양한 오픈 플랫폼 적용 가능하고 다수 커뮤니티 참여로 업데이트 진행 中 • 대부분 엔터프라이즈 Linux운영체제에서 사용 • 지속적인 업데이트를 진행 1. Pacemaker’s Story - The Open Source, High Availability Cluster
  • 7. OpenInfra Community Day Korea 2023 HA Clustering in the OpenSource Ecosystem 03 7 1999s 2002s 2004s 2008s 2010s ~ ~ 현재 2006s 1. Pacemaker’s Story - The Open Source, High Availability Cluster https://github.com/ClusterLabs/pacemaker/releases?page=1 https://alteeve.ca/w/High-Availability_Clustering_in_the_Open_Source_Ecosystem
  • 8. OpenInfra Community Day Korea 2023 Novell - Red Hat 등 Vendor 주도 오픈소스 Project Progress - Last day 04 Linux-HA SUSE Red Hat Hwak (GUI) luci Resources Layer Resource Allocation Layer Messaging / Infrastructure Layer PCS (CLI) Novell Developer Red Hat Developer Pacemaker-mgmt crmsh (CLI) Heartbeat cman rgmanager PCS (CLI) ricci 1. Pacemaker’s Story - The Open Source, High Availability Cluster Pacemaker fence-agents resource-agents resource-agents resource-agents Community Developer OpenAIS
  • 9. OpenInfra Community Day Korea 2023 오픈소스 Project Progress - Today 05 앞으로도 지속 가능한 오픈소스 프로젝트 ClusterLabs SUSE Red Hat Hwak (GUI) crmsh (CLI) Corosync PCSD (GUI) Resources Layer Resource Allocation Layer Messaging / Infrastructure Layer PCS (CLI) Upstream Downstream Upstream Downstream 1. Pacemaker’s Story - The Open Source, High Availability Cluster Pacemaker fence-agents resource-agents Novell Developer Red Hat Developer Community Developer LCMC (GUI)
  • 10. OpenInfra Community Day Korea 2023 Pacemaker - High level architecture 01 Messaging / Infrastructure Layer Resource Allocation Layer Resources Layer XML XML Cluster Node #1 Cluster Node #2 Corosync Cluster Resource Manager CRM Corosync Services (Apache, PostgreSQL 등) Local Resource Manager LRM Policy Engine Cluster Information Base CIB (복제) Resource Agents RAs 2. Overview of HA architectural components
  • 11. OpenInfra Community Day Korea 2023 Pacemaker - Architecture Component 02 Resource Agents - Agent Scripts - Open Cluster Framework Resource Agents Pacemaker - Resource Management LRMd Stonith CRMd CIB PEngine Corosync - Membership - Messaging - Quorum Cluster Abstraction Layer Corosync 2. Overview of HA architectural components
  • 12. OpenInfra Community Day Korea 2023 Quick Overview of Components - CRMd 03 RA Resource Layer Messaging/Infra structure Layer Corosync RA RA CIB (XML) CRM Resource Allocation Layer PE LRM STONITH 2. Overview of HA architectural components https://github.com/ClusterLabs/pacemaker-1.0/blob/master/crmd/crmd.c
  • 13. OpenInfra Community Day Korea 2023 Quick Overview of Components - CIB 04 RA Resource Layer Messaging/Infra structure Layer Corosync RA RA CIB (XML) CRM Resource Allocation Layer PE LRM STONITH 2. Overview of HA architectural components https://github.com/ClusterLabs/pacemaker/blob/main/include/crm/cib.h
  • 14. OpenInfra Community Day Korea 2023 Quick Overview of Components - PEngine 05 RA Resource Layer Messaging/Infra structure Layer Corosync RA RA CIB (XML) CRM Resource Allocation Layer PE LRM STONITH 2. Overview of HA architectural components
  • 15. OpenInfra Community Day Korea 2023 Quick Overview of Components - LRMd 06 RA Resource Layer Messaging/Infra structure Layer Corosync RA RA CIB (XML) CRM Resource Allocation Layer PE LRM STONITH 2. Overview of HA architectural components https://github.com/ClusterLabs/pacemaker/blob/main/include/crm/lrmd.h
  • 16. OpenInfra Community Day Korea 2023 Quick Overview of Components - RAs 07 RA Resource Layer Messaging/Infra structure Layer Corosync RA RA CIB (XML) CRM Resource Allocation Layer PE LRM STONITH 2. Overview of HA architectural components http://linux-ha.org/wiki/OCF_Resource_Agent http://linux-ha.org/wiki/LSB_Resource_Agents https://github.com/ClusterLabs/resource-agents
  • 17. OpenInfra Community Day Korea 2023 Quick Overview of Components - STONITHD 08 RA Resource Layer Messaging/Infra structure Layer Corosync RA RA CIB (XML) CRM Resource Allocation Layer PE LRM STONITH 2. Overview of HA architectural components
  • 18. OpenInfra Community Day Korea 2023 What is fencing? ■ Kernel panic System freeze Live hang / recovery 2. Overview of HA architectural components
  • 19. OpenInfra Community Day Korea 2023 Quick Overview of Components - Corosync 09 RA Resource Layer Messaging/Infra structure Layer Corosync RA RA CIB (XML) CRM Resource Allocation Layer PE LRM STONITH 2. Overview of HA architectural components http://corosync.github.io/corosync/
  • 20. OpenInfra Community Day Korea 2023 Quick Overview of Components - User Interface 10 Hwak (HA Web Console, SUSE) LCMC (Linux Console Management Console) 2. Overview of HA architectural components PCSD (Pacemaker Cluster Service Web UI, Red Hat) https://lcmc.sourceforge.net/ https://hawk-ui.github.io/ https://horizon-ui.com/
  • 21. OpenInfra Community Day Korea 2023 Cluster Filesystem on shared disk 11 2. Overview of HA architectural components
  • 22. OpenInfra Community Day Korea 2023 해외 적용 사례 - NTT 01 http://linux-ha.osdn.jp/wp/ https://www.sic.ecl.ntt.co.jp/e/oss/ <ClusterLabs Summit 2020> Pacemaker 적용/확대 자체 개발 커뮤니티 리딩 https://osdn.net/projects/pg-rex <NTT 표준 OSS 레퍼런스> <PostgreSQL HA Architecture> 3. Pacemaker USE CASE
  • 23. OpenInfra Community Day Korea 2023 02 3. Pacemaker USE CASE IP Address DBMS FileSystem Virtual Machine H/B Active Stanby eth1 eth1 eth0 eth0 fence_sbd eth1 eth1 fence_sbd Heartbeat구간 별도 네트워크인터페이스 없이 UDP/Unicast을 이용 HA-LVM사용하여 문제발생시 Data Corruption상황 방지 fence_sbd(STONITH Block Device Daemon) 적용 CentOS 7.4, Rocky Linux 8 버전 이상
  • 24. OpenInfra Community Day Korea 2023 03 Shared Volumes Database WEB Network Infra Cloud Virtual IP Virtual IP Active Standby Active Queue Application CLIENTS Database 3. Pacemaker USE CASE Standby Pacemaker Pacemaker
  • 25. OpenInfra Community Day Korea 2023 환경에 따라 적정 값 필요 Create HA Cluster 04 3. Pacemaker USE CASE # pcs cluster config update totem token=10000  단위는 ms, 기본 값은 1000 # totem { version: 2 secauth: off cluster_name: pgsql-cluster transport: udpu rrp_mode: passive token: 10000 } # pcs cluster sync # pcs cluster reload corosync # corosync-cmapctl | grep totem.token runtime.config.totem.token (u32) = 10000 ...
  • 26. OpenInfra Community Day Korea 2023 HA-LVM 권고사항이 아닌 필수로 설정 Configure HA-LVM 05 # vi /etc/lvm/lvm.conf system_id_source = "uname" # dracut -f -v # reboot # pvcreate /dev/sda # vgcreate cluster_vg /dev/sda # lvcreate -l 100%FREE -n cluster_vg cluster_lv # mkfs.xfs /dev/cluster_vg/cluster_lv # pcs resource create DATA ocf:heartbeat:LVM-activate vgname=cluster_vg activation_mode=exclusive vg_access_mode=system_id --group ha-lvm # pcs resource create clu-fs ocf:heartbeat:Filesystem device=/dev/cluster_vg/cluster_lv directory=/data fstype=xfs --group ha-lvm 3. Pacemaker USE CASE
  • 27. OpenInfra Community Day Korea 2023 Detail : Configuration ■ [root@pgsql-db1 ~]# pcs status Cluster name: pgsql-cluster Stack: corosync Current DC: node1 (version 2.0.0-11.el8-efbf81b659) – partition with quorum Last updated: Thu Jan 10 00:12:36 2023 Last change: Thu Jan 10 00:12:33 2023 by root via cibadmin on node1 2 nodes configured 8 resources configured Online: [ node1 node2 ] Full list of resources: sbd (stonith:fence_sbd: Started node2 Resource Group: pgsql-svr vip (ocf:heartbeat:ipaddr2): stated node1 pgsq-11 (ocf:heartbeat:pgsql): started node1 pg_wal-vg (ocf::heartbeat:LVM-activate): Started node1 pg-wal (ocf::heartbeat:Filesystem): Started node1 archive-vg (ocf::heartbeat:LVM-activate): Started node1 archive (ocf::heartbeat:Filesystem): Started node1 data-vg (ocf::heartbeat:LVM-activate): Started node1 data (ocf::heartbeat:Filesystem): Started node1 Daemon Status: corosync: active/disabled pacemaker: active/disabled pcsd: active/enabled sbd: active/enabled 3. Pacemaker USE CASE
  • 28. OpenInfra Community Day Korea 2023 Situations Where This Procedure May Be Useful ■ # crm_report # crm_report -f "2023-06-30 12:00:00" # crm_report -f "`date --date='7 days ago' +%Y-%m-%d' '%H:%M:%S`" -S # pcs cluster disable --all # pcs cluster disable # vi /etc/sysconfig/pacemaker ~~ Snip ~~~ # Enable debug logging globally or per-subsystem # Multiple subsystems may me listed separated by commas # eg. PCMK_debug=crmd,pengine # PCMK_debug=yes|no|crmd|pengine|cib|stonith-ng|attrd|pacemakerd 3. Pacemaker USE CASE
  • 29. OpenInfra Community Day Korea 2023 General Future - Kronosnet(KNET) ■  What is Kronosnet? https://www.kronosnet.org  Project Features Pacemaker Corosync totempg totemsrp totemnet totemknet libknet NIC 1 NIC 2 3. Pacemaker USE CASE
  • 30. OpenInfra Community Day Korea 2023 General Future - Kronosnet(KNET) ■ https://build.clusterlabs.org/corosync/presentations/2017-Kronosnet-The-new-face-of-corosync-communications.pdf 3. Pacemaker USE CASE
  • 31. OpenInfra Community Day Korea 2023 설명 Previous name Current name Pacemaker corosync cpg Quorum Resource1 Resource2 Pacemaker-execd Pacemaker-fenced Pacemaker-schedulerd Pacemaker-attrd Pacemaker-based Pacemaker-controld Pacemakerd Network Node 1 Node 2 Pacemaker corosync cpg Quorum Resource1 Resource2 Pacemaker-execd Pacemaker-fenced Pacemaker-schedulerd Pacemaker-attrd Pacemaker-based Pacemaker-controld Pacemakerd General Future - Pacemaker 2.0 ■ 3. Pacemaker USE CASE
  • 32. OpenInfra Community Day Korea 2023 At the end of…. ■ 여러분이 생각하는 고가용성이란 무엇인가요? 그리고, 어떻게 생각하고 계셨나요? 어떠한 솔루션도 99.9% 고가용성을 보장해줄수는 없습니다. 또한, 정해진 Best Practice 란 없습니다. 오로지 Test! Test! TEST!!!