
A resource instance is the instantiation of a ResourceAgent[1] into a real resource[2], rather than the general ResourceAgentType[3] of the ResourceAgent[1].
For example, IPaddr is the type of a resource agent. But, to instantiate (or create) a particular IPaddr resource, one needs to have the parameters which describe this particular IPaddr object and distinguish it from all other IPaddr resources. For example, one might create an IPaddr object which needs three parameters in order to describe it. They might be
The parameters for any ResourceAgent[1] are described by its ResourceAgentMetadata[4].
So, to deal with a resource instance of an IPaddr resource, one needs to give its parameters. An example might be
And, this resource instance would be distinct from the following one:
For more information regarding resource instances, also refer to the OpenClusterFramework[5] ResourceAgent[1] API.
It is worth noting that this is the best description available, but the LocalResourceManager[6] is not limited to OCF[7] ResourceAgent[1]s.
| [1] | http://www.linux-ha.org/ResourceAgent |
| [2] | http://www.linux-ha.org/resource |
| [3] | http://www.linux-ha.org/ResourceAgentType |
| [4] | http://www.linux-ha.org/ResourceAgentMetadata |
| [5] | http://www.linux-ha.org/OpenClusterFramework |
| [6] | http://www.linux-ha.org/LocalResourceManager |
| [7] | http://www.linux-ha.org/OCF |
This information provided courtesy of the Linux-HA project at http://linux-ha.org/