question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Docs clarification: reload configuration

See original GitHub issue

It is explicitly stated that bootstrap.dcs configuration loads from yaml configuration once and cannot be reload. I must use edit-config or api to reload.

But it is not clear for me what about another bootstrap.* options? If I change them and do patronictl reload - will it adjust pg_hba.conf according to bootstrap.pg_hba? Will it add new users if any in bootstrap.users? Will it update theirs passwords if only passwords changes? I’m expecting that the answer is “no”. Because it is a “bootstrap” section. Am I right? Should documentation be updated to explicitly state this?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
CyberDem0ncommented, May 11, 2020

The bootstrap section works only once, during cluster initialization, when either initdb or custom bootstrap methods are executed.

Bootstrap.pg_hba was invented a long time before we implemented postgresql.pg_hba, it was adding a few lines into pg_hba.conf generated by initdb. We don’t need it anymore and should remove it from all places.

Boostrap.dcs might contain nearly everything from postgresql section, hence postgresql.pg_hba.

0reactions
CyberDem0ncommented, May 11, 2020

If you want to change credentials:

  1. CREATE or UPDATE them manually in the database
  2. update patroni.yaml (on all nodes)
  3. run patronictl reload <SCOPE>

Patroni on all nodes will re-read patroni.yaml

Read more comments on GitHub >

github_iconTop Results From Across the Web

S9: Reloading configuration files
Explanation : This notice will be shown when the PostgreSQL server reloads, based on an operator request. It will also log out any...
Read more >
Settings — Gunicorn 20.1.0 documentation
reload ¶ ... Restart workers when code changes. This setting is intended for development. It will cause workers to be restarted whenever application...
Read more >
Need clarification, CLI to refresh savedsearches.conf
Solved: Hi, From the [post][1] , I learned that we can use following to refresh savedsearches.conf. splunk _internal call.
Read more >
Need clarification on apache reload
I need to do a /etc/init.d/httpd reload on my production server running httpd . Was wondering if after doing the configuration changes if ......
Read more >
Dynamic reloading of configuration files
Updates to configuration information are dynamically passed to the server if you use dynamic reloading of configuration files.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found