Alexander Kukushkin
d1e47c8ccf
Update README.md
2015-07-15 16:17:38 +02:00
Alexander Kukushkin
fcead3aed9
Update README.md
2015-07-15 15:25:20 +02:00
Alexander Kukushkin
66f4f790d2
Improve test coverage
2015-07-15 12:49:17 +02:00
Alexander Kukushkin
6d1a0d2a2c
Merge pull request #2 from zalando/feature/exhibitor
...
Feature/exhibitor
2015-07-13 11:14:59 +02:00
Alexander Kukushkin
71fce312c2
Enforce flake8 check
2015-07-10 10:53:04 +02:00
Alexander Kukushkin
dcad7a3229
Add exhibitor support
...
List of ZooKeeper nodes could be periodically updated from Exhibitor
Since we know that each Exhibitor accompanies one ZooKeeper node, list
of Exhibitor nodes also maintained. Exhibitor assumes that all ZooKeeper
nodes are using the same client port, 2181. The same assumption is valid
for Exhibitor, it should always listen on the same port on all nodes.
Original list of Exhibitor nodes is cached and used as a fallback when
it failed ito query information with using maintained list.
2015-07-10 10:46:33 +02:00
Feike Steenbergen
76b22e7ad8
Update README.md
2015-07-08 12:23:53 +02:00
Alexander Kukushkin
e2def822b7
Delete haproxy_status.sh
2015-07-08 11:50:16 +02:00
Alexander Kukushkin
b36764b517
Update README.md
2015-07-08 11:49:16 +02:00
Alexander Kukushkin
74c3955d34
Merge pull request #29 from zalando/patroni
...
Rename governor into patroni
2015-07-08 11:24:31 +02:00
Alexander Kukushkin
cc291ecf1b
Add Zalando to copyright
2015-07-08 11:16:33 +02:00
Alexander Kukushkin
c49580d6a7
Rename governor into patroni
2015-07-08 10:37:35 +02:00
Alexander Kukushkin
c24087ebd7
Merge pull request #28 from zalando/feature/multidcs
...
Feature/multidcs
2015-07-08 10:19:40 +02:00
Alexander Kukushkin
259c3ac341
Merge branch 'multidcs' of github.com:CyberDem0n/governor into feature/multidcs
2015-07-08 08:54:02 +02:00
Alexander Kukushkin
00aa99b38f
Revert restapi port to 8009
2015-07-08 08:53:51 +02:00
Alexander Kukushkin
a1f11fe2fe
Remove unneeded class CurrentLeaderError
2015-07-08 08:53:08 +02:00
Alexander Kukushkin
54400c6dec
Merge branch 'multidcs' of github.com:CyberDem0n/governor into feature/multidcs
...
Conflicts:
governor.py
tests/test_governor.py
tests/test_postgresql.py
2015-07-08 08:47:26 +02:00
Alexander Kukushkin
43b12af3a7
Implement possibility to work against ZooKeeper
...
This implementation is using the same interface (AbstractDCS) as Etcd
class. It means that there should be no problem to implement another
plugin to work agains Consul for example.
2015-07-07 12:45:14 +02:00
Alexander Kukushkin
7445590546
Keep node name in AbstractDCS class
...
It eliminates need to pass this name into most of the methods
2015-07-07 12:26:52 +02:00
Alexander Kukushkin
c5edcb589b
return result of last_operation as a string
2015-07-07 12:24:02 +02:00
Alexander Kukushkin
1531304baa
return result of last_operation as a string
2015-07-07 12:23:06 +02:00
Alexander Kukushkin
ae689a2f83
Rename ha.etcd into ha.dcs
2015-07-02 15:33:21 +02:00
Alexander Kukushkin
cc71906009
Inherit Etcd from abstract class
2015-07-02 15:15:07 +02:00
Alexander Kukushkin
6079c8359f
refactoring: preparing to support ZooKeeper
...
move some common classes info separate file in preparation to support distributed configuration store other then Etcd
2015-07-02 12:06:07 +02:00
Alexander Kukushkin
c7210d35ff
Merge pull request #27 from CyberDem0n/master
...
BUGFIX: keep list of replication slots on slaves empty
2015-06-25 14:20:10 +02:00
Alexander Kukushkin
687fb7da10
Remove haproxy_status.sh and change haproxy.cfg to work directly with the governor
2015-06-25 14:17:51 +02:00
Alexander Kukushkin
a723dbbed4
Merge branch 'master' of github.com:compose/governor
2015-06-25 14:15:52 +02:00
Alexander Kukushkin
9732106e5d
BUGFIX: keep list of replication slots on slaves empty
...
Otherwise slaves accumulate wal files...
2015-06-25 14:01:06 +02:00
Alexander Kukushkin
ffdd3b3d8e
Merge branch 'master' of github.com:CyberDem0n/governor
2015-06-24 16:42:08 +02:00
Alexander Kukushkin
a02f9d497f
BUGFIX: it can be that /members request to etcd returns somesing strange with status_code 200
2015-06-24 16:41:37 +02:00
Alexander Kukushkin
10d992a974
Merge pull request #26 from CyberDem0n/master
...
Reduce amount of writes into etcd
2015-06-24 16:39:50 +02:00
Alexander Kukushkin
9fc0fa9f57
Merge pull request #4 from CyberDem0n/etcd-cluster-support
...
real_ttl method will return -1 when expiration is not defined
2015-06-23 17:16:26 +02:00
Alexander Kukushkin
f7be52f63a
real_ttl method will return -1 when expiration is not defined
2015-06-23 17:15:37 +02:00
Alexander Kukushkin
2e62f4a2bf
Merge pull request #3 from CyberDem0n/etcd-cluster-support
...
Etcd cluster support
2015-06-23 14:31:12 +02:00
Alexander Kukushkin
b7c73fdba8
Rename hostname to name in a Member
2015-06-23 14:07:00 +02:00
Alexander Kukushkin
744026b4bb
Do not update member TTL when it is far from being expired
2015-06-23 14:02:32 +02:00
Christopher Winslett
4871a25742
typo in Readme
2015-06-22 14:15:40 -07:00
Feike Steenbergen
526346a9c1
Dockerfile: Reduce size and dependency, update etcd.
...
The Dockerfile now only builds upon the publicly available Ubuntu docker image, thereby reducing the size of the image.
etcd release 2.0.12 was released today as well, updated that dependency.
2015-06-17 14:08:51 +02:00
Alexander Kukushkin
44e06b4cff
Add expiration field into Member
2015-06-10 14:22:11 +02:00
Alexander Kukushkin
275e18e58a
Refactor tests
2015-06-10 14:21:23 +02:00
Alexander Kukushkin
72b980bd97
Merge branch 'etcd-cluster-support' of github.com:CyberDem0n/governor
2015-06-10 11:58:48 +02:00
Alexander Kukushkin
971bc3b6e8
Increase verbosity of failed PUT and DELETE requests. Hope will help to debug some etcd related issues
2015-06-10 11:56:16 +02:00
Alexander Kukushkin
3f47e9e362
Merge branch 'etcd-cluster-support' of github.com:CyberDem0n/governor
2015-06-09 15:47:06 +02:00
Alexander Kukushkin
a64dad267e
Bugfix: target field of SRV object should be casted to string
2015-06-09 15:46:34 +02:00
Feike Steenbergen
476685e93a
Merge pull request #25 from zalando/etcd-cluster-support
...
Support work with etcd as a cluster
2015-06-09 14:49:34 +02:00
Alexander Kukushkin
4fa9dbcf03
Merge branch 'etcd-cluster-support' of github.com:zalando/governor into etcd-cluster-support
2015-06-09 12:31:52 +02:00
Alexander Kukushkin
de7630c65c
Merge branch 'etcd-cluster-support' of github.com:CyberDem0n/governor into etcd-cluster-support
2015-06-09 12:31:09 +02:00
Alexander Kukushkin
57914821d0
Randomize list of etcd cluster members
2015-06-09 12:30:58 +02:00
Alexander Kukushkin
a2988361c5
Retry with host from config when it failed to resolve SRV
2015-06-09 12:30:16 +02:00
Feike Steenbergen
e734ac6b1d
Add pythondns to the Dockerfile.
2015-06-09 12:25:30 +02:00