From 3f36269b4988c12dc95569be25223a683183e890 Mon Sep 17 00:00:00 2001 From: lzzhang Date: Mon, 22 Jul 2024 18:59:36 +0800 Subject: [PATCH] lvs: No route to host ip lvs have multi node. the vip may be connect failed. test: 1. while true;do ;nc -vz 192.168.0.252 5432 sleep 1; done 2. for (( i=0; i < 100; i++)) do nc -vz 192.168.0.252 5432 done --- .../postgres-operator/postgres/pgsqlcommons/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/kubernetes/postgres-operator/postgres/pgsqlcommons/constants.py b/platforms/kubernetes/postgres-operator/postgres/pgsqlcommons/constants.py index 6b9ae4e..49dbae6 100644 --- a/platforms/kubernetes/postgres-operator/postgres/pgsqlcommons/constants.py +++ b/platforms/kubernetes/postgres-operator/postgres/pgsqlcommons/constants.py @@ -282,7 +282,7 @@ {real_main_servers} }} -virtual_server {read_vip} {port} {{ +virtual_server fwmark 1 {{ delay_loop 10 lb_algo lc lb_kind DR