<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>@font-face {
        font-family: Calibri;
}
@page WordSection1 {margin: 70.85pt 70.85pt 70.85pt 70.85pt; }
P.MsoNormal {
        MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 11pt
}
LI.MsoNormal {
        MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 11pt
}
DIV.MsoNormal {
        MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 11pt
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-FAMILY: "Calibri","sans-serif"; COLOR: windowtext
}
.MsoChpDefault {
        FONT-FAMILY: "Calibri","sans-serif"
}
DIV.WordSection1 {
        
}
</style>
<meta name="GENERATOR" content="MSHTML 8.00.7601.17655">
<style title="owaParaStyle"><!--P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
--></style>
</head>
<body lang="SV" link="blue" vlink="purple" ocsi="x">
<div dir="ltr"><font color="#000000" size="2" face="Tahoma">If one server is supposed to carry the full load of the other during failure, then you have to size each server to handle&nbsp; 100% load - so load balancing is pointless.</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font>&nbsp;</div>
<div dir="ltr"><font size="2" face="tahoma">Checkout haast at <a href="http://www.generationd.com">
www.generationd.com</a> and read&nbsp; the docs on how it does failover...certainly good for ideas.</font></div>
<div dir="ltr">&nbsp;</div>
<div style="DIRECTION: ltr" id="divRpF466360">
<hr tabindex="-1">
<font size="2" face="Tahoma"><b>From:</b> asterisk-users-bounces@lists.digium.com [asterisk-users-bounces@lists.digium.com] On Behalf Of Tobias Steen [tobias.steen@s2.se]<br>
<b>Sent:</b> Saturday, October 01, 2011 6:30 PM<br>
<b>To:</b> Asterisk Users List<br>
<b>Subject:</b> [asterisk-users] Make asterisk cluster appear and operate as a single server?<br>
</font><br>
</div>
<div></div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi, </span></p>
<p class="MsoNormal"><span lang="EN-US"></span>&nbsp;</p>
<p class="MsoNormal"><span lang="EN-US">I'm trying to plan a system of clustered asterisk machines where a number of SIP trunks will be hosted on the platform. Each trunk will be hosted for a specific customer who owns it and therefore payment is handled directly
 between the customers and their trunk-providers, each trunk will have about 50-200 simultaneous calls.
</span></p>
<p class="MsoNormal"><span lang="EN-US"></span>&nbsp;</p>
<p class="MsoNormal"><span lang="EN-US">No SIP phones will be directly connected to the platform, my thought is that the asterisk machines should only receive incoming and make outgoing calls through the trunks, and then connect the calls with each other.
</span></p>
<p class="MsoNormal"><span lang="EN-US"></span>&nbsp;</p>
<p class="MsoNormal"><span lang="EN-US">To make this scalable and have the option of running an infinite number of sip-trunks, I need a good way to load-balance my asterisk servers and implement failover support and also be able to add / replace the machines
 in the cluster in a safe and reliable way. </span></p>
<p class="MsoNormal"><span lang="EN-US"></span>&nbsp;</p>
<p class="MsoNormal"><span lang="EN-US">I'm have some experience building single asterisk solutions but I have never worked with load balancing of multiple asterisk machines.
</span></p>
<p class="MsoNormal"><span lang="EN-US"></span>&nbsp;</p>
<p class="MsoNormal"><span lang="EN-US">Is it possible to configure all trunks on a single asterisk setup which is then reflected over a cluster of asterisk machines? If I have a cluster of machines, I guess I need some kind of front-end application / system?
 I will then also need to be able to connect calls between the machines, the calls to be connected with each other will always be incoming and outgoing on the same trunk.</span></p>
<p class="MsoNormal"><span lang="EN-US"></span>&nbsp;</p>
<p class="MsoNormal"><span lang="EN-US">In other words, I want to create a large cluster of asterisk machines to appear and operate as a single asterisk server.
</span></p>
<p class="MsoNormal"><span lang="EN-US"></span>&nbsp;</p>
<p class="MsoNormal"><span lang="EN-US">I've looked at projects like OpenSIP but it feels like this is not really what I need?
</span></p>
<p class="MsoNormal"><span lang="EN-US"></span>&nbsp;</p>
<p class="MsoNormal"><span lang="EN-US">I really appreciate if someone can help me get on the correct path here, I need all the feedback I can get.</span></p>
<p class="MsoNormal"><span lang="EN-US"></span>&nbsp;</p>
<p class="MsoNormal"><span lang="EN-US"></span>&nbsp;</p>
<p class="MsoNormal">Thanks in advance! </p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">Best regards </p>
<p class="MsoNormal">Tobias</p>
<p class="MsoNormal">&nbsp;</p>
</div>
</div>
</body>
</html>