Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

instalar repmgr para ub

-bash-4.2$ cat repmgr.conf

node_id=2

node_name=node2

conninfo='host=172.16.140.137 user=repmgr dbname=repmgr connect_timeout=2'

data_directory='/var/lib/pgsql/12/data'

failover=automatic

promote_command='/usr/pgsql-12/bin/repmgr standby promote -f /var/lib/pgsql/repmgr.conf --log-to-file'

follow_command='/usr/pgsql-12/bin/repmgr standby follow -f /var/lib/pgsql/repmgr.conf --log-to-file --upstream-node-id=%n'
Source by www.enterprisedb.com #
 
PREVIOUS NEXT
Tagged: #instalar #repmgr #para #ub
ADD COMMENT
Topic
Name
9+6 =