5.1. Cos'è una risorsa del cluster
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.
Per questa ragione è cruciale che i resource agent siano ben testati.
Tipicamente i resource agents nascono come script di shell, tuttavia possono essere scritti utilizzando qualsiasi tecnologia (come C, Python o Perl) con la quale l'autore abbia familiarità.