
{"id":5505,"date":"2024-03-06T09:27:25","date_gmt":"2024-03-06T09:27:25","guid":{"rendered":"https:\/\/test.opensource-db.in\/wp1\/?p=5505"},"modified":"2024-03-06T09:44:43","modified_gmt":"2024-03-06T09:44:43","slug":"dealing-with-standby-slot-problems-in-pg_auto_failover","status":"publish","type":"post","link":"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/","title":{"rendered":"Fixing Standby Slot Problems with pg_auto_failover"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Dealing with failover in PostgreSQL clusters has always been tricky, but now there&#8217;s a solution: pg_auto_failover. This awesome tool makes it super easy to keep an eye on failovers and resolve the fencing issue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, how does it work? Well, pg_auto_failover uses something called the Single Standby Architecture. This fancy term just means it keeps your PostgreSQL services going without any hiccups. And the best part? It&#8217;s really easy to use! You&#8217;ve got just three main nodes: one primary PostgreSQL node, one standby node that&#8217;s always ready to jump in, and a smart monitor node that keeps an eye on everything.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We have an existing primary and running with a hot standby replica. We want to configure the pg_auto_failover for this, as a part of that process. We have created a monitoring node and then added the primary and standby to the cluster.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Create monitor:<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>nohup \/usr\/pgsql-14\/bin\/pg_autoctl create monitor --pgctl \/usr\/pgsql-14\/bin\/pg_ctl --pgdata \/tmp\/monitor_node\/ --pgport 5433 --auth trust --run  --no-ssl &gt; \/dev\/null 2&gt;&amp;1 &amp;<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Register primary:<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>pg_autoctl create postgres --name node2 --pgport 5432 --dbname pg_auto_failover --monitor postgres:\/\/autoctl_node@192.168.10.101:5433\/pg_auto_failover --auth md5 --ssl-self-signed --hostname 192.168.10.102<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>-bash-4.2$ pg_autoctl show state<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code> Name |  Node |          Host:Port |       TLI: LSN |   Connection |      Reported State |      Assigned State\n------+-------+--------------------+----------------+--------------+---------------------+--------------------\nnode1 |     1 | 192.168.10.101:5432 |   1: 0\/501D530 |   read-write |        wait_primary |             primary\nnode2 |     8 |  192.168.10.102:5432 |   1: 0\/5000000 |    read-only |           secondary |           secondary<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Everything went well and the auto failover is showing the correct status. After a few days of smooth sailing with our PostgreSQL setup, we noticed our pg_wal directory was filling up fast. Upon investigation, we discovered that a replication slot created by pg_auto_failover was to blame. Despite being inactive and unused.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Initially, we tried to drop the replication slot <code>(pgautofailover_standby_8)<\/code> manually created by  <code>pg_auto_failover<\/code>, but it did not allow us to do the same.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>postgres=# select * from pg_replication_slots ;\n-&#091; RECORD 1 ]-------+-------------------------\nslot_name           | manual_slot\nplugin              |\nslot_type           | physical\ndatoid              |\ndatabase            |\ntemporary           | f\nactive              | t\nactive_pid          | 8492\nxmin                | 739\ncatalog_xmin        |\nrestart_lsn         | 0\/501D530\nconfirmed_flush_lsn |\nwal_status          | reserved\nsafe_wal_size       |\ntwo_phase           | f\n-&#091; RECORD 2 ]-------+-------------------------\nslot_name           | pgautofailover_standby_8\nplugin              |\nslot_type           | physical\ndatoid              |\ndatabase            |\ntemporary           | f\nactive              | f\nactive_pid          |\nxmin                |\ncatalog_xmin        |\nrestart_lsn         | 0\/501D448\nconfirmed_flush_lsn |\nwal_status          | reserved\nsafe_wal_size       |\ntwo_phase           | f\n\npostgres=# select pg_drop_replication_slot('pgautofailover_standby_8');\n-&#091; RECORD 1 ]------------+-\npg_drop_replication_slot |\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>postgres=#  select * from pg_replication_slots ;\n-&#091; RECORD 1 ]-------+-------------------------\nslot_name           | manual_slot\nplugin              |\nslot_type           | physical\ndatoid              |\ndatabase            |\ntemporary           | f\nactive              | t\nactive_pid          | 8492\nxmin                | 739\ncatalog_xmin        |\nrestart_lsn         | 0\/501D530\nconfirmed_flush_lsn |\nwal_status          | reserved\nsafe_wal_size       |\ntwo_phase           | f\n-&#091; RECORD 2 ]-------+-------------------------\nslot_name           | pgautofailover_standby_8\nplugin              |\nslot_type           | physical\ndatoid              |\ndatabase            |\ntemporary           | f\nactive              | f\nactive_pid          |\nxmin                |\ncatalog_xmin        |\nrestart_lsn         | 0\/501D448\nconfirmed_flush_lsn |\nwal_status          | reserved\nsafe_wal_size       |\ntwo_phase           | f\n\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Additionally, we discovered that slots weren&#8217;t always removed during failover or switchover events. Instead, they were only deleted when pg_rewind had something to fix. This happens when pg_rewind clears out various folders, including the one where the slot is stored (called pg_replslot\/), leading to the slot&#8217;s removal.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Solution:<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To resolve our issues, we dismantled the existing disaster recovery setup and reconfigured it with pg_auto_failover. This demonstrates how pg_auto_failover assumes control over the entire replication process.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>bash-4.2$ pg_autoctl drop node --destroy\n06:02:27 28290 INFO  Removing node with name \"node1\" in formation \"default\" from the monitor\n06:02:27 28290 INFO  An instance of pg_autoctl is running with PID 5346, waiting for it to stop.\n06:02:28 28290 INFO  The pg_autoctl instance with pid 5346 has now terminated.\n06:02:28 28290 INFO  This node with id 1 in formation \"default\" and group 0 has been dropped from the monitor\n06:02:28 28290 INFO  Stopping PostgreSQL at \"\/var\/lib\/pgsql\/14\/data\"\n06:02:28 28290 INFO  \/usr\/pgsql-14\/bin\/pg_ctl --pgdata \/var\/lib\/pgsql\/14\/data --wait stop --mode fast\n06:02:28 28290 INFO  \/usr\/pgsql-14\/bin\/pg_ctl status -D \/var\/lib\/pgsql\/14\/data &#091;3]\n06:02:28 28290 INFO  pg_ctl: no server running\n06:02:28 28290 INFO  pg_ctl stop failed, but PostgreSQL is not running anyway\n06:02:28 28290 INFO  Removing \"\/var\/lib\/pgsql\/14\/data\"\n06:02:28 28290 INFO  Removing \"\/var\/lib\/pgsql\/.config\/pg_autoctl\/var\/lib\/pgsql\/14\/data\/pg_autoctl.cfg\"\n\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>postgres=#  select * from pg_replication_slots ;\n slot_name | plugin | slot_type | datoid | database | temporary | active | active_pid | xmin | catalog_xmin | restart_lsn | confirmed_flush_lsn |\nwal_status | safe_wal_size | two_phase\n-----------+--------+-----------+--------+----------+-----------+--------+------------+------+--------------+-------------+---------------------+-\n-----------+---------------+-----------\n(0 rows)\n\n\n-bash-4.2$ pg_autoctl create postgres --name node1 --pgport 5432 --dbname pg_auto_failover --monitor postgres:\/\/autoctl_node@192.168.10.101:5433\/pg_auto_failover --auth trust --ssl-self-signed --pgdata \/var\/lib\/pgsql\/14\/data\n\n-bash-4.2$ pg_autoctl show state\n Name |  Node |          Host:Port |       TLI: LSN |   Connection |      Reported State |      Assigned State\n------+-------+--------------------+----------------+--------------+---------------------+--------------------\nnode1 |     1 | 192.168.10.101:5432 |   1: 0\/501D530 |   read-write |        wait_primary |             primary\nnode2 |     8 |  192.168.10.102:5432 |   1: 0\/5000000 |    read-only |           secondary |           secondary\n\npostgres=#  select * from pg_replication_slots ;\n-&#091; RECORD 1 ]-------+-------------------------\nslot_name           | pgautofailover_standby_9\nplugin              |\nslot_type           | physical\ndatoid              |\ndatabase            |\ntemporary           | f\nactive              | t\nactive_pid          | 8492\nxmin                | 739\ncatalog_xmin        |\nrestart_lsn         | 0\/501D530\nconfirmed_flush_lsn |\nwal_status          | reserved\nsafe_wal_size       |\ntwo_phase           | f\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>pg_auto_failover<\/code> is built to handle the failure of any single node in the system. If a failure occurs, the Log Sequence Number (LSN) may reference a potentially altered history.  <code>Patroni<\/code> also manages fail-over in a similar manner.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Despite these challenges, we found that <code>pg_auto_failover<\/code> effectively handles node failures. It&#8217;s designed to tolerate the failure of any single node in the system, ensuring continued operation even if one component encounters issues. However, it&#8217;s essential to monitor and manage replication slots properly to prevent unnecessary bloat in the pg_wal directory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In conclusion, while implementing <code>pg_auto_failover<\/code> may come with its challenges, the benefits far outweigh the drawbacks. By ensuring seamless fail-over management,<code> pg_auto_failover<\/code> simplifies the task of maintaining PostgreSQL clusters.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dealing with failover in PostgreSQL clusters has always been tricky, but now there&#8217;s a solution: pg_auto_failover. This awesome tool makes [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":5523,"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":[23,42,89],"tags":[86,87],"class_list":["post-5505","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-postgresql-14","category-postgresql-15","category-postgresql-16","tag-postgresql14","tag-postgresql15"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Fixing Standby Slot Problems with pg_auto_failover - 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=\"Fixing Standby Slot Problems with pg_auto_failover - OpenSource DB\" \/>\n<meta property=\"og:description\" content=\"Dealing with failover in PostgreSQL clusters has always been tricky, but now there&#8217;s a solution: pg_auto_failover. This awesome tool makes [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/\" \/>\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-03-06T09:27:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-06T09:44:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/03\/image-3.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1800\" \/>\n\t<meta property=\"og:image:height\" content=\"945\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Taraka Vuyyuru\" \/>\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=\"Taraka Vuyyuru\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 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\/dealing-with-standby-slot-problems-in-pg_auto_failover\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/\"},\"author\":{\"name\":\"Taraka Vuyyuru\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/55546e9ca9552218b9376d4ecc8447a5\"},\"headline\":\"Fixing Standby Slot Problems with pg_auto_failover\",\"datePublished\":\"2024-03-06T09:27:25+00:00\",\"dateModified\":\"2024-03-06T09:44:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/\"},\"wordCount\":439,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#organization\"},\"image\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/03\/image-3.png\",\"keywords\":[\"postgresql14\",\"postgresql15\"],\"articleSection\":[\"PostgreSQL 14\",\"PostgreSQL 15\",\"PostgreSQL 16\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/\",\"url\":\"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/\",\"name\":\"Fixing Standby Slot Problems with pg_auto_failover - OpenSource DB\",\"isPartOf\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/03\/image-3.png\",\"datePublished\":\"2024-03-06T09:27:25+00:00\",\"dateModified\":\"2024-03-06T09:44:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/#primaryimage\",\"url\":\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/03\/image-3.png\",\"contentUrl\":\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/03\/image-3.png\",\"width\":1800,\"height\":945},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/test.opensource-db.in\/wp1\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fixing Standby Slot Problems with pg_auto_failover\"}]},{\"@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\/55546e9ca9552218b9376d4ecc8447a5\",\"name\":\"Taraka Vuyyuru\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/54256c344d6c1f7dbb87fa257d6e318d1ddcd0a29320b642116bfa20e693616b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/54256c344d6c1f7dbb87fa257d6e318d1ddcd0a29320b642116bfa20e693616b?s=96&d=mm&r=g\",\"caption\":\"Taraka Vuyyuru\"},\"url\":\"https:\/\/test.opensource-db.in\/wp1\/author\/taraka\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fixing Standby Slot Problems with pg_auto_failover - 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":"Fixing Standby Slot Problems with pg_auto_failover - OpenSource DB","og_description":"Dealing with failover in PostgreSQL clusters has always been tricky, but now there&#8217;s a solution: pg_auto_failover. This awesome tool makes [&hellip;]","og_url":"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/","og_site_name":"OpenSource DB","article_publisher":"https:\/\/www.facebook.com\/people\/OpenSource-DB\/100072970755470\/","article_published_time":"2024-03-06T09:27:25+00:00","article_modified_time":"2024-03-06T09:44:43+00:00","og_image":[{"width":1800,"height":945,"url":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/03\/image-3.png","type":"image\/png"}],"author":"Taraka Vuyyuru","twitter_card":"summary_large_image","twitter_creator":"@opensource_db","twitter_site":"@opensource_db","twitter_misc":{"Written by":"Taraka Vuyyuru","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/#article","isPartOf":{"@id":"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/"},"author":{"name":"Taraka Vuyyuru","@id":"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/55546e9ca9552218b9376d4ecc8447a5"},"headline":"Fixing Standby Slot Problems with pg_auto_failover","datePublished":"2024-03-06T09:27:25+00:00","dateModified":"2024-03-06T09:44:43+00:00","mainEntityOfPage":{"@id":"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/"},"wordCount":439,"commentCount":0,"publisher":{"@id":"https:\/\/test.opensource-db.in\/wp1\/#organization"},"image":{"@id":"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/#primaryimage"},"thumbnailUrl":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/03\/image-3.png","keywords":["postgresql14","postgresql15"],"articleSection":["PostgreSQL 14","PostgreSQL 15","PostgreSQL 16"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/","url":"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/","name":"Fixing Standby Slot Problems with pg_auto_failover - OpenSource DB","isPartOf":{"@id":"https:\/\/test.opensource-db.in\/wp1\/#website"},"primaryImageOfPage":{"@id":"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/#primaryimage"},"image":{"@id":"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/#primaryimage"},"thumbnailUrl":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/03\/image-3.png","datePublished":"2024-03-06T09:27:25+00:00","dateModified":"2024-03-06T09:44:43+00:00","breadcrumb":{"@id":"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/#primaryimage","url":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/03\/image-3.png","contentUrl":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/03\/image-3.png","width":1800,"height":945},{"@type":"BreadcrumbList","@id":"https:\/\/test.opensource-db.in\/wp1\/dealing-with-standby-slot-problems-in-pg_auto_failover\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/test.opensource-db.in\/wp1\/"},{"@type":"ListItem","position":2,"name":"Fixing Standby Slot Problems with pg_auto_failover"}]},{"@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\/55546e9ca9552218b9376d4ecc8447a5","name":"Taraka Vuyyuru","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/54256c344d6c1f7dbb87fa257d6e318d1ddcd0a29320b642116bfa20e693616b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/54256c344d6c1f7dbb87fa257d6e318d1ddcd0a29320b642116bfa20e693616b?s=96&d=mm&r=g","caption":"Taraka Vuyyuru"},"url":"https:\/\/test.opensource-db.in\/wp1\/author\/taraka\/"}]}},"rttpg_featured_image_url":{"full":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/03\/image-3.png",1800,945,false],"landscape":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/03\/image-3.png",1800,945,false],"portraits":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/03\/image-3.png",1800,945,false],"thumbnail":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/03\/image-3-150x150.png",150,150,true],"medium":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/03\/image-3-300x158.png",300,158,true],"large":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/03\/image-3-1024x538.png",1024,538,true],"1536x1536":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/03\/image-3-1536x806.png",1536,806,true],"2048x2048":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/03\/image-3.png",1800,945,false],"ultp_layout_landscape_large":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/03\/image-3.png",1200,630,false],"ultp_layout_landscape":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/03\/image-3.png",870,457,false],"ultp_layout_portrait":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/03\/image-3.png",600,315,false],"ultp_layout_square":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/03\/image-3.png",600,315,false]},"rttpg_author":{"display_name":"Taraka Vuyyuru","author_link":"https:\/\/test.opensource-db.in\/wp1\/author\/taraka\/"},"rttpg_comment":0,"rttpg_category":"<a href=\"https:\/\/test.opensource-db.in\/wp1\/category\/postgres\/postgresql-14\/\" rel=\"category tag\">PostgreSQL 14<\/a> <a href=\"https:\/\/test.opensource-db.in\/wp1\/category\/postgres\/postgresql-15\/\" rel=\"category tag\">PostgreSQL 15<\/a> <a href=\"https:\/\/test.opensource-db.in\/wp1\/category\/postgres\/postgresql-16\/\" rel=\"category tag\">PostgreSQL 16<\/a>","rttpg_excerpt":"Dealing with failover in PostgreSQL clusters has always been tricky, but now there&#8217;s a solution: pg_auto_failover. This awesome tool makes [&hellip;]","_links":{"self":[{"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/posts\/5505","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/comments?post=5505"}],"version-history":[{"count":13,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/posts\/5505\/revisions"}],"predecessor-version":[{"id":5525,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/posts\/5505\/revisions\/5525"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/media\/5523"}],"wp:attachment":[{"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/media?parent=5505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/categories?post=5505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/tags?post=5505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}