I created simple pacemaker agent for managing MySQL. It works quite well, but there is 1 thing that I can't understand.
When resource is "Started", and monitor action returns one of:
- $OCF_NOT_RUNNING
- $OCF_ERR_GENERIC
pacemaker immediately stops resource, and run it again. Is there any way to do more than 1 monitor check, before stopping resource? E.g. 5 retries in 30 seconds timeout. Of course I can set operation timeout, but that's all.
I know that I can implement retry mechanism inside of my resource agent, but I don't feel that it's the best approach.
Any help will be appreciated