patroni.watchdog.base module¶
-
class
patroni.watchdog.base.Watchdog(config: patroni.config.Config)¶ Bases:
objectFacade to dynamically manage watchdog implementations and handle config changes.
When activation fails underlying implementation will be switched to a Null implementation. To avoid log spam activation will only be retried when watchdog configuration is changed.
-
__init__(config: patroni.config.Config) → None¶ Initialize self. See help(type(self)) for accurate signature.
-
activate(*args: Any, **kwargs: Any) → Any¶
-
disable(*args: Any, **kwargs: Any) → Any¶
-
property
is_healthy¶
-
property
is_running¶
-
keepalive(*args: Any, **kwargs: Any) → Any¶
-
reload_config(*args: Any, **kwargs: Any) → Any¶
-
-
exception
patroni.watchdog.base.WatchdogError(value: Any)¶ Bases:
patroni.exceptions.PatroniExceptionAny problem faced while managing a watchdog device.