Alexander Kukushkin
f6d168f65e
Create connection users
2015-05-18 10:36:09 +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
2fd81a5135
Merge branch 'master' of github.com:CyberDem0n/governor into features/refactoring
2015-05-15 11:39:25 +02: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
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
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
Oleksii Kliukin
609a4b2fc6
loop until we reap all terminated children.
2015-05-13 12:22:17 +02:00
Oleksii Kliukin
8ad751b661
add a simplest SIGCHLD handler in order to avoid zombies in the docker container governed by the script
2015-05-13 10:05:12 +02:00
Christopher Winslett
a1bc07db33
use TTLs with member listing to keep a current list of cluster members
2015-05-12 16:33:32 -07:00
Feike Steenbergen
2b56379b85
Change default port for the health check to 8008.
2015-05-12 15:48:30 +02:00
Feike Steenbergen
362b6b4fa2
Made healtcheck port configurable, fixed standalone status page.
2015-05-12 14:48:40 +02:00
Alexander Kukushkin
6043bf8c75
Fix imports
2015-05-12 14:07:10 +02:00
Alexander Kukushkin
788f65b406
Merge branch 'master' of github.com:CyberDem0n/governor into features/refactoring
...
Conflicts:
governor.py
2015-05-12 14:04:25 +02:00
Alexander Kukushkin
8b38dbd2b5
Put governor code into class and implement sigterm processing handler
2015-05-12 13:48:06 +02:00
Alexander Kukushkin
17112992d0
Merge branch 'master' of github.com:zalando/governor into features/refactoring
...
Conflicts:
governor.py
2015-05-12 12:24:09 +02:00
Oleksii Kliukin
35b111083c
Change the governor health check default port to 8008 in order to avoid a conflict with etcd proxy.
2015-05-11 17:55:00 +02:00
Alexander Kukushkin
1370923e84
Merge branch 'master' of github.com:CyberDem0n/governor into features/refactoring
2015-05-11 16:58:26 +02:00
Alexander Kukushkin
e2faf641d5
Start slave with the correct recovery.conf on governor start
...
Also governor is able to pick up already running master and slave
instances without restarting them.
In case is you have a lock and postgres is not running behaviour remains
the same: it will start master in read only mode and then promote if it
still has the lock.
2015-05-11 16:50:21 +02:00
Alexander Kukushkin
eb1721f65f
Minimize amount of requests to etcd
2015-05-11 15:15:08 +02:00
Feike Steenbergen
e7adb69503
Start the http request handler for load balancing as a thread in Governor.
...
When not running standalone, some better referencing to the Postgresql instance was needed.
2015-05-11 13:11:09 +02:00
Alexander Kukushkin
b3d6997289
Merge branch 'master' of github.com:CyberDem0n/governor into features/refactoring
2015-05-11 09:54:28 +02:00
Alexander Kukushkin
0b288a7f3e
Track list of already existing physical replication slots
...
Drop replication slot when it was removed from etcd.
Execute pg_create_physical_replication_slot only when something new appeared in etcd.
2015-05-11 09:48:15 +02:00
Alexander Kukushkin
d9f3b232c5
Merge branch 'master' of github.com:CyberDem0n/governor into features/refactoring
...
Conflicts:
helpers/postgresql.py
2015-05-08 13:36:49 +02:00
Alexander Kukushkin
810808a68a
Format code according to pep8.
...
replace get_client_path("/members?recursive=true") with members()
replace do-plpgsq block by simple sql
2015-05-08 12:44:28 +02:00
Alexander Kukushkin
1d5f3b1fff
Do not write primary_conninfo into recovery.conf during start
2015-05-06 16:21:49 +02:00
Oleksii Kliukin
10dbf990f1
Allow md5 connections from outside and create connection roles.
...
Create a superuser role with a given name and password (or change
the postgres role if the name is not given). Also, create an admin
role with the name and the password provided. The admin role has
CREATEDB and CREATEROLE permisssions, effectively making it the
most powerful role after the superuser.
2015-04-30 10:58:07 +02:00
Oleksii Kliukin
8184efbf45
Add an option to use AWS instance address in a PostgreSQL connection string.
...
When PostgreSQL is running inside the docker container, it should provide
the address of the host it's running on and not the address from inside
of the container to the outside world.
2015-04-29 12:54:29 +02:00
Christopher Grim
b979c12c9d
Use timestamped logs
2015-04-03 17:27:47 -04:00
Anthony Scalisi
f167bbaddc
python tweaks
2015-03-26 12:35:20 -07:00
Christopher Winslett
64b54dda39
change to governor name
2015-03-18 11:35:17 -07:00