LINUX.ORG.RU

История изменений

Исправление HighMan, (текущая версия) :

попробуй курлануть 192.168.12.10{1,2}:8008/cluster - вангую что тупо patroni не слушает.

#curl 192.168.12.101:8008/
{"state": "running", "postmaster_start_time": "2024-06-27 15:11:17.078799+03:00", "role": "replica", "server_version": 120019, "xlog": {"received_location": 50332776, "replayed_location": 50332776, "replayed_timestamp": null, "paused": false}, "timeline": 3, "dcs_last_seen": 1719497827, "database_system_identifier": "7385148893721311398", "patroni": {"version": "3.0.2", "scope": "pg_cluster"}}

#curl 192.168.12.102:8008/
{"state": "running", "postmaster_start_time": "2024-06-27 15:09:28.828499+03:00", "role": "master", "server_version": 120019, "xlog": {"location": 50332776}, "timeline": 3, "replication": [{"usename": "patroni_replica", "application_name": "host-101", "client_addr": "192.168.12.101", "state": "streaming", "sync_state": "async", "sync_priority": 0}], "dcs_last_seen": 1719497906, "database_system_identifier": "7385148893721311398", "patroni": {"version": "3.0.2", "scope": "pg_cluster"}}

Эти запросы были выполнены с 192.168.12.101

Исходная версия HighMan, :

попробуй курлануть 192.168.12.10{1,2}:8008/cluster - вангую что тупо patroni не слушает.

#curl 192.168.12.101:8008/
{"state": "running", "postmaster_start_time": "2024-06-27 15:11:17.078799+03:00", "role": "replica", "server_version": 120019, "xlog": {"received_location": 50332776, "replayed_location": 50332776, "replayed_timestamp": null, "paused": false}, "timeline": 3, "dcs_last_seen": 1719497827, "database_system_identifier": "7385148893721311398", "patroni": {"version": "3.0.2", "scope": "pg_cluster"}}

#curl 192.168.12.102:8008/
{"state": "running", "postmaster_start_time": "2024-06-27 15:09:28.828499+03:00", "role": "master", "server_version": 120019, "xlog": {"location": 50332776}, "timeline": 3, "replication": [{"usename": "patroni_replica", "application_name": "host-101", "client_addr": "192.168.12.101", "state": "streaming", "sync_state": "async", "sync_priority": 0}], "dcs_last_seen": 1719497906, "database_system_identifier": "7385148893721311398", "patroni": {"version": "3.0.2", "scope": "pg_cluster"}}