8.5.4.3. Configuring Watchman
Set any of the following parameters in the
/etc/sysconfig/watchman file to configure Watchman. This file is available by default starting with OpenShift Enterprise 2.1.4.
| Parameter | Function |
|---|---|
GEAR_RETRIES | This sets the number of gear restarts attempted before a RETRY_PERIOD. |
RETRY_DELAY | This sets the number of seconds to wait before attempting to restart the gear. |
RETRY_PERIOD | This sets the number of seconds to wait before resetting the GEAR_RETRIES entry. |
STATE_CHANGE_DELAY | This sets the number of seconds the gear remains broken before Watchman attempts to fix the issue. |
STATE_CHECK_PERIOD | Available starting with OpenShift Enterprise 2.1.4, this sets the number of seconds to wait since the last check before checking the gear state. Increase this to reduce the impact of the Watchman Gear State plug-in. |
THROTTLER_CHECK_PERIOD | Available starting with OpenShift Enterprise 2.1.4, this sets the number of seconds to wait before checking the cgroup state of the gear. Increase this to reduce the impact of the Watchman Throttler plug-in. |
OOM_CHECK_PERIOD | Available starting with OpenShift Enterprise 2.1.4, this sets the number of seconds to wait since the last check before looking for gears under out-of-memory (OOM) state. |
Restart the Watchman tool for any changes to take effect:
# service openshift-watchman restart