
{"id":5573,"date":"2024-04-17T07:35:31","date_gmt":"2024-04-17T07:35:31","guid":{"rendered":"https:\/\/test.opensource-db.in\/wp1\/?p=5573"},"modified":"2024-04-24T03:31:26","modified_gmt":"2024-04-24T03:31:26","slug":"setting-up-high-availability-with-repmgr","status":"publish","type":"post","link":"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/","title":{"rendered":"Building PostgreSQL HA Systems with repmgr"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Welcome to our latest blog post! Today, we&#8217;ll delve into the intricacies of setting up PostgreSQL High availability (HA) production cluster for a prominent client in the banking sector. Our task? Designing and implementing a robust HA solution for their PODS, with PostgreSQL as the database backbone. Join us as we navigate through the process of establishing a four-node repmgr cluster, ensuring continuous availability and data integrity for our esteemed client.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why repmgr<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">repmgr is a popular tool used for managing PostgreSQL replication and failover in high availability (HA) environments. It simplifies the setup and management of PostgreSQL replication by providing easy-to-use commands and tools for configuration, monitoring, and failover. One of its key features is its ability to automatically detect primary node failures and promote a standby node to become the new primary.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Provision four EC2 instances.<\/li>\n\n\n\n<li>Install PostgreSQL 14 on each node (why not the latest &#8211; Application compatibility)<\/li>\n\n\n\n<li>Install repmgr on each node<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Setup<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Splitting the four nodes into &nbsp;1&nbsp; primary node, 2 standby nodes &amp; 1 witness node.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before setting up the repmgr , we need to add the IPv4 address of four nodes&nbsp; to a single security group in EC2 instances.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">In Primary node:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Create the user and database accordingly and also do entries of remaining nodes in pg_hba.conf of primary server.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#Changes of parameters in Postgresql.conf\n\nmax_wal_senders = 10\nmax_replication_slots = 10\nwal_level ='logical' #to enable logical decoding in future\nhot_standby = on\narchive_mode = on\narchive_command = '\/bin\/true'\nshared_preload_libraries = 'repmgr'\n\n#Restart the services after changing the parameters in postgresql.conf file.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then, we need to create a repmgr configuration file with the following parameters:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cluster='clientname_prod'\nnode_id=1\nnode_name=node1\nconninfo='host=node1 user=myuser dbname=mydb connect_timeout=2'\ndata_directory='\/var\/lib\/pgsql\/14\/data\/'\nfailover=automatic\npromote_command='\/usr\/pgsql-14\/bin\/repmgr standby promote -f \/var\/lib\/pgsql\/repmgr.conf --log-to-file'\nfollow_command='\/usr\/pgsql-14\/bin\/repmgr standby follow -f \/var\/lib\/pgsql\/repmgr.conf --log-to-file --upstream-node-id=%n'<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now, we need to register the Primary using the command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/pgsql-14\/bin\/repmgr -f \/var\/lib\/pgsql\/repmgr.conf primary register\n\n#To check whether the primary server is registered or not,\n\/usr\/pgsql-14\/bin\/repmgr -f \/var\/lib\/pgsql\/repmgr.conf  cluster show\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Once the primary is&nbsp; registered, we can setup the standby node<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">In Standby node<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Two steps:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One is standby clone and the other is standby register. <br>Before that, let us create the repmgr configuration file in the standby server.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>node_id=2\nnode_name=node2\nconninfo='host=(Standby IP address) user=myuser dbname=mydb connect_timeout=2'\ndata_directory='\/var\/lib\/pgsql\/14\/data'\nfailover=automatic\npromote_command='\/usr\/pgsql-14\/bin\/repmgr standby promote -f \/var\/lib\/pgsql\/repmgr.conf --log-to-file'\nfollow_command='\/usr\/pgsql-14\/bin\/repmgr standby follow -f \/var\/lib\/pgsql\/repmgr.conf --log-to-file --upstream-node-id=%n'<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now, let us do a dry run before cloning using the command,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/pgsql-14\/bin\/repmgr -h (Primary IP address) -U myuser -d mydb -f \/var\/lib\/pgsql\/repmgr.conf standby clone --dry-run<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If it is successful, let us do the standby clone using the command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/pgsql-14\/bin\/repmgr -h (Primary IP address) -U myuser -d mydb -f \/var\/lib\/pgsql\/repmgr.conf standby clone<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Once the cloning is done ,Register the standby now using the command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/pgsql-14\/bin\/repmgr -f \/var\/lib\/pgsql\/repmgr.conf standby register<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Make sure that you stop the PostgreSQL server while doing the Standby clone and restart it before registering the standby.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Repeat the same process with the second standby too.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">In Witness node<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In the witness node, the parameter changes would need to be made in <code>postgresql.conf<\/code> file, and entries in <code>pg_hba.conf<\/code> need to be added similar to what we did in Primary; and also create the repmgr configuration file accordingly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To register the witness node, use the command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/pgsql-14\/bin\/repmgr -f \/var\/lib\/pgsql\/repmgr.conf witness register -h (Primary IP)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now, we have all of the four nodes ready and registered as needed. You could use the cluster show command to check the nodes and verify that everything is in order.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Automate the failover<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"> To automate the failover, there is a process called repmgrd daemon. It is a background process that runs continuously to manage PostgreSQL replication and failover using repmgr. It is a crucial component of the repmgr toolset, providing automated monitoring, management, and failover capabilities for PostgreSQL replication clusters.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To activate <code>repmgrd<\/code>, use the command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/pgsql-14\/bin\/repmgrd -f \/var\/lib\/pgsql\/repmgr.conf\n\n#To check the events, use the command:\n\/usr\/pgsql-14\/bin\/repmgr -f \/var\/lib\/pgsql\/repmgr.conf cluster event\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In conclusion, the successful implementation of the four-node repmgr cluster enabled our client to achieve HA for their Microservices architecture, bolstering data resilience and ensuring uninterrupted service delivery in a mission-critical banking environment. With repmgr&#8217;s robust features and our expertise, we provided a reliable and scalable solution tailored to the client&#8217;s specific requirements. To this setup , we also added <code>PgBouncer<\/code> and <code>keepalived<\/code>. If you want to know more about the architecture and how it works with a practical approach, please stay tuned for this series..<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Welcome to our latest blog post! Today, we&#8217;ll delve into the intricacies of setting up PostgreSQL High availability (HA) [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":5588,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[52,1,23],"tags":[],"class_list":["post-5573","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-customer-success","category-others","category-postgresql-14"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Building PostgreSQL HA Systems with repmgr - OpenSource DB<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Building PostgreSQL HA Systems with repmgr - OpenSource DB\" \/>\n<meta property=\"og:description\" content=\"Introduction Welcome to our latest blog post! Today, we&#8217;ll delve into the intricacies of setting up PostgreSQL High availability (HA) [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/\" \/>\n<meta property=\"og:site_name\" content=\"OpenSource DB\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/people\/OpenSource-DB\/100072970755470\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-17T07:35:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-24T03:31:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/04\/repmgr.png\" \/>\n\t<meta property=\"og:image:width\" content=\"512\" \/>\n\t<meta property=\"og:image:height\" content=\"269\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Venkat Akhil\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@opensource_db\" \/>\n<meta name=\"twitter:site\" content=\"@opensource_db\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Venkat Akhil\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/\"},\"author\":{\"name\":\"Venkat Akhil\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/a37b142ecbf953189a4f9209b0b8d328\"},\"headline\":\"Building PostgreSQL HA Systems with repmgr\",\"datePublished\":\"2024-04-17T07:35:31+00:00\",\"dateModified\":\"2024-04-24T03:31:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/\"},\"wordCount\":575,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#organization\"},\"image\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/04\/repmgr.png\",\"articleSection\":[\"Customer Success\",\"Others\",\"PostgreSQL 14\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/\",\"url\":\"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/\",\"name\":\"Building PostgreSQL HA Systems with repmgr - OpenSource DB\",\"isPartOf\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/04\/repmgr.png\",\"datePublished\":\"2024-04-17T07:35:31+00:00\",\"dateModified\":\"2024-04-24T03:31:26+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/#primaryimage\",\"url\":\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/04\/repmgr.png\",\"contentUrl\":\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/04\/repmgr.png\",\"width\":512,\"height\":269},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/test.opensource-db.in\/wp1\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Building PostgreSQL HA Systems with repmgr\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#website\",\"url\":\"https:\/\/test.opensource-db.in\/wp1\/\",\"name\":\"OpenSource DB\",\"description\":\"Your Trusted OpenSource Databases partner\",\"publisher\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/test.opensource-db.in\/wp1\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#organization\",\"name\":\"OPENSOURCE DB PRIVATE LIMITED\",\"url\":\"https:\/\/test.opensource-db.in\/wp1\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2021\/10\/osdb-logo-tm-2.png\",\"contentUrl\":\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2021\/10\/osdb-logo-tm-2.png\",\"width\":368,\"height\":120,\"caption\":\"OPENSOURCE DB PRIVATE LIMITED\"},\"image\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/people\/OpenSource-DB\/100072970755470\/\",\"https:\/\/x.com\/opensource_db\",\"https:\/\/www.youtube.com\/channel\/UCmTI5h\",\"https:\/\/www.linkedin.com\/company\/opensource-db\",\"https:\/\/www.instagram.com\/opensource_db\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/a37b142ecbf953189a4f9209b0b8d328\",\"name\":\"Venkat Akhil\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/522c0947d21b2c2c89f10698fd9131f9db4110f65c8d02b53d9b4559c7650865?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/522c0947d21b2c2c89f10698fd9131f9db4110f65c8d02b53d9b4559c7650865?s=96&d=mm&r=g\",\"caption\":\"Venkat Akhil\"},\"url\":\"https:\/\/test.opensource-db.in\/wp1\/author\/sudheer-sopensource-db-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Building PostgreSQL HA Systems with repmgr - OpenSource DB","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Building PostgreSQL HA Systems with repmgr - OpenSource DB","og_description":"Introduction Welcome to our latest blog post! Today, we&#8217;ll delve into the intricacies of setting up PostgreSQL High availability (HA) [&hellip;]","og_url":"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/","og_site_name":"OpenSource DB","article_publisher":"https:\/\/www.facebook.com\/people\/OpenSource-DB\/100072970755470\/","article_published_time":"2024-04-17T07:35:31+00:00","article_modified_time":"2024-04-24T03:31:26+00:00","og_image":[{"width":512,"height":269,"url":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/04\/repmgr.png","type":"image\/png"}],"author":"Venkat Akhil","twitter_card":"summary_large_image","twitter_creator":"@opensource_db","twitter_site":"@opensource_db","twitter_misc":{"Written by":"Venkat Akhil","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/#article","isPartOf":{"@id":"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/"},"author":{"name":"Venkat Akhil","@id":"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/a37b142ecbf953189a4f9209b0b8d328"},"headline":"Building PostgreSQL HA Systems with repmgr","datePublished":"2024-04-17T07:35:31+00:00","dateModified":"2024-04-24T03:31:26+00:00","mainEntityOfPage":{"@id":"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/"},"wordCount":575,"commentCount":0,"publisher":{"@id":"https:\/\/test.opensource-db.in\/wp1\/#organization"},"image":{"@id":"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/#primaryimage"},"thumbnailUrl":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/04\/repmgr.png","articleSection":["Customer Success","Others","PostgreSQL 14"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/","url":"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/","name":"Building PostgreSQL HA Systems with repmgr - OpenSource DB","isPartOf":{"@id":"https:\/\/test.opensource-db.in\/wp1\/#website"},"primaryImageOfPage":{"@id":"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/#primaryimage"},"image":{"@id":"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/#primaryimage"},"thumbnailUrl":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/04\/repmgr.png","datePublished":"2024-04-17T07:35:31+00:00","dateModified":"2024-04-24T03:31:26+00:00","breadcrumb":{"@id":"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/#primaryimage","url":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/04\/repmgr.png","contentUrl":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/04\/repmgr.png","width":512,"height":269},{"@type":"BreadcrumbList","@id":"https:\/\/test.opensource-db.in\/wp1\/setting-up-high-availability-with-repmgr\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/test.opensource-db.in\/wp1\/"},{"@type":"ListItem","position":2,"name":"Building PostgreSQL HA Systems with repmgr"}]},{"@type":"WebSite","@id":"https:\/\/test.opensource-db.in\/wp1\/#website","url":"https:\/\/test.opensource-db.in\/wp1\/","name":"OpenSource DB","description":"Your Trusted OpenSource Databases partner","publisher":{"@id":"https:\/\/test.opensource-db.in\/wp1\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/test.opensource-db.in\/wp1\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/test.opensource-db.in\/wp1\/#organization","name":"OPENSOURCE DB PRIVATE LIMITED","url":"https:\/\/test.opensource-db.in\/wp1\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/logo\/image\/","url":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2021\/10\/osdb-logo-tm-2.png","contentUrl":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2021\/10\/osdb-logo-tm-2.png","width":368,"height":120,"caption":"OPENSOURCE DB PRIVATE LIMITED"},"image":{"@id":"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/people\/OpenSource-DB\/100072970755470\/","https:\/\/x.com\/opensource_db","https:\/\/www.youtube.com\/channel\/UCmTI5h","https:\/\/www.linkedin.com\/company\/opensource-db","https:\/\/www.instagram.com\/opensource_db\/"]},{"@type":"Person","@id":"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/a37b142ecbf953189a4f9209b0b8d328","name":"Venkat Akhil","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/522c0947d21b2c2c89f10698fd9131f9db4110f65c8d02b53d9b4559c7650865?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/522c0947d21b2c2c89f10698fd9131f9db4110f65c8d02b53d9b4559c7650865?s=96&d=mm&r=g","caption":"Venkat Akhil"},"url":"https:\/\/test.opensource-db.in\/wp1\/author\/sudheer-sopensource-db-com\/"}]}},"rttpg_featured_image_url":{"full":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/04\/repmgr.png",512,269,false],"landscape":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/04\/repmgr.png",512,269,false],"portraits":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/04\/repmgr.png",512,269,false],"thumbnail":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/04\/repmgr-150x150.png",150,150,true],"medium":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/04\/repmgr-300x158.png",300,158,true],"large":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/04\/repmgr.png",512,269,false],"1536x1536":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/04\/repmgr.png",512,269,false],"2048x2048":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/04\/repmgr.png",512,269,false],"ultp_layout_landscape_large":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/04\/repmgr.png",512,269,false],"ultp_layout_landscape":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/04\/repmgr.png",512,269,false],"ultp_layout_portrait":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/04\/repmgr.png",512,269,false],"ultp_layout_square":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/04\/repmgr.png",512,269,false]},"rttpg_author":{"display_name":"Venkat Akhil","author_link":"https:\/\/test.opensource-db.in\/wp1\/author\/sudheer-sopensource-db-com\/"},"rttpg_comment":0,"rttpg_category":"<a href=\"https:\/\/test.opensource-db.in\/wp1\/category\/business\/customer-success\/\" rel=\"category tag\">Customer Success<\/a> <a href=\"https:\/\/test.opensource-db.in\/wp1\/category\/business\/others\/\" rel=\"category tag\">Others<\/a> <a href=\"https:\/\/test.opensource-db.in\/wp1\/category\/postgres\/postgresql-14\/\" rel=\"category tag\">PostgreSQL 14<\/a>","rttpg_excerpt":"Introduction Welcome to our latest blog post! Today, we&#8217;ll delve into the intricacies of setting up PostgreSQL High availability (HA) [&hellip;]","_links":{"self":[{"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/posts\/5573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/comments?post=5573"}],"version-history":[{"count":13,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/posts\/5573\/revisions"}],"predecessor-version":[{"id":5596,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/posts\/5573\/revisions\/5596"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/media\/5588"}],"wp:attachment":[{"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/media?parent=5573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/categories?post=5573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/tags?post=5573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}