patroni.watchdog.base module
- class patroni.watchdog.base.Watchdog(config: Config)View on GitHub
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: Config) NoneView on GitHub
- _activate() boolView on GitHub
- _disable() NoneView on GitHub
- _set_timeout() int | NoneView on GitHub
- activate(*args: Any, **kwargs: Any) AnyView on GitHub
- disable(*args: Any, **kwargs: Any) AnyView on GitHub
- property is_healthy: AnyView on GitHub
- property is_running: AnyView on GitHub
- keepalive(*args: Any, **kwargs: Any) AnyView on GitHub
- reload_config(*args: Any, **kwargs: Any) AnyView on GitHub
- exception patroni.watchdog.base.WatchdogError(value: Any)View on GitHub
Bases:
PatroniExceptionAny problem faced while managing a watchdog device.