38
Configure High Availability without PACEMAKER on Linux

withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

Configure High Availability

without PACEMAKER

onLinux

Page 2: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

Edwin M Sarmientohttps://[email protected]@EdwinMSarmientohttp://ca.linkedin.com/in/EdwinMSarmiento

Microsoft MVP/Microsoft Certified Master: SQL Server

in

Page 3: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

POLL QUESTION#1

Page 4: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

POLL QUESTION#2

Page 5: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

1you have an understanding of how Windows Server Failover Clustering

WORKS

ASSUMPTIONS

Page 6: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

2you have an understanding of how SQL Server Always On

(Availability Groups or Failover Clustered Instances)

WORKS

ASSUMPTIONS

Page 7: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

the second-largestdiscount store retailer in the United States

Page 8: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource
Page 9: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

just because SOMETHING WORKS

IT ALWAYS WILLdoesn’t mean

Page 10: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

same COMPANY

COUNTRYdifferent

Page 11: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource
Page 12: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

just because you know Windows HA

Linux HA will be easydoesn’t mean

Page 13: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

same SQL Server

Operating Systemdifferent

*you can apply the same principles

Page 14: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

SQL Serverhigh availability

Page 15: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

log data

windows high availability

Windows Server Failover Cluster

SQL Server

2-node clustert r a d i t i o n a l

Page 16: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

log data*Availability Groups

data data

2-node clustert r a d i t i o n a l

windows high availability

SQL Server

Windows Server Failover Cluster

SQL Server

Page 17: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

log data*Availability Groups

data data

2-node clustert r a d i t i o n a l

windows high availability

SQL Server

Windows Server Failover Cluster

SQL Server

cluster resource manager

(CRM)

Page 18: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

cluster resource manager

(CRM)

SOFTWARE that runs on all of the nodes in the cluster responsible for maintaining a

consistent image of the cluster

Page 19: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

cluster resource manager

(CRM)

the GOAL is to provide high availability and fault tolerance to resources running on top of the cluster

Page 20: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

Cluster ServiceClusSvc.exe

Database Manager Failover Manager

Node Manager

Resource MonitorsR H S . e xe

Global Update Manager

Checkpoint Manager Membership Manager Resource Control Manager

Registry

File System

C l u s t e r A P I

M a n a g e m e n t To o l sP o w e r S h e l l , M M C , W M I

Resource DLL

Cluster-awareapplication

Resource DLL

Clusterr e s o u r c e

WSFC Nodes

Page 21: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

POLL QUESTION#3

Page 22: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

POLL QUESTION#4

Page 23: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

SQL Serverhigh availability Linux

Page 24: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

log data*Availability Groups

data data

2-node clustert r a d i t i o n a l

SQL Server SQL Server

linux high availability

Pacemaker

Page 25: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

cibCluster Information Base

PEnginePolicy Engine

STONITHd

CRMdCluster Resource Management Daemon

Resource Agents

Clusterr e s o u r c e

Cluster Nodes

Pacemaker

linux high availability

ccmConsensus Cluster Membership

heartbeatLRMdLocal Resource

Manager Daemon

Corosync

Linux

Page 26: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

Linuxvs

F a i l o v e r C l u s t e r i n g Pacemaker

SQL Serverhigh availability

Page 27: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

LinuxvsF a i l o v e r C l u s t e r i n gPacemake

r

COMMUNICATION

2-way 1-wayin Windows, WSFC talks to SQL Server and vice versa

in Linux, only Pacemaker can talk to SQL Server

Page 28: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

LinuxvsF a i l o v e r C l u s t e r i n gPacemake

r

COUPLING

tight loosein Windows, changes made in SQL Server is propagated to the

WSFC and vice versain Linux, Pacemaker does not see changes made in SQL Server

Page 29: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

LinuxvsF a i l o v e r C l u s t e r i n gPacemake

r

WINDOWS INTEGRATION

tight loosein Windows, you can use Windows authentication to configure AG

in Linux, you can only use certificates to configure AG

Page 30: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

DEMO configure high availability for

SQL Server on Linux w i t h P a c e m a k e r

Page 31: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

THERE IS ABETTERWAY

IS A

Page 32: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

configure high availability for

SQL Server on Linux w i t h o u t P a c e m a k e r

DxEnterprise

Page 33: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

• 3rd party cluster manager• run in production environments since 2011• FEATURES • “clustered instances” and Availability Groups• supports SQL Server instances 2005+• supports any Docker Container• runs on Windows and Linux• easy setup and administration

DH2i’s DxEnterprise

Page 34: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

DEMO configure high availability for

SQL Server on Linux without PacemakerDxEnterprise

create cluster across RHEL, Ubuntu, and Windows

manage an Availability Group & test automated HA

demo “FCI” and Docker management

tourconsolidated SQL Server cluster on Windows

Page 35: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

Get in [email protected]

DxEnterprise FREE trialhttp://dh2i.com/trial

Learn more http://dh2i.com

DH2i softwarewant to learn more about

FREE TRIAL

Page 36: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource
Page 37: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource
Page 38: withoutPACEMAKERdh2i.com/wp-content/uploads/18-06-06-Edwin-Linux-HA-Slide-Deck.pdf · Pacemaker linuxhigh availability ccm Consensus Cluster Membership LRMd heartbeat Local Resource

Edwin M Sarmiento

http://[email protected]@EdwinMSarmientohttp://ca.linkedin.com/in/EdwinMSarmiento

Microsoft MVP/Microsoft Certified Master: SQL Server

in

QUESTIONS