Denis Laxalde
95f21a133d
Drop superfluous type annotation of 'self'
...
See https://mypy.readthedocs.io/en/stable/cheat_sheet_py3.html#classes
> For instance methods, omit type for "self"
2023-10-03 09:39:40 +02:00
benoit
259f04587b
Add a node_is_leader service to check for the leader states
...
It's possible to check for any kind of leader of specifically for a
standby leader.
2023-08-23 18:22:49 +02:00
benoit
2bcddf9f87
Add a --is-sync and --is-async to node_is_replica
2023-08-23 15:41:15 +02:00
benoit
df744bf7dc
Use isort to automatically sort imports
2023-03-20 14:56:11 +01:00
benoit
dff95eae2f
Fixing logging issues in the previous modifications
2023-03-20 12:25:32 +01:00
benoit
2443505ad6
Change logging
...
We now use our own logger.
When debug is set (-vvv), we also display urllib3's debug info.
2023-03-20 12:25:32 +01:00
benoit
9cd80f5af8
Move from urllib3 to requests
2023-03-20 12:25:32 +01:00
benoit
908669f073
Add a --save
option when state files are used
...
The checks `cluster_config_has_changed` and `node_tl_has_changed` use a
state file to store the previous value of the config hash and the
timeline.
Previously the check would fail if something changed, but the new value
would be saved directly. This behavious has changed. The new value
is saved only if `--save` is passed to the check.
The mimics the way [check_pgactivity] manages this kind of checks.
[check_pgactivity]: https://github.com/OPMDG/check_pgactivity
2023-03-02 17:32:18 +01:00
benoit
64d87d505e
Black run
2022-07-11 15:16:19 +02:00
benoit
aa1de928d3
An attempt at correctly ordering imports
2022-02-07 15:11:05 +01:00
benoit
9ed9b6466d
Read state file in cli to pass the info to the checks and summaries
2022-02-07 15:01:50 +01:00
benoit
d4e974da51
--max-lag additions and fixups
...
* add --max-lag to cluster_has_replica
* change --lag to --max-lag in node_is_replica
* update tests
* update README.md
2021-08-13 11:00:43 +02:00
benoit
db3f008b81
More Typing
2021-08-12 13:07:28 +02:00
benoit
1e6adc6a1a
First working version
2021-08-12 13:07:10 +02:00