このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
01_linux:11_データベース:02_postgresql:01_streaming_replica [2022/07/11 06:30] – matsui | 01_linux:11_データベース:02_postgresql:01_streaming_replica [2022/07/11 08:08] (現在) – matsui | ||
---|---|---|---|
行 198: | 行 198: | ||
| | ||
| | ||
+ | </ | ||
+ | |||
+ | Primaryではwalsenderプロセスが存在する。 | ||
+ | < | ||
+ | # ps auxw| grep [w]alsender | ||
+ | postgres 19068 0.0 0.0 398732 | ||
+ | postgres 19071 0.0 0.0 398228 | ||
</ | </ | ||
行 218: | 行 225: | ||
| | ||
| | ||
+ | </ | ||
+ | |||
+ | |||
+ | Secondaryでは、walreceiverも動いている | ||
+ | < | ||
+ | # ps auxw| grep [w]alreceiver | ||
+ | postgres 19711 0.0 0.0 408884 | ||
</ | </ | ||
行 295: | 行 309: | ||
</ | </ | ||
+ | 他のSecondaryの接続先を変更しリロード | ||
+ | < | ||
+ | [root@pg1003 ~]# vi / | ||
+ | host=172.16.0.52 | ||
+ | ↓ | ||
+ | host=172.16.0.51 | ||
+ | [root@pg1003 ~]# systemctl reload postgresql-13.service | ||
+ | </ | ||
===== 参考 ===== | ===== 参考 ===== | ||