Comments (8)
I believe #211 covers most of the use-cases. Closing this issue. If something is missing we will create a new one.
from patroni.
What other parameters should it be possible to set via environment variables (except passwords)?
I'm thinking about:
- NAME (node name)
- SCOPE (cluster name)
- NAMESPACE (path inside DCS where cluster is stored, /service by default)
- RESTAPI_AUTH ('username:password' for accessing some of the endpoints)
- RESTAPI_CERTFILE
- RESTAPI_KEYFILE
- RESTAPI_LISTEN
- RESTAPI_CONNECT_ADDRESS
- POSTGRESQL_LISTEN
- POSTGRESQL_CONNECT_ADDRESS
- POSTGRESQL_DATA_DIR ?
- POSTGRESQL_PGPASS ?
- (ETCD|CONSUL|ZOOKEEPER)_HOST(S) ?
What about order of precedence? I think config file should have a priority.
from patroni.
What about PATRONI_CONFIGURATION? As since 9744019 In that way you can run patroni totally with an envdir
.
from patroni.
Yeah, but with PATRONI_CONFIG it's not possible to change config and reload it...
from patroni.
It is actually called 'PATRONI_CONFIGURATION' and it's mutually exclusive with the actual configuration files, so you cannot read from both.
I think we only move the actual secrets to the envdir, obviously, the passwords, but also RESTAPI_AUTH, RESTAPI_CERTFILE and RESTAPI_KEYFILE.
from patroni.
It is not only about passwords, but about running Patroni in a docker. For example it's not always possible to figure out your "connect_address" from inside docker.
from patroni.
Exactly. For example, when starting Patroni in Kubernetes, I can pass the Pod IP address as an ENV; it's not visible inside the container.
from patroni.
@CyberDem0n @alexeyklyukin @feikesteenbergen @jberkus What's the next step to take for this issue?
from patroni.
Related Issues (20)
- synchronous_standby_names removed by Patroni in PostgreSQL synchronous replication mode HOT 1
- failsafe_mode don't work when k8s return 409 HOT 1
- cp in patroni 3.2.2 could not finish archiving the wal log. HOT 2
- FATAL: could not connect to the primary server: connection to server at "x.x.x.x", port 5432 failed: session is read-only HOT 3
- Failed to get list of machines from V3<Unknown error: '404 page not found', HOT 1
- patronictl does not work HOT 1
- Patroni synchronous replication not working HOT 2
- DOC TIP on pg_ctl and wal_keep_segments HOT 1
- Need Help in Setting up docker-compose-citus.yaml HOT 2
- RAFT - failed to update leader lock HOT 1
- Acceptance tests fail on Debian unstable for Postgres < 12 HOT 5
- Failed to determine PostgreSQL state from the connection HOT 1
- Parameters such as max_connections, max_replication_slots, etc changed. No apparent way to find out how, by who, what or when change occurred. HOT 1
- Patroni changed leader for some reason HOT 12
- Do not check if Port is already in use with --validate-config HOT 1
- Migrate setup.py to pyproject.toml HOT 1
- max_connection value doesn't work unless you do with patronictl edit-config HOT 3
- List order of sync_standby is inconsistent with synchronous_standby_names
- Unexpected state for replicatefrom after switchover HOT 2
- patroni-consul RPM requires consul package HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from patroni.