replication postgresql-10 with repmgr 1. install postgresql-10 to node1 and node2 rpm -Uvh https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm yum install postgresql10-server postgresql10-contrib postgresql10-devel -y /usr/pgsql-10/bin/postgresql-10-setup initdb systemctl enable postgresql-10 systemctl start postgresql-10 2. install repmgr to node1 and node2 yum install https://dl.2ndquadrant.com/default/release/browse/rpm/packages/centos/7/x86_64/10/repmgr10-4.1.1-1.el7.x86_64.rpm yum install repmgr10 node2 ubah konfigurasi pada repmgr.conf di node2 vim /etc/repmgr/10/repmgr.conf node_id=2 node_name='node2' conninfo='host=192.168.4.161 user=repmgr dbname=repmgr' data_directory='/var/lib/pgsql/10/data/' pg_bindir='/usr/pgsql-10/bin/' failover=automatic promote_command='repmgr standby promote -f /etc/repmgr/10/repmgr.conf --log-to-file' follow_command=
Tutorial database dan sebuah tulisan random