Comments (6)
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.
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.
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.
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.
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.
OK thanks for your valuable feedback
Regards
from repmgr.
Related Issues (20)
- Any plan for the new release to support PG16? HOT 2
- repmgr replication with multislaves failover is failing HOT 1
- Repmgr: an older version of the extension is installed but it's not true HOT 1
- **High Priority** repmgr with multi slaves replication solution is not working in k8s environment
- node_rejoin event
- CRITICAL (node "foo" (ID: 2) is not attached to expected upstream node "bar" (ID: 1) repmgr-16
- LOG: could not receive data from client: Connection reset by peer HOT 3
- Slot in the catchup state
- repmgr - failed: fe_sendauth: no password supplied
- Issue encountered while adding script for split-brain prevention HOT 1
- Self-node check method not changed. HOT 1
- node "node_master" (ID: 1) is registered as primary but running as standby HOT 4
- Promote secondary to new master
- master node fails to automatically rejoin the cluster after recovery from failure HOT 1
- repmgrd autofailover not working if PR is down with File system hang HOT 6
- repmgr cluster crosscheck does not work with custom PostgreSQL location
- single HTML page documentation link is broken HOT 1
- repmgr daemon status showing repmgrd as 'not running' HOT 1
- Repmgr cannot perform failover in a cluster that is not in a healthy state.
- PostgreSQL 17 support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from repmgr.