<div dir="ltr">Hi, Job!<div>Open transactions will fail on master failover.</div><div>Vertical scaling is naturally limited, especially in cloud environment. IO is usually a bottleneck. After upgrading master to SSD storage, or even RAID10 SSD - you don&#39;t really have much cost-effective options in speeding it up, concidering you have enouch RAM.</div><div>If you expect to scale big - you shoud concider sharding in some point. And it will almost invetibly envolve modifying application logic.</div><div><br></div><div>With best regards, Sergey Melekhin</div></div><div class="gmail_extra"><br clear="all"><div>С Уважением, Сергей Мелехин.</div>
<br><div class="gmail_quote">2014-10-18 10:41 GMT+11:00 Job Cespedes <span dir="ltr">&lt;<a href="mailto:jobcespedes@gmail.com" target="_blank">jobcespedes@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">

<p class="MsoNormal" style="margin-bottom:12pt;line-height:normal"><span style="font-size:12pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;" lang="EN-US">Hi,</span></p>

<p class="MsoNormal"><span style="font-size:12pt;line-height:107%;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;" lang="EN-US">I&#39;m currently researching on
HA, Failover, Autosacaling applications in private clouds. <span> </span>I consider Pgpool2 and Postgres a viable
option for the DB layer. But I have several question about whether to use
horizontal or vertical scaling. So far I think vertical scaling would be the
way to go for the DB layer. Adding more nodes in a master/slave configuration doesn’t
seem right performance-wise and it seems more complex also. Besides I think
could only add more slaves nodes. But maybe someone out there knows better. <br></span></p><p class="MsoNormal"><span style="font-size:12pt;line-height:107%;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;" lang="EN-US"><br></span></p>

<p class="MsoNormal"><span style="font-size:12pt;line-height:107%;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;" lang="EN-US">Anyway my question is the
following:</span></p><p class="MsoNormal"><span style="font-size:12pt;line-height:107%;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;" lang="EN-US"><br></span></p>

<p class="MsoNormal"><span style="font-size:12pt;line-height:107%;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;" lang="EN-US">The promotion of a slave to
master is transparent for the client connected to pgpool or there’s a short
connection loss (data loss)? <br></span></p><p class="MsoNormal"><span style="font-size:12pt;line-height:107%;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;" lang="EN-US"><br></span></p>

<p class="MsoNormal"><span style="font-size:12pt;line-height:107%;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;" lang="EN-US">The scenario I have in mind
is: for vertical scaling I could start by shutting down a slave
node, provisioning more resources, boot again, and promote to master with the
command </span><code><span style="font-size:10pt;line-height:107%" lang="EN-US">pcp_promote_node</span></code><span style="font-size:12pt;line-height:107%;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;" lang="EN-US">, after
that I could do the same with the former master, now slave, and then do an
online recovery. However, I’m not sure this is completely transparent for
clients and whether or not it has zero downtime.</span></p><p class="MsoNormal"><span style="font-size:12pt;line-height:107%;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;" lang="EN-US"><br></span></p>

<p class="MsoNormal"><span style="font-size:12pt;line-height:107%;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;" lang="EN-US">Thanks for any piece of
advice,</span></p><span class="HOEnZb"><font color="#888888"><p class="MsoNormal"><span style="font-size:12pt;line-height:107%;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;" lang="EN-US"><br></span></p>

<div><div><div>-- <br>Job Cespedes<br>
</div></div></div></font></span></div>
<br>_______________________________________________<br>
pgpool-general mailing list<br>
<a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
<br></blockquote></div><br></div>