patroni.git / summary / log / commit / refs

commit    82d2ef4878cd327e63fdb25e6faaf47dca3cebbe
Author:   Matt Baker <93600443+matthbakeredb@users.noreply.github.com>
Commit:   GitHub <noreply@github.com>
Date:     Fri Aug 11 08:31:31 2023 +0000

    Make docs more clear on changes to the `bootstrap.dcs` section of YAML config (#2811)
    
    It seems that a common pitfall for new users of Patroni is that the `bootstrap.dcs` section is only used to initialize the configuration in DCS. This moves the comment about this to an info block so it is more visible to the reader.


docs/yaml_configuration.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/yaml_configuration.rst b/docs/yaml_configuration.rst index ab5b5587..41776f87 100644 --- a/docs/yaml_configuration.rst +++ b/docs/yaml_configuration.rst @@ -30,9 +30,15 @@ Log Bootstrap configuration ----------------------- + +.. note:: + Once Patroni has initialized the cluster for the first time and settings have been stored in the DCS, all future + changes to the ``bootstrap.dcs`` section of the YAML configuration will not take any effect! If you want to change + them please use either ``patronictl edit-config`` or the Patroni :ref:`REST API <rest_api>`. + - **bootstrap**: - - **dcs**: This section will be written into `/<namespace>/<scope>/config` of the given configuration store after initializing of new cluster. The global dynamic configuration for the cluster. Under the ``bootstrap.dcs`` you can put any of the parameters described in the :ref:`Dynamic Configuration settings <dynamic_configuration>` and after Patroni initialized (bootstrapped) the new cluster, it will write this section into `/<namespace>/<scope>/config` of the configuration store. All later changes of ``bootstrap.dcs`` will not take any effect! If you want to change them please use either ``patronictl edit-config`` or Patroni :ref:`REST API <rest_api>`. + - **dcs**: This section will be written into `/<namespace>/<scope>/config` of the given configuration store after initializing the new cluster. The global dynamic configuration for the cluster. You can put any of the parameters described in the :ref:`Dynamic Configuration settings <dynamic_configuration>` under ``bootstrap.dcs`` and after Patroni has initialized (bootstrapped) the new cluster, it will write this section into `/<namespace>/<scope>/config` of the configuration store. - **method**: custom script to use for bootstrapping this cluster. See :ref:`custom bootstrap methods documentation <custom_bootstrap>` for details. [parent: b83f1c0f440e]