Oleksii Kliukin
8a6a7b4cea
fix a typo.
2015-05-20 11:47:20 +02:00
Oleksii Kliukin
75b30d8014
save postgresql.conf not only on initdb, but on any start of the server.
2015-05-20 11:47:19 +02:00
Oleksii Kliukin
7a2be131bd
save/restore postgresql.conf for WAL-e backups, since WAL-E excludes postgresql.conf from the backup/restore.
2015-05-20 11:47:19 +02:00
Oleksii Kliukin
d4b366a7e2
some arithmetics and type conversion fixes.
2015-05-20 11:46:27 +02:00
Oleksii Kliukin
594efe3b64
fix a typo.
2015-05-20 11:46:26 +02:00
Oleksii Kliukin
19a04a81da
split arguments for check_output when checking for the latest backup.
2015-05-20 11:46:26 +02:00
Oleksii Kliukin
9e82c3ebd7
add functionality to fetch base backup from wal-e for the new replica creation and code to decide whether to use wal-e or pg_basebackup.
2015-05-20 11:46:26 +02:00
Feike Steenbergen
24c29aee04
Add hostssl entry to pg_hba
2015-05-19 13:03:14 +02:00
Feike Steenbergen
ede9a2c464
Merge pull request #9 from zalando/features/refactoring
...
listen can contain more then one ip separated by comma
2015-05-18 16:55:35 +02:00
Feike Steenbergen
f6fc60800a
Close connection when querying other members of cluster.
2015-05-18 16:54:36 +02:00
Alexander Kukushkin
df855bb8de
Merge branch 'master' of github.com:CyberDem0n/governor into features/refactoring
2015-05-18 14:39:39 +02:00
Alexander Kukushkin
520de12232
Remove debug print
2015-05-18 14:39:14 +02:00
Alexander Kukushkin
a9b50b4e2e
Merge branch 'master' of github.com:CyberDem0n/governor
2015-05-18 14:34:17 +02:00
Alexander Kukushkin
ce936ceee2
Merge branch 'master' of github.com:compose/governor
...
Conflicts:
governor.py
helpers/ha.py
helpers/postgresql.py
2015-05-18 14:33:27 +02:00
Alexander Kukushkin
422512880f
last_leader_operation is the propery of Cluster object and the value is set in get_cluster method
2015-05-18 13:43:14 +02:00
Alexander Kukushkin
9a1f0d1bd1
Merge branch 'master' of github.com:CyberDem0n/governor into features/refactoring
...
Conflicts:
helpers/postgresql.py
2015-05-18 13:38:46 +02:00
Feike Steenbergen
b8ce6794de
Initialize cluster with encoding=UTF8 by default.
2015-05-18 13:35:43 +02:00
Alexander Kukushkin
b24fb0488c
last_leader_operation is the propery of Cluster object and the value is set in get_cluster method
2015-05-18 13:33:27 +02:00
Alexander Kukushkin
d221d1de1c
listen_address can have more then one value separated by comma. We will use the first one to connect
2015-05-18 10:53:27 +02:00
Alexander Kukushkin
f6d168f65e
Create connection users
2015-05-18 10:36:09 +02:00
Alexander Kukushkin
e997911b8d
Merge branch 'master' of github.com:CyberDem0n/governor
...
Conflicts:
helpers/postgresql.py
2015-05-15 16:21:59 +02:00
Alexander Kukushkin
348100752b
Open connection to self via listen address
2015-05-15 16:18:31 +02:00
Feike Steenbergen
613b8793ce
Merge pull request #8 from zalando/feature/connect_address
...
Feature/connect address
2015-05-15 13:54:00 +02:00
Feike Steenbergen
0b669e0d20
Cleanup
...
Removed aws reference from Dockerfile, remove unnecessary steps.
Connect using libpq parameters, therefore providing nice application name for Governor.
2015-05-15 13:52:20 +02:00
Alexander Kukushkin
494d675f38
Merge pull request #7 from zalando/features/refactoring
...
Merge changes from compose/governer
2015-05-15 13:00:15 +02:00
Alexander Kukushkin
5ab99c6589
Get rid from all AWS references here.
...
connect_address give possibility to specify listen address and connect
address separetely, so there is no need to determine your external
address by doing requests to amazon api.
2015-05-15 12:39:05 +02:00
Alexander Kukushkin
af9ebfa3b9
Use connect_address instead of listen when building connection_string
2015-05-15 12:20:24 +02:00
Alexander Kukushkin
75ff91d017
rename connection_address to connect_address
2015-05-15 12:13:05 +02:00
Alexander Kukushkin
08865512f8
Differentiate between connection address and listen address
...
For example you can listen on 0.0.0.0 but provide service on some
didicated ip. This should cover all possible use-cases when you are
running behind firewall, load balancer or inside for example docker.
2015-05-15 12:06:04 +02:00
Alexander Kukushkin
2fd81a5135
Merge branch 'master' of github.com:CyberDem0n/governor into features/refactoring
2015-05-15 11:39:25 +02:00
Alexander Kukushkin
274bc14bfb
Do not check maximum_lag_on_failover if it is not defined in config file
2015-05-15 11:38:50 +02:00
Alexander Kukushkin
8e5beb5883
Small optimization
2015-05-15 11:25:26 +02:00
Alexander Kukushkin
9487aec842
Bugfix: get_client_path might get into infinite loop when response code is not 200
2015-05-15 11:23:02 +02:00
Christopher Winslett
a4e40959f9
fix linking syntax in README
2015-05-14 14:18:52 -07:00
Christopher Winslett
94ae8b0c0d
Merge pull request #10 from compose/support-synchronous-replication
...
Support synchronous replication
2015-05-14 14:16:48 -07:00
Christopher Winslett
bec1a3c11e
support synchronous replication
2015-05-14 14:16:18 -07:00
Christopher Winslett
96a889f358
fix logic for dead leaders returning online
...
without checking that recovery.conf exists, the prior logic would not create the recovyer.conf, and a dead leader would return to a primary state
2015-05-13 16:56:25 -07:00
Christopher Winslett
3b0ea900cd
followers without a leader based on feedback from @CyberDem0n and closes #3
2015-05-13 16:37:28 -07:00
Alexander Kukushkin
4e8a0873a7
Handle sigchld, so we can run governor and postgres inside docker safely
2015-05-13 18:05:42 +02:00
Alexander Kukushkin
e6e19359df
Bugfix, write state_handler.name into leader key
2015-05-13 18:04:27 +02:00
Alexander Kukushkin
0c040b8ce2
Merge branch 'master' of github.com:compose/governor
...
Conflicts:
governor.py
helpers/etcd.py
helpers/ha.py
helpers/postgresql.py
2015-05-13 18:01:01 +02:00
Feike Steenbergen
d33555242d
Merge pull request #6 from zalando/features/refactoring
...
Remove member and leader (is I was the master) keys from etcd on stop of governor
2015-05-13 17:17:51 +02:00
Alexander Kukushkin
b4f0909afa
Merge branch 'master' of github.com:CyberDem0n/governor into features/refactoring
2015-05-13 17:12:32 +02:00
Alexander Kukushkin
40a4192504
Remove member and leader (is I was the master) keys from etcd on stop of governor
2015-05-13 17:12:17 +02:00
Alexander Kukushkin
2541fcd3f2
Merge pull request #5 from zalando/features/refactoring
...
Features/refactoring
2015-05-13 15:37:43 +02:00
Alexander Kukushkin
3fa0476d8c
Merge branch 'master' of github.com:zalando/governor into features/refactoring
2015-05-13 14:58:54 +02:00
Oleksii Kliukin
fce99b6ec3
Merge pull request #4 from zalando/handle_sigchld
...
Handle sigchld
2015-05-13 14:58:31 +02:00
Alexander Kukushkin
b1f43c1461
Merge branch 'master' of github.com:CyberDem0n/governor into features/refactoring
...
Conflicts:
helpers/postgresql.py
2015-05-13 14:57:57 +02:00
Alexander Kukushkin
d25ad17c32
Add support of python3
2015-05-13 14:53:23 +02:00
Oleksii Kliukin
609a4b2fc6
loop until we reap all terminated children.
2015-05-13 12:22:17 +02:00