Alexander Kukushkin
57c6641683
Reimplement pg_ctl status in python
...
subprocess.call was causing problems when server is running under high
load.
2016-06-09 08:28:11 +02:00
Alexander Kukushkin
53891ee98e
Merge branch 'master' of github.com:zalando/patroni into feature/dynamic-configuration
2016-06-06 10:50:49 +02:00
Alexander Kukushkin
24822bd9ac
Returning 304 for POST, PATCH, PUT is not good idea
2016-06-06 10:50:42 +02:00
Alexander Kukushkin
10e4e8354b
Merge pull request #204 from zalando/bugfix/password-visibility
...
Remove password from backup connection string
2016-06-06 10:49:29 +02:00
Alexander Kukushkin
789ce297e9
Merge pull request #206 from zalando/bugfix/demote-follow
...
BUGFIX: demote is already running in a thread
2016-06-06 10:49:19 +02:00
Alexander Kukushkin
40529d718c
Get rid from unused variable
2016-06-03 12:28:31 +02:00
Alexander Kukushkin
16771f37d5
Compare old and new user-defined-parameters to avoid reload
...
when parameters didn't changed.
Plus get wal_segment_size from pg_settings instead of hardcoding it's value.
2016-06-03 12:11:14 +02:00
Alexander Kukushkin
d536b4b62a
Rollback changes regarding config_file
...
It could be set only on the postgres command line anyway.
2016-06-02 16:45:17 +02:00
Alexander Kukushkin
2e5ce4a303
"Smart" compare of postgres parameters
...
to decide do we need to reload/restart
2016-06-02 16:34:34 +02:00
Alexander Kukushkin
ebb9e252d8
Rename restart_pending to pending_restart for compatibility
2016-06-02 09:31:30 +02:00
Alexander Kukushkin
2d78ef0922
CREATE/ALTER USER=>ROLE
2016-06-02 09:28:11 +02:00
Alexander Kukushkin
1c30948ef9
Implement PUT /config and enhance some checks
2016-06-01 17:06:31 +02:00
Alexander Kukushkin
c8b5003b86
Set __do_not_watch flag when ttl needs to be changed
...
it's more readable comparing to `reset_cluster`
2016-06-01 13:41:49 +02:00
Alexander Kukushkin
aad2433440
Make QuantifiedCode happier
2016-06-01 10:04:50 +02:00
Alexander Kukushkin
140917ba37
Fix a typo
2016-06-01 09:27:00 +02:00
Alexander Kukushkin
60f7759c5e
Small optimization
...
Don't compare values of configuration if modify_index didn't changed
2016-06-01 09:21:42 +02:00
Alexander Kukushkin
a55cbff865
Compare configuration objects "smart" and "deep"
2016-05-31 16:16:29 +02:00
Alexander Kukushkin
1c2e1755cb
Explicitly cast some parameters from DCS to int (ttl, loop_wait, etc...)
2016-05-31 15:51:49 +02:00
Alexander Kukushkin
e10873dd9c
RestApiHandler._patch_config returns True if configuration was changed
2016-05-31 15:49:55 +02:00
Alexander Kukushkin
1cd42d4e47
Get rid from some stupid logic with options=True/False
...
And some other tricks with overriding handle_one_request and finish
methods from the parent class which were necessary only to make OPTIONS
request from haproxy work with python2, but in fact it was still not
working with python3. Instead of doing all the magic we should simply
give to haproxy what it wants to get: HTTP response code and nothing
more.
2016-05-31 14:42:00 +02:00
Alexander Kukushkin
d47671e5b6
ALTER USER does not add LOGIN to the non-login role
2016-05-31 13:18:18 +02:00
Alexander Kukushkin
a40377fac1
rename options to only_status_code
2016-05-31 10:34:21 +02:00
Alexander Kukushkin
b3ada161cf
Implement possibility to configure retry_timeout globally
...
Previously it was hardcoded all over the place.
2016-05-31 10:30:53 +02:00
Alexander Kukushkin
515e9e34f4
Update SETTINGS.rst accordingly to the new config
2016-05-31 08:58:21 +02:00
Alexander Kukushkin
25f4f943ae
Merge branch 'master' of github.com:zalando/patroni into feature/dynamic-configuration
2016-05-31 08:22:07 +02:00
Alexander Kukushkin
9379c036d5
Add comments to set_ttl method
...
To explain how it's supposed to work and why it manupulates with the
cache of `Cluster` object (calls `reset_cluster`)
2016-05-30 17:02:29 +02:00
Oleksii Kliukin
fb29b8426a
Remove the obsolete diagram.
2016-05-30 16:22:00 +02:00
Oleksii Kliukin
677bd05369
Add badges back, remove the reference to the outdated flow diagram.
2016-05-30 16:20:58 +02:00
Oleksii Kliukin
1c6113eb97
Remove the quote
2016-05-30 16:18:00 +02:00
Oleksii Kliukin
455b7951b3
Fix the description of the zookeeper and initdb.
2016-05-30 16:17:17 +02:00
Lauri at Zalando
79206b1fc4
Update README.rst
2016-05-30 15:58:34 +02:00
Oleksii Kliukin
3508b33f8d
Remove the done items
2016-05-30 15:55:55 +02:00
Oleksii Kliukin
7d7cd2b4e2
Merge pull request #207 from zalando/LappleApple-patch-1
...
Edited README + added new SETTINGS.rst file.
2016-05-30 15:37:32 +02:00
Lauri at Zalando
c346e31d50
Edited README + added new SETTINGS.rst file
...
Check it out and let me know what you think. Here is the Settings file with the YAML Config Settings:
https://github.com/zalando/patroni/blob/master/SETTINGS.rst
We still need to do a bit more work on the intro paragraph to make Patroni's advantages/benefits a bit more clear. I also might do a bit more magic with the headers/subheads, to stack things a bit more clearly.
2016-05-30 15:25:58 +02:00
Lauri at Zalando
260cb17794
Update SETTINGS.rst
2016-05-30 14:51:29 +02:00
Lauri at Zalando
00cadde425
Update SETTINGS.rst
2016-05-30 14:46:53 +02:00
Lauri at Zalando
0f31a9918a
Update SETTINGS.rst
2016-05-30 14:45:47 +02:00
Lauri at Zalando
9a12f6371c
Update SETTINGS.rst
2016-05-30 14:44:16 +02:00
Lauri at Zalando
e30755ddeb
Update SETTINGS.rst
2016-05-30 14:41:56 +02:00
Lauri at Zalando
bb00ef40b6
Update SETTINGS.rst
2016-05-30 14:35:15 +02:00
Lauri at Zalando
e84b633abd
Update SETTINGS.rst
2016-05-30 14:33:50 +02:00
Lauri at Zalando
6fddabf48c
Update SETTINGS.rst
2016-05-30 14:31:31 +02:00
Lauri at Zalando
9b34f000a8
Create SETTINGS.rst
2016-05-30 14:29:35 +02:00
Alexander Kukushkin
b7359e7b0d
Rollback all changes to basic_replication.feature
...
since I moved all functionality to patroni_api.feature
2016-05-30 12:40:52 +02:00
Alexander Kukushkin
f7912991a8
Reshuffle acceptance tests one more time
2016-05-30 12:37:14 +02:00
Alexander Kukushkin
33b6c88fd5
state_handler.follow needs to know cluster.leader
2016-05-30 11:59:58 +02:00
Alexander Kukushkin
e085c866dc
Reshuffle acceptance tests
...
Move dynamic config tests from basic_replication to patroni_api
2016-05-30 11:30:41 +02:00
Alexander Kukushkin
dd70a3f325
BUGFIX: demote is already running in a thread
...
It should not call `recover` but `state_handler.follow` directly
(like it is already done in the `clone`).
Otherwise it tries to create a new thread and all async functionality
became borken...
2016-05-30 11:06:16 +02:00
Alexander Kukushkin
619699269b
Merge pull request #203 from zalando/bugfix/pg_rewind
...
Bugfix: pg_rewind can work only with master
2016-05-30 11:01:49 +02:00
Oleksii Kliukin
ea29760bd2
Clarify our relationship with the Governor.
2016-05-30 09:52:03 +02:00