<div dir="ltr"><div dir="ltr">Thanks, a lot for your response. <div><br></div><div>I see three options are listed:</div><div>1- Elastic IP, associating an IP with different machines according to which machine is active. but has the drawback of being a public IP.</div><div>2- DNS, associating a DNS with different IPs according to which machine is active,</div><div>3- Modifying a routing table on the network</div><div><br></div><div>the solution that I see can be feasible is using is #2 or #3 if I understand correctly, but on the following conditions:</div><div><br></div><div>1- Do they work with internal IPs.</div><div>2- The changes are instantaneous, I&#39;m afraid DNS might not fulfill this option for example.</div><div><br></div><div>but I need to know what are the proper alternatives for #2 and #3 on Azure? if someone has tested this before and knows if they fulfill the conditions listed above that would help a lot. <div><br></div><div>And in general, doesn&#39;t anyone here have a recommended HA architecture on Azure &quot;apart from Azure services&quot;? I suppose someone must have tried that somewhere?</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 15, 2019 at 4:46 AM Bo Peng &lt;<a href="mailto:pengbo@sraoss.co.jp">pengbo@sraoss.co.jp</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
On Fri, 15 Mar 2019 03:26:01 +0200<br>
Shereef Sakr &lt;<a href="mailto:shereef.sakr@gmail.com" target="_blank">shereef.sakr@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Dears,<br>
&gt; <br>
&gt; Just a kind reminder, if someone can help me in this regard.<br>
&gt; <br>
&gt; On Wed, Mar 13, 2019 at 4:42 PM Shereef Sakr &lt;<a href="mailto:shereef.sakr@gmail.com" target="_blank">shereef.sakr@gmail.com</a>&gt; wrote:<br>
&gt; <br>
&gt; &gt; Dears<br>
&gt; &gt;<br>
&gt; &gt; I&#39;m having a problem regarding a high availability setup on<br>
&gt; &gt; Microsoft Azure since PG Pool high availability depends on the existence of<br>
&gt; &gt; Virtual IP, which simply doesn&#39;t work on Microsoft Azure and is not visible<br>
&gt; &gt; except on the same virtual machine.<br>
<br>
I don&#39;t have so much experience with AWS.<br>
Below is a slide about setup Pgpool-II on AWS, but it is in Japanese.<br>
I hope you can find the solution to setting Virtual IP from page 38 to 46.<br>
<br>
  <a href="https://www.sraoss.co.jp/event_seminar/2017/jpug_20171103_pgpool_aws.pdf" rel="noreferrer" target="_blank">https://www.sraoss.co.jp/event_seminar/2017/jpug_20171103_pgpool_aws.pdf</a><br>
<br>
&gt; &gt; I found the example for Amazon AWS below, but I don&#39;t like the solution<br>
&gt; &gt; that it&#39;s a public IP visible to the internet, and we can&#39;t accept that for<br>
&gt; &gt; security reasons, also I didn&#39;t find a comparable example on Microsoft<br>
&gt; &gt; Azure too.<br>
&gt; &gt;<br>
&gt; &gt; <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>
&gt; &gt;<br>
&gt; &gt; Also in addition to that I tried to disregard the virtual IP and configure<br>
&gt; &gt; my application using both internal IPs of both pg pool servers, but as per<br>
&gt; &gt; my observation I found the following:<br>
&gt; &gt;<br>
&gt; &gt; 1- Double the needed connections are opened to both backend application<br>
&gt; &gt; servers, which shouldn&#39;t be good to Postgres servers performance according<br>
&gt; &gt; to &quot;PostgreSQL High Availability Cookbook&quot; ( that Postgres performance is<br>
&gt; &gt; acceptable when the number of open connection is ~ triple the number of<br>
&gt; &gt; cores)<br>
&gt; &gt; 2- Also I find that both pg pool servers behave as Active/Active and can<br>
&gt; &gt; be used at the same time.<br>
&gt; &gt;<br>
&gt; &gt; So what is the recommended solution in this case?<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Shereef Sakr<br>
&gt; &gt; ------------------------------------------------------------------<br>
&gt; &gt;<br>
&gt; <br>
&gt; <br>
&gt; -- <br>
&gt; Shereef Sakr<br>
&gt; Software Development Manager<br>
&gt; Esri Northeast Africa<br>
&gt; ------------------------------------------------------------------<br>
&gt; Personal Blog: <a href="http://shereefsakr.blogspot.com" rel="noreferrer" target="_blank">shereefsakr.blogspot.com</a><br>
&gt; Technical Blog: <a href="http://fci-h.blogspot.com" rel="noreferrer" target="_blank">fci-h.blogspot.com</a><br>
<br>
<br>
-- <br>
Bo Peng &lt;<a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>&gt;<br>
SRA OSS, Inc. Japan<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Shereef Sakr<br>Software Development Manager<br>Esri Northeast Africa<br>------------------------------------------------------------------<br>Personal Blog: <a href="http://shereefsakr.blogspot.com" target="_blank">shereefsakr.blogspot.com</a><br>Technical Blog: <a href="http://fci-h.blogspot.com" target="_blank">fci-h.blogspot.com</a></div></div></div></div></div></div></div></div>