Submodules

Module contents

class patroni.watchdog. Watchdog ( config : Config ) View on GitHub

Bases: object

Facade 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 ) → None View on GitHub
_activate ( ) → bool View on GitHub
_disable ( ) → None View on GitHub
_set_timeout ( ) → int | None View on GitHub
activate ( * args : Any , ** kwargs : Any ) → Any View on GitHub
disable ( * args : Any , ** kwargs : Any ) → Any View on GitHub
property is_healthy : Any View on GitHub
property is_running : Any View on GitHub
keepalive ( * args : Any , ** kwargs : Any ) → Any View on GitHub
reload_config ( * args : Any , ** kwargs : Any ) → Any View on GitHub
exception patroni.watchdog. WatchdogError ( value : Any ) View on GitHub

Bases: PatroniException

Any problem faced while managing a watchdog device.