improve Patroni config sync (#1635)

* improve Patroni config sync
* collect new and updated slots to patch patroni
* refactor httpGet in Patroni and extend unit tests
* GetMemberData should call the patroni endpoint
* add PATCH test
This commit is contained in:
Felix Kunde
2021-10-13 17:17:26 +02:00
committed by GitHub
parent 6dc239aa32
commit 2a33bf3313
6 changed files with 225 additions and 91 deletions
+2
View File
@@ -8,6 +8,8 @@ const (
PostgresDataMount = "/home/postgres/pgdata"
PostgresDataPath = PostgresDataMount + "/pgroot"
PatroniPGParametersParameterName = "parameters"
PostgresConnectRetryTimeout = 2 * time.Minute
PostgresConnectTimeout = 15 * time.Second