Skip to content

Commit

Permalink
Add warning to the sample config about bootstrap section (patroni#2925)
Browse files Browse the repository at this point in the history
often people are trying to change it and coming with the questions why it doesn't work.
  • Loading branch information
CyberDem0n authored Oct 23, 2023
1 parent 6cfd904 commit 6d98944
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
8 changes: 6 additions & 2 deletions postgres0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,13 @@ etcd:
# - 127.0.0.1:2223
# - 127.0.0.1:2224

# The bootstrap configuration. Works only when the cluster is not yet initialized.
# If the cluster is already initialized, all changes in the `bootstrap` section are ignored!
bootstrap:
# this section will be written into Etcd:/<namespace>/<scope>/config after initializing new cluster
# and all other cluster members will use it as a `global configuration`
# This section will be written into Etcd:/<namespace>/<scope>/config after initializing new cluster
# and all other cluster members will use it as a `global configuration`.
# WARNING! If you want to change any of the parameters that were set up
# via `bootstrap.dcs` section, please use `patronictl edit-config`!
dcs:
ttl: 30
loop_wait: 10
Expand Down
8 changes: 6 additions & 2 deletions postgres1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,13 @@ etcd:
# - 127.0.0.1:2222
# - 127.0.0.1:2224

# The bootstrap configuration. Works only when the cluster is not yet initialized.
# If the cluster is already initialized, all changes in the `bootstrap` section are ignored!
bootstrap:
# this section will be written into Etcd:/<namespace>/<scope>/config after initializing new cluster
# and all other cluster members will use it as a `global configuration`
# This section will be written into Etcd:/<namespace>/<scope>/config after initializing new cluster
# and all other cluster members will use it as a `global configuration`.
# WARNING! If you want to change any of the parameters that were set up
# via `bootstrap.dcs` section, please use `patronictl edit-config`!
dcs:
ttl: 30
loop_wait: 10
Expand Down
8 changes: 6 additions & 2 deletions postgres2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,13 @@ etcd:
# - 127.0.0.1:2222
# - 127.0.0.1:2223

# The bootstrap configuration. Works only when the cluster is not yet initialized.
# If the cluster is already initialized, all changes in the `bootstrap` section are ignored!
bootstrap:
# this section will be written into Etcd:/<namespace>/<scope>/config after initializing new cluster
# and all other cluster members will use it as a `global configuration`
# This section will be written into Etcd:/<namespace>/<scope>/config after initializing new cluster
# and all other cluster members will use it as a `global configuration`.
# WARNING! If you want to change any of the parameters that were set up
# via `bootstrap.dcs` section, please use `patronictl edit-config`!
dcs:
ttl: 30
loop_wait: 10
Expand Down

0 comments on commit 6d98944

Please sign in to comment.