<div><div dir="auto">Yes I saw Elastic example already.</div></div><div dir="auto">But I don’t want to use it for cost and privacy reasons. </div><div dir="auto"><br></div><div dir="auto">All my servers are in separate subnets but same region.</div><div dir="auto"><br></div><div dir="auto">Any example script of the 3rd option of using routes with private Virtual IP?</div><div dir="auto"><br></div><div dir="auto">Thanks so much for the support...</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 13 Oct 2021 at 5.39, Bo Peng <<a href="mailto:pengbo@sraoss.co.jp">pengbo@sraoss.co.jp</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
The settings of delegate_IP, if_up_cmd,if_down_cmd and arping_cmd are used for on-premises.<br>
If you are running your cluster on AWS, you need to configure <br>
wd_escalation_command and wd_de_escalation_command.<br>
<br>
There are several ways to setup virtual IP on AWS.<br>
<br>
For example:<br>
- use an elastic ip<br>
– configure Route53<br>
– create route tabale for a private VIP<br>
<br>
The following documetation is using an "elastic ip".<br>
<br>
  <a href="https://www.pgpool.net/docs/latest/en/html/example-aws.html" rel="noreferrer" target="_blank">https://www.pgpool.net/docs/latest/en/html/example-aws.html</a><br>
<br>
On Tue, 12 Oct 2021 20:26:04 +0300<br>
Nirav Bhatt <<a href="mailto:niravbhatt.cpp@gmail.com" target="_blank">niravbhatt.cpp@gmail.com</a>> wrote:<br>
<br>
> Hello,<br>
> <br>
> Inside my AWS cloud, I have following 3 servers<br>
> <br>
> (all 3 can reach each other very fine using ping server1, ping server2,<br>
> ping server3 as well as IP address.):<br>
> <br>
> 10.192.10.10 server1<br>
> 10.192.11.20 server2<br>
> 10.192.12.30 server3<br>
> <br>
> 10.192.10.40 Virtual IP (I want this to be private, not elastic which is<br>
> public)<br>
> <br>
> I was testing the following  if_up_cmd command on server1:<br>
> <br>
> /usr/bin/sudo /sbin/ip addr add <a href="http://10.192.10.40/32" rel="noreferrer" target="_blank">10.192.10.40/32</a> dev ens5 label ens5:0<br>
> <br>
> I could see new IP in the ifconfig result:<br>
> <br>
> ens5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9001<br>
>         inet 10.192.10.10  netmask 255.255.255.0  broadcast 10.192.10.255<br>
>         inet6 fe80::4b0:29ff:fe38:3399  prefixlen 64  scopeid 0x20<link><br>
>         ether 06:b0:29:38:33:99  txqueuelen 1000  (Ethernet)<br>
>         RX packets 67233  bytes 67464992 (67.4 MB)<br>
>         RX errors 0  dropped 0  overruns 0  frame 0<br>
>         TX packets 22922  bytes 5116469 (5.1 MB)<br>
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0<br>
> <br>
> ens5:1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9001<br>
>         inet 10.192.10.40  netmask 255.255.255.255  broadcast 10.192.10.255<br>
>         ether 06:b0:29:38:33:99  txqueuelen 1000  (Ethernet)<br>
> <br>
> lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536<br>
>         inet 127.0.0.1  netmask 255.0.0.0<br>
>         inet6 ::1  prefixlen 128  scopeid 0x10<host><br>
>         loop  txqueuelen 1000  (Local Loopback)<br>
>         RX packets 39948  bytes 13976834 (13.9 MB)<br>
>         RX errors 0  dropped 0  overruns 0  frame 0<br>
>         TX packets 39948  bytes 13976834 (13.9 MB)<br>
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0<br>
> <br>
> However, after running the ip addr add, I can not ping the new elastic IP<br>
> 10.192.10.40 from other servers. Only server1 has successful ping.<br>
> <br>
> I tried running arping past the above, but that is also failing.<br>
> <br>
> arping -U 10.192.10.40 -w 1 -I ens5:1<br>
> <br>
> I tried adding and deleting several times, with different IP combinations<br>
> also to suit different AWS subnets, but no result. Server2 and server3<br>
> can't simply reach it.<br>
> <br>
> My system is Ubuntu, the AMI is following, in case it helps:<br>
> ubuntu/images/hvm-ssd/ubuntu-focal-20.04-arm64-server-20211001<br>
> <br>
> Thanks for the support!<br>
> -Nirav<br>
<br>
<br>
-- <br>
Bo Peng <<a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>><br>
SRA OSS, Inc. Japan<br>
<a href="http://www.sraoss.co.jp/" rel="noreferrer" target="_blank">http://www.sraoss.co.jp/</a><br>
</blockquote></div></div>