High Availability Concepts in SUSE
local graph
Chapter 12 — High Availability Concepts in SUSE
Section titled “Chapter 12 — High Availability Concepts in SUSE”High availability (HA) systems are designed to keep services running even when components fail. In modern enterprise environments, availability is critical. Systems must survive failures in hardware, software, networking, power, or human mistakes without causing service outages.
SUSE provides a robust high availability solution using:
- SUSE Linux Enterprise High Availability Extension (SLE-HA)
- Pacemaker cluster resource management
- Corosync cluster communication framework
- Resource Agents to control services and operations
This chapter explains HA concepts, cluster behavior, configuration basics, and how Pacemaker ensures continuous uptime.
What is High Availability (HA)?
Section titled “What is High Availability (HA)?”High availability ensures:
- Services stay running
- Failures are automatically detected
- Workloads automatically migrate to healthy systems
Availability is measured as uptime percentage:
| Availability | Downtime per Year |
|---|---|
| 99 percent | ~3.65 days |
| 99.9 percent | ~8.76 hours |
| 99.99 percent | ~52 minutes |
| 99.999 percent (five nines) | ~5 minutes |
Enterprises often aim for four or five nines, especially in:
- Banking
- Manufacturing control systems
- Healthcare
- Logistics platforms
- Cloud hosting
Clustering Fundamentals
Section titled “Clustering Fundamentals”A cluster is a group of servers working together to provide a single combined service.
Key Concepts
Section titled “Key Concepts”| Term | Meaning |
|---|---|
| Node | A server participating in a cluster |
| Quorum | Majority agreement among nodes on cluster state |
| Resource | A service or application managed by the cluster |
| Failover | Automatic relocation of a resource from one node to another |
| STONITH / Fencing | Automatic isolation of a malfunctioning node to prevent corruption |
Why fencing is critical
Section titled “Why fencing is critical”If two systems try to control the same data at once, data corruption can occur. STONITH ensures only one node controls the resource at a time.
SUSE HA Architecture Overview
Section titled “SUSE HA Architecture Overview”SUSE HA uses two core components:
| Component | Responsibility |
|---|---|
| Corosync | Handles messaging and membership information (who is alive) |
| Pacemaker | Decides where resources run and performs failover |
Cluster lifecycle:
- Corosync determines node membership.
- Pacemaker monitors resources on each node.
- If a resource or node fails, Pacemaker moves the resource.
Pacemaker Resource Management
Section titled “Pacemaker Resource Management”Pacemaker controls cluster resources, such as:
- IP addresses
- Filesystem mounts
- Database services
- Web servers
- Custom scripts
View Cluster Status
Section titled “View Cluster Status”sudo crm statusList Resources
Section titled “List Resources”sudo crm_resource --listStart or Stop a Resource
Section titled “Start or Stop a Resource”sudo crm resource start <resource_name>sudo crm resource stop <resource_name>These commands are essential in real cluster maintenance.
Resource Agents (Intro Level)
Section titled “Resource Agents (Intro Level)”Resource Agents are scripts that tell Pacemaker:
- How to start the service
- How to stop it
- How to confirm it is working
Common resource agent classes:
| Type | Usage |
|---|---|
| ocf | Standard open cluster framework scripts |
| systemd | Manages any systemd service as a cluster resource |
| lsb | Legacy service scripts |
Example:
ocf:heartbeat:IPaddr2Manages a floating IP address that moves between cluster nodes.
Example: Highly Available Web Service
Section titled “Example: Highly Available Web Service”A common beginner HA setup includes:
- Two nodes
- A shared IP resource
- Apache web service managed by Pacemaker
If Node 1 fails:
- Pacemaker detects service failure
- Cluster assigns floating IP to Node 2
- Apache service starts on Node 2
- End users experience no interruption
This illustrates service continuity without manual intervention.
Hands-On Mental Model Exercise (No Cluster Required Yet)
Section titled “Hands-On Mental Model Exercise (No Cluster Required Yet)”Imagine:
- Two servers: node1 and node2
- One floating IP address: 192.168.10.50
- Apache running as cluster-controlled resource
If node1 goes offline:
- Floating IP shifts to node2
- Apache runs automatically
- Clients continue using same IP
This is the core value proposition of HA.
Real-World Case Example
Section titled “Real-World Case Example”A logistics company relied on a database service for warehouse tracking. When the primary server hardware failed, the system went offline, halting warehouse operations.
After implementing SUSE HA:
- Failover took less than 10 seconds
- No data loss occurred
- Operations remained uninterrupted
Lesson: High availability is not about avoiding failures, but planning for them.
Memory Booster
Section titled “Memory Booster”Remember the cluster rule:
C P R F
Corosync manages communication Pacemaker manages resources Resources represent services Fencing protects data
If you remember CPRF, you understand SUSE HA’s heartbeat.
Hands-On Exercise Lab 12 (Conceptual)
Section titled “Hands-On Exercise Lab 12 (Conceptual)”Write down answers to these:
- Identify three services in your environment that would benefit from high availability.
- Describe what happens when a cluster node crashes unexpectedly.
- Explain why fencing/STONITH prevents data corruption.
This prepares your decision-making mindset for production scenarios.
Reflection Questions
Section titled “Reflection Questions”- What is the main purpose of clustering in enterprise environments?
- How does Pacemaker decide where to run resources?
- Why is quorum required for safe cluster operation?
- Why is STONITH mandatory in HA clusters?
Your answers reflect operational maturity.
End-of-Chapter Summary
Section titled “End-of-Chapter Summary”In this chapter, you learned:
- The importance of high availability and uptime targets
- How SUSE HA clusters function using Pacemaker and Corosync
- How resources are controlled through resource agents
- The importance of fencing to prevent corruption
- A practical mental model for automatic service failover
You now understand the foundational behavior of SUSE high availability systems.