hapostgres / pg_auto_failover

Postgres extension and service for automated failover and high-availability
Other
1.09k stars 114 forks source link

Add support for more environment variables. #846

Closed DimCitus closed 2 years ago

DimCitus commented 2 years ago

The parameters --replication-quorum, --candidate-priority, and --name can now also be passed from the environment variables PG_AUTOCTL_REPLICATION_QUORUM, PG_AUTOCTL_CANDIDATE_PRIORITY, and PG_AUTOCTL_NODE_NAME.

This allows easier Dockerfile "control-at-a-distance" integration style, where all the containers are the same with the same command, but the environment is where you can inject container/node/pod specific options.