Alexander Kukushkin
bd6070e2b0
Make patronictl use config.py for loading config_file
...
config.py is not only loading config_file but also can build
configuration from environment variables.
2016-06-16 08:50:44 +02:00
Alexander Kukushkin
c1b6f1ef24
Make list of available dcs implementations unique.
...
And exclude AbstractDCS from it.
2016-06-16 08:48:49 +02:00
Alexander Kukushkin
6cf63d1366
Implement copy method
...
It returns copy of `effective_configuration`.
Don't check that PATRONI_*_USERNAME and PATRONI_*_PASSWORD are set
together. User may want to set only PASSWORD.
2016-06-16 08:45:52 +02:00
Oleksii Kliukin and GitHub
5ffc8206b0
Merge pull request #217 from zalando/LappleApple-patch-2
...
Updated README to include note to Kubernetes users
2016-06-14 15:15:53 +02:00
Lauri at Zalando and GitHub
0a2129a5ea
Update README.rst
2016-06-14 14:05:25 +02:00
Lauri at Zalando and GitHub
7561f73f16
Updated README to include note to Kubernetes users
...
Take a look :)
2016-06-14 14:00:11 +02:00
Alexander Kukushkin
25f20ca7d7
Fix documentation
2016-06-14 10:13:47 +02:00
Alexander Kukushkin and GitHub
dc6ae7a380
Merge pull request #216 from zalando/feature/dynamic-configuration-docs
...
Update dynamic_configuration.rst
2016-06-14 10:10:40 +02:00
Alexander Kukushkin and GitHub
0a32005cc8
Merge pull request #202 from zalando/feature/dynamic-configuration
...
Feature/dynamic configuration
2016-06-14 10:10:26 +02:00
Alexander Kukushkin and GitHub
f2980b13fb
Merge pull request #211 from zalando/feature/environment-configuration
...
Implement possibility to configure Patroni via environment
2016-06-14 10:10:09 +02:00
Oleksii Kliukin and GitHub
148562786d
Some editorializing and fixing of typos.
2016-06-13 15:48:23 +02:00
Oleksii Kliukin and GitHub
16b8afab20
Patroni is capitalized, Postgres is used consistently.
2016-06-13 15:41:41 +02:00
Feike Steenbergen and GitHub
dae1ab8c0a
Documentation language
2016-06-13 14:55:24 +02:00
Alexander Kukushkin and GitHub
8d38887ca1
Update dynamic_configuration.rst
2016-06-13 14:20:20 +02:00
Alexander Kukushkin
3ff1106526
Reset restart_pending flag when parameter was set to the old value
...
but restart didn't happened.
And small bugfix: node can't rewind from themself.
2016-06-13 14:11:35 +02:00
Alexander Kukushkin
a24b29deec
use_slots can be changed only globally
2016-06-13 12:54:33 +02:00
Alexander Kukushkin
8829ef6bab
Make QuantifiedCode happy
2016-06-13 10:55:15 +02:00
Alexander Kukushkin
c64170ef33
Extend list of postgres parameters controlled by Patroni
...
These parameters usually must be the same across all cluster nodes and
therefore must be set only via global configuration and always passed as
a list of postgres arguments (via pg_ctl) to make it not possible
accidentally change them by 'ALTER SYSTEM'
2016-06-13 10:33:14 +02:00
Alexander Kukushkin
e373a1e0bb
Hexadecimal can be written as 0X
2016-06-13 10:32:54 +02:00
Alexander Kukushkin
9ecff0f64d
Bugfixes
...
* GET /config was returning latesy "correct" version of dynamic
configuration.
* PATCH /config was breaking when trying to patch not dict with dict
2016-06-10 12:35:04 +02:00
Alexander Kukushkin
19037daa05
Merge branch 'feature/dynamic-configuration' of github.com:zalando/patroni into feature/environment-configuration
2016-06-10 12:30:37 +02:00
Feike Steenbergen and GitHub
1893f769a8
Merge pull request #214 from zalando/feature/dynamic_configuration
...
Feature/dynamic configuration
2016-06-10 09:22:48 +02:00
Alexander Kukushkin
95db7259d4
Implement strtol as close as possible to stdlib.strtol
2016-06-10 08:43:08 +02:00
Feike Steenbergen
4ba19d5207
Move documentation into docs directory
2016-06-09 15:32:37 +02:00
Feike Steenbergen
622b62f58d
Merge branch 'feature/dynamic_configuration' of github.com:zalando/patroni into feature/dynamic_configuration
2016-06-09 15:31:16 +02:00
Feike Steenbergen
d2b701c001
Remove obsolete configuration example
2016-06-09 15:30:22 +02:00
Alexander Kukushkin
49efb371f9
Make it possible to work without config.yml
...
Most of the basic configuration could be done via ENV
2016-06-09 14:44:29 +02:00
Alexander Kukushkin
7244739e26
Fix link to the libpq-pgpass.html
2016-06-09 12:10:37 +02:00
Alexander Kukushkin
e9be5e8462
Configure exhibitor port via ENV
2016-06-09 11:40:10 +02:00
Alexander Kukushkin
4edac15dce
Merge branch 'feature/dynamic-configuration' of github.com:zalando/patroni into feature/environment-configuration
2016-06-09 11:24:20 +02:00
Alexander Kukushkin
f576311532
Add special treatment for zookeeper.exhibitor section
2016-06-09 11:19:31 +02:00
Alexander Kukushkin
5314433b70
Merge branch 'feature/dynamic-configuration' of github.com:zalando/patroni into feature/environment-configuration
2016-06-09 11:09:30 +02:00
Alexander Kukushkin
ce4d814819
Merge branch 'feature/dynamic-configuration' of github.com:zalando/patroni into feature/dynamic-configuration
2016-06-09 11:05:17 +02:00
Alexander Kukushkin
5f4e582660
Merge branch 'master' of github.com:zalando/patroni into feature/dynamic-configuration
2016-06-09 11:04:28 +02:00
Alexander Kukushkin
c51039a5e3
Merge pull request #210 from misja/dbname
...
make dbname and config file configurable
2016-06-09 10:14:28 +02:00
Alexander Kukushkin
96bb2312cb
Merge pull request #212 from zalando/feature/split-exhibitor
...
Split ZooKeeper and Exhibitor
2016-06-09 10:14:20 +02:00
Alexander Kukushkin
5372604170
Merge pull request #213 from zalando/feature/pg_ctl_status
...
Reimplement pg_ctl status in python
2016-06-09 10:14:13 +02:00
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
50d118c3aa
Split ZooKeeper and Exhibitor
...
Originally Exhibitor was supported in the ZooKeeper class and
configuration for Exhibitor was taken also from `zookeeper` section in
the yaml config file. In fact, Exhibitor just extends ZooKeeper and now
it is reflected in the code and also Exhibitor got it's own section in
the config.yaml file. It will make it easier to configure Exhibitor
hosts and port via environment variables when PR#211 will be merged.
2016-06-08 19:21:18 +02:00
Misja Hoebe
6159d92f74
use config_base_name as suggested in
...
https://github.com/zalando/patroni/pull/210#discussion_r66249672
2016-06-08 15:37:54 +02:00
Alexander Kukushkin
23c5040ce5
Update documentation
2016-06-08 12:35:53 +02:00
Alexander Kukushkin
efe45bac63
Merge branch 'feature/environment-configuration' of github.com:zalando/patroni into feature/environment-configuration
2016-06-08 10:32:15 +02:00
Alexander Kukushkin
f2fc68acde
Fix pep8 formatting
2016-06-08 10:31:59 +02:00
Alexander Kukushkin
b65dc9a827
Update ENVIRONMENT.rst
2016-06-08 10:29:37 +02:00
Alexander Kukushkin
b7d87f7d07
Implement possibility to configure Patroni via environment
2016-06-08 10:15:24 +02:00
Misja Hoebe
b8f5576a51
make config filename configurable
2016-06-07 14:07:05 +02:00
Misja Hoebe
90c1e65adf
make database configurable
2016-06-07 12:16:10 +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