Alexander Kukushkin
fa22d91e05
Move some basic methods implementation into parent exception class
2015-09-08 12:41:48 +02:00
Feike Steenbergen
496f91fea0
Update README.rst
...
Formatting issue with the header
2015-09-08 11:59:08 +02:00
Feike Steenbergen
28f5839ac2
Make git add part of the release.sh again.
2015-09-07 14:00:05 +02:00
Feike Steenbergen
cdccebd2d1
Point to api for listing of Docker images for Patroni (Issue #14 )
2015-09-07 13:53:48 +02:00
Feike Steenbergen
348e8e8086
Reverted pip installation in Dockerfile
...
As the Dockerfile is there mainly to support developers, we want to build the Dockerfile using the current working
directory instead of a previously released version.
2015-09-07 13:47:05 +02:00
Alexander Kukushkin
5ea0ab70f5
Add patroni.py executable file
2015-09-07 10:37:10 +02:00
Alexander Kukushkin
c9577e1a62
Merge Feike-s and my work on pypi package alltogether
2015-09-06 12:56:13 +02:00
Alexander Kukushkin
1774d6e31a
Merge branches watch-leader-key and package-refactoring
2015-09-05 16:09:28 +02:00
Alexander Kukushkin
3a4a2dbb94
Merge branch 'master' of github.com:zalando/patroni into feature/watch-leader-key
2015-09-05 15:31:37 +02:00
Alexander Kukushkin
ac2740eeb9
Drop unused variable server_version
2015-09-05 15:22:38 +02:00
Alexander Kukushkin
7cce02ae95
Always use pg_xlog_location_diff to calculate bytes written to xlog
...
Drop unused functionality (lsn_to_bytes, bytes_to_lsn)
Revert some changes.
2015-09-05 15:19:17 +02:00
Alexander Kukushkin
9894a7ce2a
Merge pull request #20 from zalando/feature/retry
...
Retry requests to configuration store
2015-09-04 16:24:43 +02:00
Alexander Kukushkin
650e244904
Refactor directory structure in preparation for building pypi-package
2015-09-04 16:06:44 +02:00
Alexander Kukushkin
a69565fc5f
Set Postgresql._SERVER_VERSION only after real connect.
2015-09-04 13:22:44 +02:00
Alexander Kukushkin
c913c8ad92
Calculate xlog bytes with using lsn_to_bytes method
...
This method behaves differently depending on server version and will
allow to use patroni with postgres older than 9.3
2015-09-04 12:11:55 +02:00
Alexander Kukushkin
8b9e99090f
Move lsn_to_bytes and bytes_to_lsn into Postgresql class
...
and make their behavior version specific
2015-09-04 10:41:59 +02:00
Alexander Kukushkin
9361732722
Fix pep8 formatting and unit-tests
2015-09-04 08:29:16 +02:00
Alexander Kukushkin
df06860bde
Merge pull request #23 from pgexperts/93compat
...
93compat
2015-09-04 08:14:13 +02:00
Josh Berkus
5612cd0280
Changed use_slots to be backwards compatible by using config.get() per PR feedback.
2015-09-03 22:20:27 -07:00
Josh Berkus
aeea7196bd
Fixing flake8 issue.
2015-09-03 21:46:06 -07:00
Josh Berkus
6df56fc6cc
Another try at the is_healthiest_node bugfix.
2015-09-03 21:41:33 -07:00
Josh Berkus
2b62adae21
Fixed inherited bug in is_healthiest_node() with LSN position.
2015-09-03 21:22:59 -07:00
Josh Berkus
bdb1454e35
Another commit because flake8 is a huge waste of time.
2015-09-03 21:10:30 -07:00
Josh Berkus
5f4a9ffabb
Text spacing changes in an attempt to get flake8 to stop complaining.
2015-09-03 21:04:42 -07:00
Josh Berkus
f5627a498e
Fixed test_postgresql.py to include use_slots.
2015-09-03 18:41:30 -07:00
Josh Berkus
f2338e074c
Added documentation, sample config for optional replication slots.
2015-09-03 18:16:44 -07:00
Josh Berkus
2b801a3ccc
Next 9.3 compatibility commit. Removed pg_lsn, since it's not available in 9.3.
2015-09-03 18:03:25 -07:00
Josh Berkus
330f9023ee
Interim commit to make replication slots optional for 9.3 users.
2015-09-03 17:46:41 -07:00
Alexander Kukushkin
50420771ce
Retry when executing take_leader method.
2015-09-03 16:53:15 +02:00
Alexander Kukushkin
2f6399de27
More unit-tests for etcd
2015-09-03 16:35:58 +02:00
Alexander Kukushkin
66286733b2
Enable retry functionality for etcd with default deadline=10 seconds
2015-09-03 15:03:09 +02:00
Alexander Kukushkin
8d99fd17a0
Merge branch 'master' of github.com:zalando/patroni into feature/retry
2015-09-03 13:18:58 +02:00
Alexander Kukushkin
e8b2fb112b
It is better to reap childs before running relatively long sleep
v0.1
2015-09-03 11:50:58 +02:00
Alexander Kukushkin
58410db9dd
Implemented Retry class inspired by KazooRetry
2015-09-03 11:47:08 +02:00
Feike Steenbergen
147d7c8566
Fix heading of the README
2015-09-03 10:45:06 +02:00
Feike Steenbergen
8984d99116
Make helpers into a module, so it can be imported.
2015-09-03 10:38:21 +02:00
Feike Steenbergen
04d6f7b418
Make scripts into a module, so it can be imported.
2015-09-03 10:34:37 +02:00
Alexander Kukushkin
7456662eef
Merge branch 'master' of github.com:zalando/patroni into feature/watch-leader-key
2015-09-03 10:33:26 +02:00
Feike Steenbergen
b1afd5ddc4
Refactoring to enable package building and succesfull installation of the Patroni package.
...
Build the first packages of patroni and added them to pypi.python.org
Update Dockerfile to use pip to install patroni.
2015-09-03 09:52:01 +02:00
Alexander Kukushkin
a670b598f4
Implement unit test for reap_children function
2015-09-02 16:48:40 +02:00
Oleksii Kliukin
da132ca1fc
Do not rely on env vars for superuser role name.
...
Environment variables may not be set in Docker.
Instead, obtain the superuser role from the database.
2015-09-02 15:20:16 +02:00
Alexander Kukushkin
7eed8521d0
Merge branch 'master' of github.com:zalando/patroni into feature/watch-leader-key
2015-09-02 13:33:44 +02:00
Alexander Kukushkin
a7f7a7bf58
Remove spurious print
2015-09-02 13:33:07 +02:00
Alexander Kukushkin
7cdb5f7138
Merge branch 'master' of github.com:zalando/patroni into feature/watch-leader-key
2015-09-02 13:28:14 +02:00
Alexander Kukushkin
8bc9d00391
Code cleanup
2015-09-02 13:26:40 +02:00
Alexander Kukushkin
0beecb97a7
Reschedule next ha loop after promote
2015-09-02 13:25:33 +02:00
Oleksii Kliukin
a5f2ab6f88
Better SIGCHLD handling, use correct user name.
...
- Defer SIGCHLD processing until the later stage in order to allow
subprocess to run its own reaping of children and return the correct
exit code from the process called.
- When changing the password at startup, do not assume the user postgres.
2015-09-02 12:56:23 +02:00
Oleksii Kliukin
3e4d2df33b
put a real restore/replication command inside the test postgres.yaml files
2015-09-02 12:04:39 +02:00
Alexander Kukushkin
c6abf85740
Bugfix: sleep method was renamed to watch
2015-09-02 08:42:47 +02:00
Alexander Kukushkin
eb85caa3bd
Remove spurious print
2015-09-01 17:16:15 +02:00