VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
ashley.ohq at gmail.com Guest
|
Posted: Thu Apr 02, 2009 2:24 am Post subject: [Freeswitch-users] FS failover redundancy & load balanci |
|
|
Hi,
I can't find much info on setting up a redundant or heavy load FreeSwitch implementation. Are there any
links apart from: http://wiki.freeswitch.org/wiki/Enterprise_deployment ?
I imagine the entry level solution is to have two FS boxes configured identitcally, with
redundant SBC software (recommendations?) in front, passing the calls to the primary FS box,
or the backup FS box if the primary is not responding. Is that the easiest solution?
What about a situation of having a level of concurrent calls beyond what one FS box can handle? I realise
that would be a very large number of concurrent calls, but we would need a good plan on how to scale the
systems.
Are there recommendations for load balancing solutions? Either soft or hardware?
My guess would be having 3 + 1 spare FS servers would work, where calls are distributed accross 3 FS boxes
by a load balancer with one spare in event of failure.
Also how would a FS box at max capacity behave? Does FS monitor available resources and reject the
excess calls that it can't handle? Or would the load balancer have to be configured with the maximum number
of calls per box?
Would love to hear some experiences of deploying FS with failover & high load.
Thanks
Ash |
|
Back to top |
|
|
tristan at telemaque.fr Guest
|
Posted: Thu Apr 02, 2009 4:07 am Post subject: [Freeswitch-users] FS failover redundancy & load balanci |
|
|
Hi Ashley,
One easy solution is to use a SIP proxy (opensips/kamailio/...) in front of FS boxes to load balance the charge between boxes.
FS already has mechanisms to limit number of calls per boxes ( in switch.conf.xml: max-sessions and sessions-per-second ),
that you can couple to load_balancing modules of the sip proxies.
Of course you'll have to test to know how many session one box can handle, has it depends a lot on your usage of FS.
Don' hesitate to join us on IRC if you want to discuss it
Regards,
Gled
Ashley van Gerven a écrit : Quote: | Hi,
I can't find much info on setting up a redundant or heavy load FreeSwitch implementation. Are there any
links apart from: http://wiki.freeswitch.org/wiki/Enterprise_deployment ?
I imagine the entry level solution is to have two FS boxes configured identitcally, with
redundant SBC software (recommendations?) in front, passing the calls to the primary FS box,
or the backup FS box if the primary is not responding. Is that the easiest solution?
What about a situation of having a level of concurrent calls beyond what one FS box can handle? I realise
that would be a very large number of concurrent calls, but we would need a good plan on how to scale the
systems.
Are there recommendations for load balancing solutions? Either soft or hardware?
My guess would be having 3 + 1 spare FS servers would work, where calls are distributed accross 3 FS boxes
by a load balancer with one spare in event of failure.
Also how would a FS box at max capacity behave? Does FS monitor available resources and reject the
excess calls that it can't handle? Or would the load balancer have to be configured with the maximum number
of calls per box?
Would love to hear some experiences of deploying FS with failover & high load.
Thanks
Ash
|
|
|
Back to top |
|
|
solko at gcdf.pl Guest
|
Posted: Thu Apr 02, 2009 4:22 am Post subject: [Freeswitch-users] FS failover redundancy & load balanci |
|
|
Ashley van Gerven pisze:
Quote: | Hi,
I can't find much info on setting up a redundant or heavy load
FreeSwitch implementation. Are there any
links apart from: http://wiki.freeswitch.org/wiki/Enterprise_deployment ?
I imagine the entry level solution is to have two FS boxes configured
identitcally, with
redundant SBC software (recommendations?) in front, passing the calls to
the primary FS box,
or the backup FS box if the primary is not responding. Is that the
easiest solution?
What about a situation of having a level of concurrent calls beyond what
one FS box can handle? I realise
that would be a very large number of concurrent calls, but we would need
a good plan on how to scale the
systems.
Are there recommendations for load balancing solutions? Either soft or
hardware?
My guess would be having 3 + 1 spare FS servers would work, where calls
are distributed accross 3 FS boxes
by a load balancer with one spare in event of failure.
Also how would a FS box at max capacity behave? Does FS monitor
available resources and reject the
excess calls that it can't handle? Or would the load balancer have to be
configured with the maximum number
of calls per box?
| I did not think yet about HA nor LB.
I tested how FS handles high load. All my calls are placed in mod_conference. When cpu usage gets it's limits then new calls can
be placed but sound quality is getting worst with every next call. When calls are hanged up then sound gets better. I did not test
it to see what happens when more and more calls are created.
FS has very low memory consumption and I think that CPU is the limit. I did not notice any monitoring of CPU usage by FS, but my
installation is limited to only few modules, so maybe I'm missing something.
Quote: |
Would love to hear some experiences of deploying FS with failover & high
| My failover is currently made by shell script which every 10 seconds check for working FS and restarts it if it does not work.
I use svn trunk so crash happens once a while, but they are successfully fixed by developers.
Once there was a problem that conference module was stuck and did not respond to my commands. I made script with netcat which
checks once a while for response and restarts if there is none.
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Thu Apr 02, 2009 7:10 am Post subject: [Freeswitch-users] FS failover redundancy & load balanci |
|
|
On Apr 2, 2009, at 4:13 AM, Szymon Olko wrote:
Quote: | I did not think yet about HA nor LB.
I tested how FS handles high load. All my calls are placed in mod_conference. When cpu usage gets it's limits then new calls can
be placed but sound quality is getting worst with every next call. When calls are hanged up then sound gets better. I did not test
it to see what happens when more and more calls are created.
FS has very low memory consumption and I think that CPU is the limit. I did not notice any monitoring of CPU usage by FS, but my
installation is limited to only few modules, so maybe I'm missing something. |
Load testing against the conference module is about the worst thing you can do... tossing 100+ people in the same conference isn't going to scale well for load testing because its not something you usually do in a real world scenario. Usually you'll have most of the participants muted.
I highly recommend you try doing something like a bridge or a file playback from a ram disk.
Quote: | Quote: |
Would love to hear some experiences of deploying FS with failover & high
| My failover is currently made by shell script which every 10 seconds check for working FS and restarts it if it does not work.
I use svn trunk so crash happens once a while, but they are successfully fixed by developers.
Once there was a problem that conference module was stuck and did not respond to my commands. I made script with netcat which
checks once a while for response and restarts if there is none.
|
Brian West
brian@freeswitch.org (brian@freeswitch.org)
-- Meet us a ClueCon! http://www.cluecon.com |
|
Back to top |
|
|
solko at gcdf.pl Guest
|
Posted: Thu Apr 02, 2009 2:41 pm Post subject: [Freeswitch-users] FS failover redundancy & load balanci |
|
|
Brian West pisze:
Quote: |
On Apr 2, 2009, at 4:13 AM, Szymon Olko wrote:
Quote: | I did not think yet about HA nor LB.
I tested how FS handles high load. All my calls are placed in
mod_conference. When cpu usage gets it's limits then new calls can
be placed but sound quality is getting worst with every next call.
When calls are hanged up then sound gets better. I did not test
it to see what happens when more and more calls are created.
FS has very low memory consumption and I think that CPU is the limit.
I did not notice any monitoring of CPU usage by FS, but my
installation is limited to only few modules, so maybe I'm missing
something.
|
Load testing against the conference module is about the worst thing you
can do... tossing 100+ people in the same conference isn't going to
scale well for load testing because its not something you usually do in
a real world scenario. Usually you'll have most of the participants muted.
I highly recommend you try doing something like a bridge or a file
playback from a ram disk.
| I did not described it perfectly. I made agents, queues scenarios on conferences.
This what I tested was for example 100 calls, so it's 200 channels, and 100 conferences, 2 channels per conference, all are
unmuted. I did that just because it is my work scenario.
Quote: | Quote: | Quote: |
Would love to hear some experiences of deploying FS with failover & high
| My failover is currently made by shell script which every 10 seconds
check for working FS and restarts it if it does not work.
I use svn trunk so crash happens once a while, but they are
successfully fixed by developers.
Once there was a problem that conference module was stuck and did not
respond to my commands. I made script with netcat which
checks once a while for response and restarts if there is none.
|
Brian West
brian@freeswitch.org <mailto:brian@freeswitch.org>
-- Meet us a ClueCon! http://www.cluecon.com <http://www.cluecon.com/>
------------------------------------------------------------------------
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Thu Apr 02, 2009 2:42 pm Post subject: [Freeswitch-users] FS failover redundancy & load balanci |
|
|
what kind of hardware?
/b
On Apr 2, 2009, at 2:29 PM, Szymon Olko wrote:
Quote: | I did not described it perfectly. I made agents, queues scenarios on conferences.
This what I tested was for example 100 calls, so it's 200 channels, and 100 conferences, 2 channels per conference, all are
unmuted. I did that just because it is my work scenario. |
Brian West
brian@freeswitch.org (brian@freeswitch.org)
-- Meet us a ClueCon! http://www.cluecon.com |
|
Back to top |
|
|
solko at gcdf.pl Guest
|
Posted: Thu Apr 02, 2009 3:22 pm Post subject: [Freeswitch-users] FS failover redundancy & load balanci |
|
|
Brian West pisze:
Quote: | what kind of hardware?
| I made testes on Pentium-M laptop with single core 1,6Hz. I did not write those results, it was over 100 calls that was handle
good, I was just curios what will happen. Tomorrow I will make real testes. My production works on 2 core P4 and I have there only
35 agents CPU load is like 7% with 15% small peeks.
All phones are sip or analog via sip gateways, PRI is currently still on asterisk which is connected via sip.
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
red.rain.seven at gmai... Guest
|
Posted: Thu Apr 02, 2009 5:34 pm Post subject: [Freeswitch-users] FS failover redundancy & load balanci |
|
|
How do you load balance conference calls? Doesn't all the conference members have to be on the same freeswitch server?
On Thu, Apr 2, 2009 at 1:07 PM, Szymon Olko <solko@gcdf.pl> wrote:
Quote: | Brian West pisze:
Quote: | what kind of hardware?
| I made testes on Pentium-M laptop with single core 1,6Hz. I did not write those results, it was over 100 calls that was handle
good, I was just curios what will happen. Tomorrow I will make real testes. My production works on 2 core P4 and I have there only
35 agents CPU load is like 7% with 15% small peeks.
All phones are sip or analog via sip gateways, PRI is currently still on asterisk which is connected via sip.
Quote: | /b
On Apr 2, 2009, at 2:29 PM, Szymon Olko wrote:
Quote: | I did not described it perfectly. I made agents, queues scenarios on
conferences.
This what I tested was for example 100 calls, so it's 200 channels,
and 100 conferences, 2 channels per conference, all are
unmuted. I did that just because it is my work scenario.
|
Brian West
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
--
Henry Huang
UniC Solution - Communication Unified
VoIP & Open Source software Consultant |
|
Back to top |
|
|
solko at gcdf.pl Guest
|
Posted: Fri Apr 03, 2009 2:35 am Post subject: [Freeswitch-users] FS failover redundancy & load balanci |
|
|
Henry Huang pisze:
Quote: | How do you load balance conference calls? Doesn't all the conference
members have to be on the same freeswitch server?
| As I wrote I do not load balance them yet. I didn't investigate that but what comes to my mind is to setup 2 FS end register
agents to one of them (load balance them), sip phones through proxy server.
Then one separate FS for incoming calls and in that FS place my queue system. When incoming call needs to be connected to agent
then right FS machine would be choosen.
This just idea I believe that in time I will need something like that FS developers will give us some modules or other options.
Quote: | On Thu, Apr 2, 2009 at 1:07 PM, Szymon Olko <solko@gcdf.pl> wrote:
Brian West pisze:
Quote: | what kind of hardware?
| I made testes on Pentium-M laptop with single core 1,6Hz. I did not
write those results, it was over 100 calls that was handle
good, I was just curios what will happen. Tomorrow I will make real
testes. My production works on 2 core P4 and I have there only
35 agents CPU load is like 7% with 15% small peeks.
All phones are sip or analog via sip gateways, PRI is currently
still on asterisk which is connected via sip.
Quote: | /b
On Apr 2, 2009, at 2:29 PM, Szymon Olko wrote:
Quote: | I did not described it perfectly. I made agents, queues scenarios on
conferences.
This what I tested was for example 100 calls, so it's 200 channels,
and 100 conferences, 2 channels per conference, all are
unmuted. I did that just because it is my work scenario.
|
Brian West
brian@freeswitch.org <mailto:brian@freeswitch.org>
| <mailto:brian@freeswitch.org <mailto:brian@freeswitch.org>>
<http://www.cluecon.com/>
------------------------------------------------------------------------
<mailto:Freeswitch-users@lists.freeswitch.org>
Quote: | http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
| UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
Quote: | http://www.freeswitch.org
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
<mailto:Freeswitch-users@lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Henry Huang
UniC Solution - Communication Unified
VoIP & Open Source software Consultant
------------------------------------------------------------------------
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
pablosaro at gmail.com Guest
|
Posted: Fri Apr 03, 2009 8:55 am Post subject: [Freeswitch-users] FS failover redundancy & load balanci |
|
|
Hi Ashley,
A very simple HA solution can be achieved by using SRV. But according to your email, the solution that comes to my mind is the following:
PSTN Gw --> OpenSIPs stateless w/ dispatcher module --> many FS boxes
And if you want a balanced distribution of the calls, you can write a piece of code to keep statistics of your active sessions in a db. Each time a call arrives to a FS box, you trigger your piece of code to store a session record in a db and when the call ends you update the statistics in the db.
This way, OpenSIPs can ask this db before making the decision where to route an incoming call.
Fail over? If OpenSIPs gets a time out, just try with the next FS box.
I hope it helps you.
Pablo
2009/4/2 Ashley van Gerven <ashley.ohq@gmail.com (ashley.ohq@gmail.com)>
Quote: | Hi,
I can't find much info on setting up a redundant or heavy load FreeSwitch implementation. Are there any
links apart from: http://wiki.freeswitch.org/wiki/Enterprise_deployment ?
I imagine the entry level solution is to have two FS boxes configured identitcally, with
redundant SBC software (recommendations?) in front, passing the calls to the primary FS box,
or the backup FS box if the primary is not responding. Is that the easiest solution?
What about a situation of having a level of concurrent calls beyond what one FS box can handle? I realise
that would be a very large number of concurrent calls, but we would need a good plan on how to scale the
systems.
Are there recommendations for load balancing solutions? Either soft or hardware?
My guess would be having 3 + 1 spare FS servers would work, where calls are distributed accross 3 FS boxes
by a load balancer with one spare in event of failure.
Also how would a FS box at max capacity behave? Does FS monitor available resources and reject the
excess calls that it can't handle? Or would the load balancer have to be configured with the maximum number
of calls per box?
Would love to hear some experiences of deploying FS with failover & high load.
Thanks
Ash
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
|
|
Back to top |
|
|
kristian.kielhofner at... Guest
|
|
Back to top |
|
|
pablosaro at gmail.com Guest
|
|
Back to top |
|
|
grevenx at me.com Guest
|
Posted: Fri Apr 03, 2009 5:56 pm Post subject: [Freeswitch-users] FS failover redundancy & load balanci |
|
|
Where do you guys read that it's in alpha?On the opensips.org they proclaim OpenSips 1.5 released,
with that module being one of the new features. I don't see any mention of it being alpha/beta functionality?
Best regards,
Even André
On 4. april. 2009, at 00.30, Pablo Hernan Saro wrote:
|
|
Back to top |
|
|
pablosaro at gmail.com Guest
|
Posted: Fri Apr 03, 2009 6:36 pm Post subject: [Freeswitch-users] FS failover redundancy & load balanci |
|
|
Not opensips but the module is in alpha. In the modules doc page says
"alpha/new".
Pablo
On 4/3/09, Even André Fiskvik <grevenx@me.com> wrote:
Quote: | Where do you guys read that it's in alpha?
On the opensips.org they proclaim OpenSips 1.5 released,
with that module being one of the new features. I don't see any
mention of it being alpha/beta functionality?
Best regards,
Even André
On 4. april. 2009, at 00.30, Pablo Hernan Saro wrote:
Quote: | Hi Kristian, you're right. Definitively that will be best solution
as soon as it's released as stable (it's alpha now).
http://www.opensips.org/index.php?n=Resources.DocsTutLoadbalancing
Pablo
On Fri, Apr 3, 2009 at 6:42 PM, Kristian Kielhofner
<kristian.kielhofner@gmail.com
You could try (although it's somewhat bleeding edge) to use OpenSIPS
1.5 with load_balancer (not heavily tested, btw) in front of some
FreeSWITCH machines:
http://www.opensips.org/html/docs/modules/devel/load_balancer.html
2009/4/2 Ashley van Gerven <ashley.ohq@gmail.com>:
Quote: | Hi,
I can't find much info on setting up a redundant or heavy load
| FreeSwitch
?
Quote: |
I imagine the entry level solution is to have two FS boxes
| configured
Quote: | identitcally, with
redundant SBC software (recommendations?) in front, passing the
| calls to the
Quote: | primary FS box,
or the backup FS box if the primary is not responding. Is that the
| easiest
Quote: | solution?
What about a situation of having a level of concurrent calls
| beyond what one
Quote: | FS box can handle? I realise
that would be a very large number of concurrent calls, but we
| would need a
Quote: | good plan on how to scale the
systems.
Are there recommendations for load balancing solutions? Either
| soft or
Quote: | hardware?
My guess would be having 3 + 1 spare FS servers would work, where
| calls are
Quote: | distributed accross 3 FS boxes
by a load balancer with one spare in event of failure.
Also how would a FS box at max capacity behave? Does FS monitor
| available
Quote: | resources and reject the
excess calls that it can't handle? Or would the load balancer have
| to be
Quote: | configured with the maximum number
of calls per box?
Would love to hear some experiences of deploying FS with failover
| & high
--
Kristian Kielhofner
http://blog.krisk.org
http://www.submityoursip.com
http://www.astlinux.org
http://www.star2star.com
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
|
--
Sent from Gmail for mobile | mobile.google.com
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
kristian.kielhofner at... Guest
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|