forked from wal-g/wal-g
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Postgres] Add failover storages for wal-push and wal-fetch (wal-g#1466)
- Loading branch information
1 parent
2ef3cde
commit 35987d1
Showing
39 changed files
with
979 additions
and
184 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
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
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
3 changes: 3 additions & 0 deletions
3
docker/pg_tests/Dockerfile_full_backup_failover_storages_test
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,3 @@ | ||
FROM wal-g/docker_prefix:latest | ||
|
||
CMD su postgres -c "/tmp/tests/full_backup_failover_storages_test.sh" |
4 changes: 4 additions & 0 deletions
4
docker/pg_tests/scripts/configs/full_backup_failover_storages_test_config.json
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,4 @@ | ||
"WALE_S3_PREFIX": "s3://failoverstoragebucket", | ||
"WALG_DELTA_MAX_STEPS": "6", | ||
"WALG_PGP_KEY_PATH": "/tmp/PGP_KEY", | ||
"WALG_LOG_LEVEL": "DEVEL" |
17 changes: 17 additions & 0 deletions
17
docker/pg_tests/scripts/configs/full_backup_failover_storages_test_config_failover.json
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,17 @@ | ||
"WALE_S3_PREFIX": "s3://nonexistingbucket", | ||
"WALG_DELTA_MAX_STEPS": "6", | ||
"WALG_LOG_LEVEL": "DEVEL", | ||
"WALG_PGP_KEY_PATH": "/tmp/PGP_KEY", | ||
"WALG_FAILOVER_STORAGES": { | ||
"not_working_failover": { | ||
"AWS_SECRET_ACCESS_KEY": "useless_access_key", | ||
"AWS_ACCESS_KEY_ID": "incorrect_access_key_id", | ||
"WALE_S3_PREFIX": "s3://some-useless-s3-prefix" | ||
}, | ||
"good_failover": { | ||
"AWS_SECRET_ACCESS_KEY": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY", | ||
"AWS_ACCESS_KEY_ID": "AKIAIOSFODNN7EXAMPLE", | ||
"WALE_S3_PREFIX": "s3://failoverstoragebucket" | ||
} | ||
}, | ||
"WALG_FAILOVER_STORAGES_CHECK_TIMEOUT": "5s" |
Oops, something went wrong.