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

Gordon Henderson gordon+asterisk at drogon.net
Fri Feb 26 17:29:15 CST 2010


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)

More for fun than anything else, I've tried daisy-chaining instances 
together - so 20 asterisks running on the same host, 0 calls 1, 1 calls 2, 
2 -> 3... 19 calls 0 - which plays music on hold.

Put a call into 0 - setup through the chain seems to take less than half a 
second and I hear MoH... RTP is passing through each instance as 
canreinvite is set to no. CPU usage was about 6%.

Then for fun I arranged 19 to call the extension in 0 that is the head of 
the chain... It took about 20 seconds before it filled-up with out of file 
handles on the first node... I might cook something cleverer tomorow to 
let it loop so many times then plumb it into Moh before it runs out of 
resources...

However, every node is seeing this from the node that's connecting into 
it:

       -- Got SIP response 489 "Bad event" back from 192.168.254.58

I suspect it's "mostly harmless" but I'd not expect to see it with 
asterisk to asterisk SIP connections...

Anyone think of any other fun things before I throw sipp at it?

(I could probably fit another 20 instances on this CPU too)

Cheers,

Gordon



More information about the asterisk-users mailing list