GithubHelp home page GithubHelp logo

Comments (6)

martinmarques avatar martinmarques commented on August 12, 2024

If your worries are related with using a superuser to create such functions, I have to say that not loading the functions will not change anything, as you need superuser privileges for cloning as well.

About repmgrd, you need to start it on all standby nodes which you want to monitor. If you want to monitor lag from all standbys, then you have to have it running on all standby nodes.

You should have it ready on the primary, so after switchover it can be easily started.

from repmgr.

gp4git avatar gp4git commented on August 12, 2024

Concerning question 1, my worries are that I want to install the minimum required for the features I plan to use. And correct me If I'm wrong, these functions are only in the scope of repmgrd not plain repmgr features.

As for question 2, I ask where to start repmgrd daemon because I have seen it started on both master and standby nodes. Is it safe to do so ? May be it can help to hasten switchover process ?
And a last question : as the standbys are in read only mode, how repmgrd is able to write into the monitoring table ?
Thanks again for your feedback
Regards

from repmgr.

martinmarques avatar martinmarques commented on August 12, 2024

On the master, repmgrd is only needed in case of auto-failover. It's good to have it anyway, so in case of switchover it will start storing monitoring information in the new standby

About how repmgrd works on a standby, it gathers information from the standby node but writes it to the primary node, that's why you need normal libpq connections as well as replication connections from the standby in pg_hba.conf.

from repmgr.

gp4git avatar gp4git commented on August 12, 2024

Sorry to be picky, but my question revolves whether it is safe/better to run repmgrd with ONLY --monitoring-history option on the master or if it will burn CPU cycles for nothing and should be started only during switchover.?

Also, as homegrown replication monitoring scripts use pg_stat_replication view on the master, may I say that repmgrd monitoring is more accurate as it gets its info from standby nodes ?

Regards
And thank you for your patience ;-)

from repmgr.

martinmarques avatar martinmarques commented on August 12, 2024

I will not burn CPU cycles. It just checks if it needs to reload the configuration every monitor_interval_secs seconds.

Also repmgr stats are more accurate as they compare LSN from the standby and it's primary. It also gives time lag.

from repmgr.

gp4git avatar gp4git commented on August 12, 2024

OK thanks for your valuable feedback
Regards

from repmgr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.