patroni.scripts.wale_restore module¶
- class patroni.scripts.wale_restore.ExitCode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)¶
Bases:
IntEnum
- FAIL = 2¶
Don’t try again unless configuration changes
- RETRY_LATER = 1¶
External issue, retry later
- SUCCESS = 0¶
Succeeded
- class patroni.scripts.wale_restore.WALEConfig(env_dir, threshold_mb, threshold_pct, cmd)¶
Bases:
NamedTuple
- _asdict()¶
Return a new dict which maps field names to their values.
- _field_defaults = {}¶
- _fields = ('env_dir', 'threshold_mb', 'threshold_pct', 'cmd')¶
- classmethod _make(iterable)¶
Make a new WALEConfig object from a sequence or iterable
- _replace(**kwds)¶
Return a new WALEConfig object replacing specified fields with new values
- class patroni.scripts.wale_restore.WALERestore(scope: str, datadir: str, connstring: str, env_dir: str, threshold_mb: int, threshold_pct: int, use_iam: int, no_leader: bool, retries: int)¶
Bases:
object
- __init__(scope: str, datadir: str, connstring: str, env_dir: str, threshold_mb: int, threshold_pct: int, use_iam: int, no_leader: bool, retries: int) None ¶