<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>With SRV, if one box is down will it still get hit or does the
DNS only send to the one that is up?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
users-bounces@lists.opensips.org [mailto:users-bounces@lists.opensips.org] <b>On
Behalf Of </b>Pablo Hernan Saro<br>
<b>Sent:</b> Tuesday, November 25, 2008 8:04 AM<br>
<b>To:</b> Krunal Patel<br>
<b>Cc:</b> users@lists.opensips.org<br>
<b>Subject:</b> Re: [OpenSIPS-Users] Help!! How to do failover of mysql
connection<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>That will not work. Try DNS
SRV. Take a look at this link <a
href="http://www.zytrax.com/books/dns/ch8/srv.html">http://www.zytrax.com/books/dns/ch8/srv.html</a><br>
Hope it helps.<br>
<br>
Pablo<o:p></o:p></p>

<div>

<p class=MsoNormal>On Tue, Nov 25, 2008 at 2:51 AM, Krunal Patel &lt;<a
href="mailto:krunal.lists@gmail.com">krunal.lists@gmail.com</a>&gt; wrote:<o:p></o:p></p>

<p class=MsoNormal>Hi,<br>
<br>
is it fine if I use DSN resolver?<br>
Let me explain in detail:<br>
I setup a DSN resolver &amp; add A record for mysql servers.<br>
mysql&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
href="http://192.168.1.5" target="_blank">192.168.1.5</a><br>
mysql&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
href="http://192.168.1.6" target="_blank">192.168.1.6</a><br>
<br>
where <a href="http://192.168.1.5" target="_blank">192.168.1.5</a> &amp; <a
href="http://192.168.1.6" target="_blank">192.168.1.6</a> are mysql cluster
nodes.<br>
<br>
So <a href="http://mysql.somedomain.com" target="_blank">mysql.somedomain.com</a>
will point to both servers.<br>
It will do load balance &amp; failover both.<br>
<br>
Please confirm that it will not create any issue.<br>
<br>
Thanks,<br>
<span style='color:#888888'>Krunal Patel</span><o:p></o:p></p>

<div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal>On Tue, Nov 25, 2008 at 1:35 AM, Geoffrey Mina &lt;<a
href="mailto:geoffreymina@gmail.com" target="_blank">geoffreymina@gmail.com</a>&gt;
wrote:<o:p></o:p></p>

<p class=MsoNormal>This problem has been solved many times. &nbsp;The absolute
most bomb-proof<br>
MySQL failover solution involves a combination of DRBD &nbsp;and Linux HA<br>
(Heart Beat). &nbsp;The replication model has too many issues IMO.<o:p></o:p></p>

<div>

<div>

<p class=MsoNormal><br>
<br>
<br>
<br>
On Sun, Nov 23, 2008 at 9:10 AM, Uwe Kastens &lt;<a
href="mailto:kiste@kiste.org" target="_blank">kiste@kiste.org</a>&gt; wrote:<br>
&gt; Hi Krunal,<br>
&gt;&gt; &nbsp; &nbsp; * I am having 2 MySql servers. Lets say <a
href="http://192.168.1.5" target="_blank">192.168.1.5</a><br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &lt;<a href="http://192.168.1.5" target="_blank">http://192.168.1.5</a>&gt;
&amp; <a href="http://192.168.1.6" target="_blank">192.168.1.6</a> &lt;<a
href="http://192.168.1.6" target="_blank">http://192.168.1.6</a>&gt;<br>
&gt;&gt; &nbsp; &nbsp; * Opensips is at <a href="http://192.168.1.4"
target="_blank">192.168.1.4</a> &lt;<a href="http://192.168.1.4" target="_blank">http://192.168.1.4</a>&gt;.<br>
&gt;&gt; &nbsp; &nbsp; * I would like to use <a href="http://192.168.1.6"
target="_blank">192.168.1.6</a> &lt;<a href="http://192.168.1.6" target="_blank">http://192.168.1.6</a>&gt;
mysql server<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; for failover.<br>
&gt;&gt; &nbsp; &nbsp; * I mean to say if <a href="http://192.168.1.5"
target="_blank">192.168.1.5</a> &lt;<a href="http://192.168.1.5" target="_blank">http://192.168.1.5</a>&gt;
goes down then<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; opensips should start to use <a
href="http://192.168.1.6" target="_blank">192.168.1.6</a> &lt;<a
href="http://192.168.1.6" target="_blank">http://192.168.1.6</a>&gt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; mysql server.<br>
&gt;&gt;<br>
&gt;<br>
&gt; I am just on my way to implement the same. At the moment I am planing a<br>
&gt; kind of Mysql Master - Master together with one VIP for<br>
&gt; Mysql-opensips-communication. So for your example you will have to<br>
&gt; mysql-servers. opensips is connection to lets say to <a
href="http://192.168.1.4" target="_blank">192.168.1.4</a> which<br>
&gt; points on one of your mysql-servers. You will need active-active for<br>
&gt; mysql since opensips will write some information in the database as well.<br>
&gt;<br>
&gt;<br>
&gt; I am working with mysql-5 and heartbeat-2 in mode 1. Its nearly working.<br>
&gt;<br>
&gt; BR<br>
&gt;<br>
&gt; Kiste<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; kiste lat: 54.322684, lon: 10.13586<br>
&gt;<o:p></o:p></p>

</div>

</div>

<div>

<div>

<p class=MsoNormal>&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></p>

</div>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>