ユーザ用ツール

サイト用ツール


01_linux:11_データベース:02_postgresql:01_streaming_replica

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
01_linux:11_データベース:02_postgresql:01_streaming_replica [2022/07/11 06:30] matsui01_linux:11_データベース:02_postgresql:01_streaming_replica [2022/07/11 08:08] (現在) matsui
行 198: 行 198:
            ├─19397 postgres: walsender postgres 172.16.0.52(53948) streaming 0/6000060            ├─19397 postgres: walsender postgres 172.16.0.52(53948) streaming 0/6000060
            └─19404 postgres: walsender postgres 172.16.0.53(41534) streaming 0/6000060            └─19404 postgres: walsender postgres 172.16.0.53(41534) streaming 0/6000060
 +</code>
 +
 +Primaryではwalsenderプロセスが存在する。
 +<code>
 +# ps auxw| grep [w]alsender
 +postgres 19068  0.0  0.0 398732  4288 ?        Ss   06:36   0:00 postgres: walsender postgres 172.16.0.53(43426) streaming 0/8000148
 +postgres 19071  0.0  0.0 398228  3768 ?        Ss   06:37   0:00 postgres: walsender postgres 172.16.0.51(39280) streaming 0/8000148
 </code> </code>
  
行 218: 行 225:
            ├─ 8159 postgres: stats collector             ├─ 8159 postgres: stats collector 
            └─18601 postgres: walreceiver streaming 0/6004FA0            └─18601 postgres: walreceiver streaming 0/6004FA0
 +</code>
 +
 +
 +Secondaryでは、walreceiverも動いている
 +<code>
 +# ps auxw| grep [w]alreceiver
 +postgres 19711  0.0  0.0 408884  4712 ?        Ss   06:37   0:03 postgres: walreceiver streaming 0/8000148
 </code> </code>
  
行 295: 行 309:
 </code> </code>
  
 +他のSecondaryの接続先を変更しリロード
 +<code>
 +[root@pg1003 ~]# vi /data/postgresql.auto.conf 
 +host=172.16.0.52
 +
 +host=172.16.0.51
  
 +[root@pg1003 ~]# systemctl reload postgresql-13.service
 +</code>
 ===== 参考 ===== ===== 参考 =====
  
01_linux/11_データベース/02_postgresql/01_streaming_replica.1657521033.txt.gz · 最終更新: 2022/07/11 06:30 by matsui