-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mypy:
pglookout/pglookout.py
[BF-1560]
- Loading branch information
Samuel Giffard
committed
Mar 23, 2023
1 parent
9b4e13f
commit d0304b6
Showing
7 changed files
with
355 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (c) 2023 Aiven, Helsinki, Finland. https://aiven.io/ | ||
from typing import Final | ||
|
||
WARNING_REPLICATION_TIME_LAG: Final[float] = 30.0 | ||
MAX_FAILOVER_REPLICATION_TIME_LAG: Final[float] = 120.0 | ||
REPLICATION_CATCHUP_TIMEOUT: Final[float] = 300.0 | ||
MISSING_MASTER_FROM_CONFIG_TIMEOUT: Final[float] = 15.0 | ||
MAINTENANCE_MODE_FILE: Final[str] = "/tmp/pglookout_maintenance_mode_file" | ||
PG_DATA_DIRECTORY: Final[str] = "/var/lib/pgsql/data" | ||
JSON_STATE_FILE_PATH: Final[str] = "/tmp/pglookout_state.json" |
Oops, something went wrong.