[asterisk-users] Fun with virtual asterisks ...

Gordon Henderson gordon+asterisk at drogon.net
Sat Feb 27 05:20:03 CST 2010


On Sat, 27 Feb 2010, Tony Mountifield wrote:

> In article <Pine.LNX.4.64.1002261731010.11353 at unicorn.drogon.net>,
> Gordon Henderson <gordon+asterisk at drogon.net> wrote:
>>
>> So I've been testing asterisk under LXC for a few days now and am very
>> happy with the results. My test server is a 1.8GHz Celeron with 256KB
>> cache and 512MB RAM and I have 20 containers each running asterisk (and
>> apache/php,sendmail and a few other minor things)
>
> Hi Gordon, sounds good fun. I hadn't heard of LXC until you mentioned it
> recently. Have you done any experiments with Meetme yet?

Will be doing some later today when I get more phones to try it with 
(using Page())

I could setup something that creates 20 extensions on each PBX and 19 SIP 
trunks to register to every other PBX, then have them all do a meetme, but 
I don't fancy hand-editing 20 sets of config files - yet. Maybe I'll see 
if I can write a set of scripts to do it!

LXC only has one kernel on the processor, so one copy of dhadi_dummy 
loaded - it really is just like running X copies of asterisk on the same 
processor with their network isolated from each other (and a few other 
things) - so there's no overhead of a hypervisor schedulling multiple 
kernels each schedulling their own jobs.

I did run 20 copies of dhadi_test and they were all in the 99.996% range 
for a few hours.

Asterisk doesn't seem to be able to set real-time mode (-p option) so I'm 
not sure if that will have much effect. It's probably an artifact of the 
way the LXC containers are setup, but there's not much documentation on 
it. I'll need to do a bit more reading/testing before I put this into 
production - which I fully intend to do now.

Cheers,

Gordon



More information about the asterisk-users mailing list