<div dir="ltr"><div><div>Hello Lei,<br><br></div>   Both ways can be used, depends if you want your database to be accessible outside the datacenter network as highly available then FIP can be used , if it would internal services that would be using database , then you can implement using Fixed ips , but for that , you need to mark fixed_ip as  reserved in the nova database fixed_ip table the ip you would be using as a virtual ip, otherwise ip would be allocated to another vm you provision in openstack.<br>
</div>I hope that gives the answer.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 8, 2013 at 4:53 PM, Lei Zhang <span dir="ltr"><<a href="mailto:zhang.lei.fly@gmail.com" target="_blank">zhang.lei.fly@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Syed,<div>Thanks for you quickly reply. But What I want is HA between VMs not HA between Physical Machine(Openstack Node/ Services)</div>
</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">

On Mon, Apr 8, 2013 at 7:20 PM, Syed Armani <span dir="ltr"><<a href="mailto:syed.armani@hastexo.com" target="_blank">syed.armani@hastexo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hi Lei Zhang,<br>
<br>
You can find more information about HA in OpenStack in this guide:<br>
<a href="http://docs.openstack.org/trunk/openstack-ha/content/index.html" target="_blank">http://docs.openstack.org/trunk/openstack-ha/content/index.html</a><br>
<br>
Best regards,<br>
Syed Armani<br>
<div><div><br>
On Monday 08 April 2013 04:46 PM, Lei Zhang wrote:<br>
> Hi all,<br>
><br>
> I am using Folsom, and I want to set up a HA between VMs. For example, I<br>
> have two DB VMs. One is the primary and other is a slave. I want to use<br>
> Keepalive or pacemake to switch between them when one is failed.<br>
><br>
> But how to implement this? Because in general, we need a dynamic IP to<br>
> associate to the VMs and change the relationship when necessary. But<br>
> which IP should be used ? Floating ip or Fixed IP? and how.<br>
><br>
> --<br>
> Lei Zhang<br>
><br>
> Blog: <a href="http://jeffrey4l.github.com" target="_blank">http://jeffrey4l.github.com</a><br>
> twitter/weibo: @jeffrey4l<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
> Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
> Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
> More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Lei Zhang</span></div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><br>


</span></div><div><font face="arial, sans-serif">Blog: <a href="http://jeffrey4l.github.com" target="_blank">http://jeffrey4l.github.com</a></font></div><div>twitter/weibo: @jeffrey4l</div>
</div>
</div></div><br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><p style="margin:0cm 0cm 0pt;color:rgb(0,0,153)"><b><span style="font-size:10pt;font-family:Arial"> With Regards  <br></span></b></p><p style="margin:0cm 0cm 0pt;color:rgb(0,0,153)">
<b><span style="font-size:10pt;font-family:Arial"> Ritesh Nanda<br></span></b></p><p style="margin:0cm 0cm 0pt;color:rgb(0,0,153)"></p><p style="margin:0cm 0cm 0pt;color:rgb(51,51,51)"><span style="color:rgb(0,0,153)"></span><span style="font-size:9pt;color:rgb(51,51,51);font-family:Arial"><span style="color:rgb(51,51,255)"><b><span style="color:rgb(0,0,153)"></span></b></span></span><span style="font-size:9pt;color:rgb(51,51,51);font-family:Arial"><span style="color:rgb(51,51,255)"><b><span style="color:rgb(0,0,153)"><br>
</span></b></span></span></p><a href="http://www.ericsson.com/" target="_blank"></a><p style="margin:0cm 0cm 0pt"><span style="font-size:9pt;font-family:Arial"><br><br></span></p>
</div>