<div dir="ltr">Hello Tatsuo Ishii. I send some query mails to <a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a> but i don&#39;t get my own messagese. But i do recieve other mails from the forum.<div>

<br></div><div>Can you answer me some questions or forward them to the forum!?</div><div><br></div><div><br></div><div>I&#39;m runing pgpool with streaming replication: pgpool1 - db postgres1 (server 1) and pgpool2 - db postgres 2 (server 2).</div>

<div>I&#39;m using watchdog with a virtual ip and life_check_query.</div><div><br></div><div>It&#39;s all configured and working .... more or less....</div><div><br></div><div>INIT: I start my system: postgres1 is standby database and postgres2 is master (streaming replication).</div>

<div>pgpool1 has the virtual ip.(and pgpool2 no, obviously)</div><div><br></div><div>i connect to database via pgpool and everithing is ok.</div><div>i stop postgres1 and nothing happens because i check new_master &lt;&gt; old_master (no master failure).</div>

<div>i start postgres1 again (and returning it with pgpoolAdmin) or call a recovery and it works great.</div><div><br></div><div>I stop postgres2 and failover fires ... and i get postgres1 as the new primary.</div><div>and so on...</div>

<div><br></div><div>this works fine.</div><div><br></div><div><br></div><div>i go back to INIT again....</div><div>and i do in server2 </div><div>reboot -h now</div><div><br></div><div>i see in the server1 (pgpool1) log that pgpool2 is down...ok</div>

<div>watching the log, i see pgpool1 lost the virtual ip address (!?)....and tell me to restart pgpool....(!?)</div><div><br></div><div>i restart it and i see that failover fires ... but in the failover script i get new_master_node = old_master_node ...and thus i do not make touch and postgres1 keeps as a standby...</div>

<div><br></div><div><br></div><div>I change failover.sh (and the command in the pgpool.conf). i include all parameters to see it&#39;s values when failover.sh start.... <br></div><div><br></div><div>Then, i restart serve2 and &quot;return&quot; database to pgpool....<br>

</div><div><br></div><div>again, pgpool1 has the virtual ip.</div><div>i stop database in node 2 and failover fires.... but pgpool2 does it....and pgpool1 too (!?)</div><div>i check network activity and saw that pgpool2 connects to server1 and make the touch and i did see log from pgpool1 firing the failover command too....</div>

<div><br></div><div><br></div><div><br></div><div>Cuestions....</div><div>1. why pgpool1 lost virtual ip and ask me to restart!?</div><div>2. why pgpool2 fires failover? i thought just the &quot;primary&quot; pgpool (the one with the virtual ip) fires it.</div>

<div><br></div><div><br></div><div>i hope you understand mr.</div><div>tks a lot for your time..</div><div>sorry for my english.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>

<div><br></div><div><br></div><div><br></div></div>