<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 25, 2017 at 12:11 PM, Ahsan Hadi <span dir="ltr">&lt;<a href="mailto:ahsan.hadi@enterprisedb.com" target="_blank">ahsan.hadi@enterprisedb.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="gmail-">On Wed, Jan 25, 2017 at 9:22 AM, Tatsuo Ishii <span dir="ltr">&lt;<a href="mailto:ishii@sraoss.co.jp" target="_blank">ishii@sraoss.co.jp</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>&gt; You can also understand &quot;auto-failover&quot; as preserving the connection. Right<br>
&gt; now if you have a connection with a master and a stand-by node, the pgpool<br>
&gt; &quot;show pool_nodes&quot; gives you this...<br>
&gt;<br>
&gt; [ec2-user@ip-172-25-1-32 bin]$ ./edb-psql  edb -p 9999 -U ec2-user<br>
&gt;<br>
&gt; edb-psql (9.6.1.6, server 9.5.3.8)<br>
&gt;<br>
&gt; Type &quot;help&quot; for help.<br>
&gt;<br>
&gt; edb=# show pool_nodes;<br>
&gt;<br>
&gt;  node_id |  hostname   | port | status | lb_weight |  role   | select_cnt |<br>
&gt; load_balance_node | replication_delay<br>
&gt;<br>
&gt; ---------+-------------+------<wbr>+--------+-----------+--------<wbr>-+------------+---------------<wbr>----+-------------------<br>
&gt;<br>
&gt;  0       | 172.25.1.33 | 5444 | up     | 0.500000  | primary | 0          |<br>
&gt; false             | 0<br>
&gt;<br>
&gt;  1       | 172.25.1.34 | 5444 | up     | 0.500000  | standby | 0          |<br>
&gt; true              | 0<br>
&gt; (2 rows)<br>
&gt;<br>
&gt; if you bring down the stand-by node, the health-check will kick in and if<br>
&gt; you run the same query again it will fail.<br>
<br>
</span>That&#39;s only happens if the client uses the standby.<br></blockquote><div><br></div></span><div>Correct...After the feature you added to 3.6, if a standby fails that is not being used by the client, the client won&#39;t be affected. That was good step in the right direction. The next step is that if the stand-by fails and the master is still available the client is still not affected, that&#39;s what i am proposing...</div><span class="gmail-"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span><br>
&gt; What i mean by auto-failover is if the master (primary server) is<br>
&gt; available, the auto-failover feature should failover to the master instead<br>
&gt; of throwing an error.<br>
&gt;<br>
&gt; Does that make sense?<br>
<br>
</span>To make it possible we need to think about followings:<br>
<br>
1) We need to migrate all the session properties set in the previous<br>
   session to the new master connection.<br>
<br>
2) If the client was receiving data row from Pgpool-II, it&#39;s hard to<br>
   continue it in the new session.<br>
<br>
3) If the client was in the middle of a transaction, it&#39;s hard to<br>
   continue it in the new session.<br>
<br>
These are not trivial, and I think it&#39;s not worth the problem, to be<br>
honest.<br></blockquote><div><br></div></span><div>Well i think it is debatable whether the feature is worth the effort of not. It affects an application continuity to work if we don&#39;t have the complete auto-failover feature. Do you think it becomes less complex of we don&#39;t provide 3 in the first phase?</div></div></div></div></blockquote><div><br></div><div>Btw this is similar functionality that <span style="font-size:12.8px">Oracle offers called Transparent Application Failover (TAF)...</span> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="gmail-m_4151120540417437195HOEnZb"><div class="gmail-m_4151120540417437195h5"><br>
Best regards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
English: <a href="http://www.sraoss.co.jp/index_en.php" rel="noreferrer" target="_blank">http://www.sraoss.co.jp/index_<wbr>en.php</a><br>
Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.<wbr>jp</a><br>
</div></div></blockquote></span></div><br><br clear="all"><span class="gmail-"><div><br></div>-- <br><div class="gmail-m_4151120540417437195gmail_signature">Ahsan Hadi<br>Snr Director Product Development<br>EnterpriseDB Corporation<br>The Enterprise Postgres Company<br><br>Phone: <a href="tel:(051)%208358874" value="+92518358874" target="_blank">+92-51-8358874</a>    <br>Mobile: <a href="tel:0333%205162114" value="+923335162114" target="_blank">+92-333-5162114</a><br><br>Website: <a href="http://www.enterprisedb.com" target="_blank">www.enterprisedb.com</a><br>EnterpriseDB Blog: <a href="http://blogs.enterprisedb.com/" target="_blank">http://blogs.enterprisedb.com/</a><br>Follow us on Twitter: <a href="http://www.twitter.com/enterprisedb" target="_blank">http://www.twitter.com/<wbr>enterprisedb</a><br><br>This e-mail message (and any attachment) is intended for the use of the individual or entity to whom it is addressed. This message contains information from EnterpriseDB Corporation that may be privileged, confidential, or exempt from disclosure under applicable law. If you are not the intended recipient or authorized to receive this for the intended recipient, any use, dissemination, distribution, retention, archiving, or copying of this communication is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately by reply e-mail and delete this message.</div>
</span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Ahsan Hadi<br>Snr Director Product Development<br>EnterpriseDB Corporation<br>The Enterprise Postgres Company<br><br>Phone: +92-51-8358874    <br>Mobile: +92-333-5162114<br><br>Website: <a href="http://www.enterprisedb.com" target="_blank">www.enterprisedb.com</a><br>EnterpriseDB Blog: <a href="http://blogs.enterprisedb.com/" target="_blank">http://blogs.enterprisedb.com/</a><br>Follow us on Twitter: <a href="http://www.twitter.com/enterprisedb" target="_blank">http://www.twitter.com/enterprisedb</a><br><br>This e-mail message (and any attachment) is intended for the use of the individual or entity to whom it is addressed. This message contains information from EnterpriseDB Corporation that may be privileged, confidential, or exempt from disclosure under applicable law. If you are not the intended recipient or authorized to receive this for the intended recipient, any use, dissemination, distribution, retention, archiving, or copying of this communication is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately by reply e-mail and delete this message.</div>
</div></div>