关于pacemaker配置中用到的OCF_CHECK_LEVEL参数,没理解太明白,查了资料也没弄清,有熟悉的同学请帮忙留言解释,谢谢啦。

   官方给的关于OCF_CHECK_LEVEL参数的相关说明如下:


引自:Pacemaker 1.1 Configuration Explained

5.7.2.2. Multiple Monitor Operations

Provided no two operations (for a single resource) have the same name and interval you can have asmany monitor operations as you like. In this way you can do a superficial health check every minute and progressively more intense ones at higher intervals.

To tell the resource agent what kind of check to perform, you need to provide each monitor with a different value for a common parameter. The OCF standard creates a special parameter called OCF_CHECK_LEVEL for this purpose and dictates that it is "made available to the resource agent without the normal OCF_RESKEY prefix".

Whatever name you choose, you can specify it by adding an instance_attributes block to the op tag. Note that it is up to each resource agent to look for the parameter and decide how to use it.

Example 5.8. An OCF resource with two recurring health checks, performing different levels of checks - specified via OCF_CHECK_LEVEL.