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
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
Alexander Kukushkin
8b5d6e83e7
fix some bugs revaled by acceptance tests
2016-05-27 17:38:19 +02:00
Alexander Kukushkin
073ef3784f
Implement PATCH /config
2016-05-27 16:29:33 +02:00
Alexander Kukushkin
6700cd0aa6
Implement reload of config.yml with REST API call
...
and acceptance tests for that
2016-05-26 17:09:40 +02:00
Alexander Kukushkin
45cbc8ca70
Implement acceptance test for dynamic configuration functionality
...
and fix some bugs revealed by acceptance tests
2016-05-26 10:16:24 +02:00
Alexander Kukushkin
342eec5c2f
Bugfix: pg_rewind can work only with master
2016-05-25 20:50:28 +02:00
Alexander Kukushkin
89adc0717a
Set loglevel back to INFO
2016-05-25 15:02:42 +02:00
Alexander Kukushkin
ceace03646
Address codacy and travis issues
2016-05-25 14:49:33 +02:00
Alexander Kukushkin
7827951c8c
Dynamic configuration
2016-05-25 14:17:05 +02:00
Alexander Kukushkin
6104d688d9
Merge branch 'master' of github.com:zalando/patroni into feature/sighup
2016-05-19 14:27:04 +02:00
Alexander Kukushkin
082b6f818a
Merge pull request #201 from zalando/feature/dcs-package
...
Find and load dcs class implementations dynamically
2016-05-19 14:25:06 +02:00
Feike Steenbergen
dcfbdc7d29
Update .zappr.yml
2016-05-19 14:22:58 +02:00
Feike Steenbergen
4186e73c13
Update .zappr.yml
2016-05-19 14:21:33 +02:00
Feike Steenbergen
79ecfd994a
Update .zappr.yml
2016-05-19 14:18:56 +02:00
Feike Steenbergen
b43b670195
Update .zappr.yml
2016-05-19 14:17:55 +02:00
Alexander Kukushkin
6a4793bba8
Find and load dcs class implementation dynamically
2016-05-19 12:42:19 +02:00
Alexander Kukushkin
0c2aad98a3
Move dcs implementations into dcs package
2016-05-19 10:57:18 +02:00
Alexander Kukushkin
73cd9951af
Merge pull request #200 from zalando/feature/tests-refactoring
...
Mininize number of references to dcs implementations from tests
2016-05-19 10:38:17 +02:00
Feike Steenbergen
5bfc41d475
Update .zappr.yml
2016-05-19 10:22:13 +02:00
Alexander Kukushkin
1741fa7e0f
Mininize number of references to dcs implementations from tests
...
where it is not necessary (test_ha, test_ctl, etc...)
It will simplyfy further refactoring and make it possible to install
implementations of AbstractDCS independant of each other.
2016-05-19 10:00:32 +02:00
Alexander Kukushkin
98c505a16b
Remove unused argument
2016-05-13 16:12:46 +02:00
Alexander Kukushkin
d422e16aad
Implement reload of config.yaml on SIGHUP
...
If some changes require restart of postgres patroni will expose
`restart_pending` flag in DCS and via REST API
2016-05-13 13:31:21 +02:00
Alexander Kukushkin
6a9fb4fcec
Merge pull request #196 from zalando/feature/write-options-to-postgresql.conf
...
Write postgres options to postgresql.conf (except listen_addresses and port)
2016-05-13 13:29:23 +02:00
Alexander Kukushkin
45a52e21f0
Write postgres options to postgresql.conf
...
Originally we were passing postgresql options as an argument of `pg_ctl
start`. It was nice and convenient because doesn't require to touch
configuration files but this method has one significant drawback: it
wasn't possible to change values of options which were passed as an
arguments without restart (event for the case when option reqires only
reload). Instead of doing that (passing options as arguments) we will:
1) rename original postgresql.conf to postgresql-base.conf
2) write options into postgresql.conf which has `include
'postgresql-base.conf'` on the the third line after comment that this
file is generated by Patroni and you should not change it manually
3) listen_addresses and port are still passed as an arguments to the
pg_ctl (just to be foolproof against ALTER SYSTEM set port to 'random')
In addition to that this commit makes some attributes of `Postgresql`
class private (prefixes them with _)
2016-05-13 12:40:04 +02:00
Alexander Kukushkin
8a60c915cf
Merge pull request #195 from zalando/bugfix/do-not-remove-data
...
Remove data directory only if replica creation failed
2016-05-11 12:12:41 +02:00
Alexander Kukushkin
d316a08c26
Merge branch 'master' of github.com:zalando/patroni into bugfix/do-not-remove-data
2016-05-10 13:14:58 +02:00
Alexander Kukushkin
14527c69d1
Merge pull request #194 from zalando/feature/api-request-handler-finish
...
finish method does not have any arguments
2016-05-10 13:10:32 +02:00
Alexander Kukushkin
5f33cf32f4
Merge pull request #193 from zalando/feature/primary_conninfo-application_name
...
Set application_name to node name in primary_conninfo
2016-05-10 13:10:19 +02:00
Alexander Kukushkin
a615339b48
Merge pull request #192 from zalando/feature/api-sysid-no-errors
...
Reset _sysid and don't call pg_controldata when restore of backup in progress
2016-05-10 13:10:07 +02:00
Alexander Kukushkin
1a0aefeb63
Merge pull request #191 from zalando/feature/api-tests-request-encode
...
Encode request body only once in a MockRequest
2016-05-10 13:09:31 +02:00
Oleksii Kliukin
e839386283
Remove the comment that is oudated since the bootstrap separation from the create replica.
2016-05-10 12:56:36 +02:00
Alexander Kukushkin
36d187ee1f
Remove data directory only if replica creation failed
...
And follow the right node after replica creation (it was following
the same node from which it took the backup)
2016-05-10 10:59:26 +02:00
Alexander Kukushkin
edf372e8b6
Reset _sysid and don't call pg_controldata when restore of backup in progress
...
Otherwise there were some errors in a log from rest-api healthcheck endpoint
2016-05-09 15:36:49 +02:00
Alexander Kukushkin
73119f96aa
Set application_name to node name in primary_conninfo
...
It will make it simplier to identify node the in pg_stat_replication view
2016-05-09 09:47:32 +02:00
Alexander Kukushkin
defc987328
Encode request body only once in a MockRequest
...
to avoid using bytestrings all over the file
2016-05-09 09:33:54 +02:00
Alexander Kukushkin
2adf593fb8
finish method does not have any arguments
2016-05-09 09:31:29 +02:00
Oleksii Kliukin
f801a08974
Bumped version to 0.90
v0.90
2016-04-27 12:04:52 +02:00
Alexander Kukushkin
eabfd82a5d
Implement Consul support
2016-04-27 10:59:01 +02:00
Alexander Kukushkin
ec7779fed6
Merge pull request #188 from zalando/bugfix/python351
...
urllib3.exceptions.HTTPError fixes for python 3.5.1
2016-04-26 11:55:19 +02:00
Alexander Kukushkin
bcbc080350
urllib3.exceptions.HTTPError fixes for python 3.5.1
...
Somehow when you import only urllib3 it's not possible work with
urllib3.exceptions.HTTPError exception (it looks like it is imported
from some other place. from urllib3.exceptions import HTTPError solves
the problem.
2016-04-24 14:18:34 +02:00
Feike Steenbergen
9a79ba25ef
Fix tests
...
Remove unnecessary patching of functions.
Update mocked response to be inline with introduced config change.
2016-04-22 16:28:00 +02:00
Alexander Kukushkin
0c6d259a0a
Merge pull request #187 from zalando/feature/zookeeper-rename-variable
...
Rename me->member (variable name was too confusing)
2016-04-22 16:10:32 +02:00
Feike Steenbergen
dcdaabc747
Merge pull request #184 from zalando/feature/unify_patronictl_config_with_patroni
...
Unify Patroni and Patronictl configuration
2016-04-22 16:08:36 +02:00
Feike Steenbergen
c7ebe4aa63
Unify Patroni and Patronictl configuration
...
A Patroni configuration should be enough for Patronictl
The previous dcs_api url style is still supported.
To remove duplicate magic variables a DCS_DEFAULTS was introduced.
Some behaviour has changed: If you do not specify a DCS at all
(not in configuration, not on commandline, not in environment), it will
not default to etcd://localhost:4001
More test coverage for patronictl
2016-04-22 16:04:41 +02:00
Feike Steenbergen and Feike Steenbergen
b727626f19
Update README.rst
2016-04-22 16:02:52 +02:00
Feike Steenbergen
5ca43c1a3d
Remove pg_hba injection and filtering
...
Previously we explicitly injected a replication record into pg_hba.conf.
This doesn't allow users to explicitly write their configurations.
This change will just write the lines specified by the user.
2016-04-22 16:02:52 +02:00
Alexander Kukushkin
a18c878a56
Rename me->member (variable name was too confusing)
2016-04-22 15:28:41 +02:00
Alexander Kukushkin
e275a34f6a
Merge pull request #183 from zalando/feature/api-refactoring
...
Refactor api.py
2016-04-22 13:47:14 +02:00