<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Sachin,<div><br></div><div>Check out pgpool-II (<a href="http://pgpool.projects.postgresql.org/">http://pgpool.projects.postgresql.org/</a>). Using pgpool, you can use postgres 9.0 streaming replication to set up a master server and a hot-standby which can accept read-only queries. pgpool will automatically send read-only transactions to the hot-standby, while writes will be sent to the master database and replicated to the standby using postgres streaming replication. Pgpool will also manage failover and online recovery of your postgres instances. You can then use Pacemaker to make pgpool and a virtual IP pointing to it highly available.</div><div><br></div><div>That being said, implementing a reliable active/passive cluster with Pacemaker is not trivial. I am currently using LSB to manage pgpool, but I plan to write my own OCF resource or test/modify the one provided with the older pgpool-ha project.</div><div><br></div><div>Take care,</div><div><br></div><div>Daniel</div><div><br><div><div>On May 20, 2011, at 7:37 AM, Serge Dubrouski wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br><div class="gmail_quote">On Thu, May 19, 2011 at 11:07 PM, Sachin Gokhale <span dir="ltr"><<a href="mailto:sysadmin@indicussoftware.com">sysadmin@indicussoftware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello,<br>
<br>
I have two nodes active/passive cluster created using documentation from<br>
clusterlabs. Replication is working fine on my setup. I am using this<br>
for Postgresql database.<br>
<br>
But, I am getting how I configure or test Faileover scenario & how can I<br>
add load balancing feature for my Postgres database.<br></blockquote><div><br>Do you need read only load balancing or read/write? First one is possible with PGSQL hot-standby databases, second one isn't possible in PGSQL AFAIK.<br>
<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Looking for your kine help.<br>
Thanks in advance.<br>
<br>
Regards,<br>
<br>
Sachin<br>
******************************************************<br>
Sachin N. Gokhale<br>
System Administrator<br>
<<a href="mailto:sysadmin@indicussoftware.com">sysadmin@indicussoftware.com</a>><br>
Indicus Software Pvt. Ltd.<br>
28' Varshanand Society.<br>
Sinhgad Road Pune - 411038<br>
Tel. No. - 91-20-24341287/88<br>
Fax No. - 91-20-24341289<br>
******************************************************<br>
<br>
<br>
_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org/" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Serge Dubrouski.<br>
_______________________________________________<br>Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br><a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br><br>Project Home: http://www.clusterlabs.org<br>Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf<br>Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker<br></blockquote></div><br><div><br></div>
<br></div></body></html>