Product SiteDocumentation Site

Chapter 5. Cluster Resources

Table of Contents

5.1. What is a Cluster Resource
5.2. Supported Resource Classes
5.2.1. Open Cluster Framework
5.2.2. Linux Standard Base
5.2.3. Systemd
5.2.4. Upstart
5.2.5. System Services
5.2.6. STONITH
5.3. Resource Properties
5.4. Resource Options
5.5. Setting Global Defaults for Resource Options
5.6. Instance Attributes
5.7. Resource Operations
5.7.1. Monitoring Resources for Failure
5.7.2. Setting Global Defaults for Operations

5.1. What is a Cluster Resource

The role of a resource agent is to abstract the service it provides and present a consistent view to the cluster, which allows the cluster to be agnostic about the resources it manages.
The cluster doesn’t need to understand how the resource works because it relies on the resource agent to do the right thing when given a start, stop or monitor command.
For this reason it is crucial that resource agents are well tested.
Typically resource agents come in the form of shell scripts, however they can be written using any technology (such as C, Python or Perl) that the author is comfortable with.