From 3a3da03bb9514d9acb71463bc6828124e386c1f3 Mon Sep 17 00:00:00 2001 From: Eric Chang Date: Mon, 23 Sep 2019 12:18:12 +0800 Subject: [PATCH] add install pg_auto_failover with psql 11 in ubuntu 18.04 --- content/post/pg_auto_failover_in_ubuntu_1804_psql_11.md | 4 ++++ .../post/pg_auto_failover_in_ubuntu_1804_psql_11/index.html | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/content/post/pg_auto_failover_in_ubuntu_1804_psql_11.md b/content/post/pg_auto_failover_in_ubuntu_1804_psql_11.md index fb1ee460..521fad3c 100644 --- a/content/post/pg_auto_failover_in_ubuntu_1804_psql_11.md +++ b/content/post/pg_auto_failover_in_ubuntu_1804_psql_11.md @@ -27,6 +27,10 @@ https://github.com/citusdata/pg_auto_failover 基本的邏輯是 一台 monitor , 一台 master/primary node ,一台 slave/secondary node 組成一個cluster +官方提供的架構圖如下 + +![pg_auto_failover architecture](https://i.imgur.com/SyPFXZ1.png) + 當master/primary node 上面的 postgresql 服務死掉了,slave/secondary node 會自動接手 等到master/primary node 回來之後,會自動降級為 slave/secondary node diff --git a/public/post/pg_auto_failover_in_ubuntu_1804_psql_11/index.html b/public/post/pg_auto_failover_in_ubuntu_1804_psql_11/index.html index 81aa45db..623dedec 100644 --- a/public/post/pg_auto_failover_in_ubuntu_1804_psql_11/index.html +++ b/public/post/pg_auto_failover_in_ubuntu_1804_psql_11/index.html @@ -144,6 +144,10 @@

基本的邏輯是 一台 monitor , 一台 master/primary node ,一台 slave/secondary node 組成一個cluster

+

官方提供的架構圖如下

+ +

pg_auto_failover architecture

+

當master/primary node 上面的 postgresql 服務死掉了,slave/secondary node 會自動接手

等到master/primary node 回來之後,會自動降級為 slave/secondary node