<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'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't anyone here have a recommended HA architecture on Azure "apart from Azure services"? 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 <<a href="mailto:pengbo@sraoss.co.jp">pengbo@sraoss.co.jp</a>> 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 <<a href="mailto:shereef.sakr@gmail.com" target="_blank">shereef.sakr@gmail.com</a>> wrote:<br>
<br>
> Dears,<br>
> <br>
> Just a kind reminder, if someone can help me in this regard.<br>
> <br>
> On Wed, Mar 13, 2019 at 4:42 PM Shereef Sakr <<a href="mailto:shereef.sakr@gmail.com" target="_blank">shereef.sakr@gmail.com</a>> wrote:<br>
> <br>
> > Dears<br>
> ><br>
> > I'm having a problem regarding a high availability setup on<br>
> > Microsoft Azure since PG Pool high availability depends on the existence of<br>
> > Virtual IP, which simply doesn't work on Microsoft Azure and is not visible<br>
> > except on the same virtual machine.<br>
<br>
I don'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>
> > I found the example for Amazon AWS below, but I don't like the solution<br>
> > that it's a public IP visible to the internet, and we can't accept that for<br>
> > security reasons, also I didn't find a comparable example on Microsoft<br>
> > Azure too.<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>
> > Also in addition to that I tried to disregard the virtual IP and configure<br>
> > my application using both internal IPs of both pg pool servers, but as per<br>
> > my observation I found the following:<br>
> ><br>
> > 1- Double the needed connections are opened to both backend application<br>
> > servers, which shouldn't be good to Postgres servers performance according<br>
> > to "PostgreSQL High Availability Cookbook" ( that Postgres performance is<br>
> > acceptable when the number of open connection is ~ triple the number of<br>
> > cores)<br>
> > 2- Also I find that both pg pool servers behave as Active/Active and can<br>
> > be used at the same time.<br>
> ><br>
> > So what is the recommended solution in this case?<br>
> ><br>
> > --<br>
> > Shereef Sakr<br>
> > ------------------------------------------------------------------<br>
> ><br>
> <br>
> <br>
> -- <br>
> Shereef Sakr<br>
> Software Development Manager<br>
> Esri Northeast Africa<br>
> ------------------------------------------------------------------<br>
> Personal Blog: <a href="http://shereefsakr.blogspot.com" rel="noreferrer" target="_blank">shereefsakr.blogspot.com</a><br>
> Technical Blog: <a href="http://fci-h.blogspot.com" rel="noreferrer" target="_blank">fci-h.blogspot.com</a><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>
<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>