Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] asterisk server stress test


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
dominique.haeber at xi...
Guest





PostPosted: Wed Aug 19, 2015 2:02 am    Post subject: [asterisk-users] asterisk server stress test Reply with quote

Hi all,

i need to test how many calls can withstand an Asterisk server.

Do you know any good tools to strain the server?

At best, there are scripts that I can run on a Linux server.

I thank you for your tips

Sincerely
Dominique Haeber

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
barryf-lists at flanag...
Guest





PostPosted: Wed Aug 19, 2015 5:07 am    Post subject: [asterisk-users] asterisk server stress test Reply with quote

On 19 August 2015 at 08:01, Dominique Haeber <dominique.haeber@xig.ch (dominique.haeber@xig.ch)> wrote:
Quote:

Hi all,

i need to test how many calls can withstand an Asterisk server.

Do you know any good tools to strain the server?

At best, there are scripts that I can run on a Linux server.




SIPP is probably what you seek. http://sipp.sourceforge.net/


Hope this helps.


-Barry Flanagan
Back to top
dominique.haeber at xi...
Guest





PostPosted: Wed Aug 19, 2015 8:14 am    Post subject: [asterisk-users] asterisk server stress test Reply with quote

Hi Barry Flanagan,

Barry Flanagan <barryf-lists@flanagan.ie> schrieb am Mit, 19. Aug 11:06:
Quote:
SIPP is probably what you seek. http://sipp.sourceforge.net/

Hope this helps.

That looks pretty like what I'm looking for! Many thanks!


Sincerely,
Dominique Haeber


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
asterisk.org at sedwar...
Guest





PostPosted: Wed Aug 19, 2015 11:13 am    Post subject: [asterisk-users] asterisk server stress test Reply with quote

On Wed, 19 Aug 2015, Dominique Haeber wrote:

Quote:
Hi Barry Flanagan,

Barry Flanagan <barryf-lists@flanagan.ie> schrieb am Mit, 19. Aug 11:06:
Quote:
SIPP is probably what you seek. http://sipp.sourceforge.net/

Hope this helps.

That looks pretty like what I'm looking for! Many thanks!

Another approach is to use another Asterisk system.

Recently, a customer wanted to confirm his platform would support 500
simultaneous calls.

I wrote a quick bash script to dump 500 call files (at a leisurely pace)
into another host that originated calls to the target host.

--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
jcass78 at gmail.com
Guest





PostPosted: Wed Aug 19, 2015 11:49 am    Post subject: [asterisk-users] asterisk server stress test Reply with quote

Steve, would you be willing to share that "quick bash script"?

jcass78@gmail.com (jcass78@gmail.com)








On Wed, Aug 19, 2015 at 12:11 PM, Steve Edwards <asterisk.org@sedwards.com (asterisk.org@sedwards.com)> wrote:
Quote:
On Wed, 19 Aug 2015, Dominique Haeber wrote:

Quote:
Hi Barry Flanagan,

Barry Flanagan <barryf-lists@flanagan.ie (barryf-lists@flanagan.ie)> schrieb am Mit, 19. Aug 11:06:
Quote:
SIPP is probably what you seek. http://sipp.sourceforge.net/

Hope this helps.

That looks pretty like what I'm looking for! Many thanks!

Another approach is to use another Asterisk system.

Recently, a customer wanted to confirm his platform would support 500 simultaneous calls.

I wrote a quick bash script to dump 500 call files (at a leisurely pace) into another host that originated calls to the target host.

--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards@sedwards.com (sedwards@sedwards.com)      Voice: [url=tel:%2B1-760-468-3867]+1-760-468-3867[/url] PST

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Back to top
asterisk.org at sedwar...
Guest





PostPosted: Wed Aug 19, 2015 12:09 pm    Post subject: [asterisk-users] asterisk server stress test Reply with quote

Please don't top post.

On Wed, 19 Aug 2015, James Cass wrote:

Quote:
Steve, would you be willing to share that "quick bash script"?

There's no magic in the script, but here it is, embarrassing myself:

cp sample-call-file /tmp/
chmod +x /tmp/sample-call-file
for I in $(seq 1 $1)
do
sudo -u asterisk\
cp /tmp/sample-call-file\
/var/spool/asterisk/outgoing/${RANDOM}
done
sleep 10

Here's what's wrong with this snippet:

1) I don't know why I chmod the 'template.' No idea whatsoever. Alcohol
may have been involved.

2) I hate single character variable names. I love alcohol.

3) cp is ill advised. For a testing script, it was easy. For a production
application, use mv.

In use, I would execute it specifying how many call files to create, like
50. Then, take a look at top, iftop, and vmstat. Lather, rinse, repeat to
get to your goal.

--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
markus_weiler at mailw...
Guest





PostPosted: Wed Aug 19, 2015 12:23 pm    Post subject: [asterisk-users] asterisk server stress test Reply with quote

Am 19.08.2015 um 19:07 schrieb Steve Edwards:
Quote:
Please don't top post.

On Wed, 19 Aug 2015, James Cass wrote:

Quote:
Steve, would you be willing to share that "quick bash script"?

There's no magic in the script, but here it is, embarrassing myself:

cp sample-call-file /tmp/
chmod +x /tmp/sample-call-file
for I in $(seq 1 $1)
do
sudo -u asterisk\
cp /tmp/sample-call-file\
/var/spool/asterisk/outgoing/${RANDOM}
done
sleep 10

Here's what's wrong with this snippet:

1) I don't know why I chmod the 'template.' No idea whatsoever.
Alcohol may have been involved.

2) I hate single character variable names. I love alcohol.

3) cp is ill advised. For a testing script, it was easy. For a
production application, use mv.

In use, I would execute it specifying how many call files to create,
like 50. Then, take a look at top, iftop, and vmstat. Lather, rinse,
repeat to get to your goal.


We started the 500 calls and used milliwatt app on the first and record
on the second host to check the quality. Alternatively just start 500+
calls and call yourself on top. So you can get a good idea how the
quality is.

Call-Files are explained on
http://www.voip-info.org/wiki/view/Asterisk+auto-dial+out

Markus

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
sales at sevana.fi
Guest





PostPosted: Thu Aug 20, 2015 5:12 am    Post subject: [asterisk-users] asterisk server stress test Reply with quote

Hi,
 
Curious why didn’t you try AQuA to score the quality? Using voice files for tests has more representation to my opinion.
 
Thanks,
vallu

On Thu, Aug 20, 2015 at 4:11 AM, Pete Mundy <pete@fiberphone.co.nz (pete@fiberphone.co.nz)> wrote:
Quote:
Markus


That's a fascinating concept!


Can you share any more about how you appraised the data and determined your results?


ie once you had the recordings on the second host what did you do do computationally score them? Do you look at the decoded (1khz?) waveform or do you appraise in another way?


Pete


On 20/08/2015, at 5:23 AM, Markus Weiler <markus_weiler@mailworks.org (markus_weiler@mailworks.org)> wrote:

Quote:
Am 19.08.2015 um 19:07 schrieb Steve Edwards:
Quote:
Please don't top post.

On Wed, 19 Aug 2015, James Cass wrote:

Quote:
Steve, would you be willing to share that "quick bash script"?

There's no magic in the script, but here it is, embarrassing myself:

       cp sample-call-file /tmp/
       chmod +x /tmp/sample-call-file
       for     I in $(seq 1 $1)
               do
               sudo -u asterisk\
                       cp /tmp/sample-call-file\
                       /var/spool/asterisk/outgoing/${RANDOM}
               done
   sleep 10

Here's what's wrong with this snippet:

1) I don't know why I chmod the 'template.' No idea whatsoever. Alcohol may have been involved.

2) I hate single character variable names. I love alcohol.

3) cp is ill advised. For a testing script, it was easy. For a production application, use mv.

In use, I would execute it specifying how many call files to create, like 50. Then, take a look at top, iftop, and vmstat. Lather, rinse, repeat to get to your goal.


We started the 500 calls and used milliwatt app on the first and record on the second host to check the quality. Alternatively just start 500+ calls and call yourself on top. So you can get a good idea how the quality is.

Call-Files are explained on http://www.voip-info.org/wiki/view/Asterisk+auto-dial+out

Markus

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
             http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
 http://lists.digium.com/mailman/listinfo/asterisk-users






--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
steve-lists at geekint...
Guest





PostPosted: Thu Aug 20, 2015 7:56 am    Post subject: [asterisk-users] asterisk server stress test Reply with quote

On 20 Aug 2015, at 11:12, Sevana Oy <sales@sevana.fi (sales@sevana.fi)> wrote:
Quote:
Curious why didn’t you try AQuA to score the quality? Using voice files for tests has more representation to my opinion.


Spot the salesman? Wink
Steve
Back to top
markus_weiler at mailw...
Guest





PostPosted: Thu Aug 20, 2015 9:27 am    Post subject: [asterisk-users] asterisk server stress test Reply with quote

Am 20.08.2015 um 03:16 schrieb Pete Mundy:

Quote:


Ah cr@p, sorry Steve, didn't mean to top-post there.



Quote:
On 20/08/2015, at 5:23 AM, Markus Weiler <[url=mailto:markus_weiler@mailworks.org]markus_weiler@mailworks.org (markus_weiler@mailworks.org)[/url]> wrote:
Quote:
We started the 500 calls and used milliwatt app on the first and record on the second host to check the quality. Alternatively just start 500+ calls and call yourself on top. So you can get a good idea how the quality is.




Markus


That's a fascinating concept!


Can you share any more about how you appraised the data and determined your results?


ie once you had the recordings on the second host what did you do do computationally score them? Do you look at the decoded (1khz?) waveform or do you appraise in another way?


Pete














Hi Pete,

we used different approaches.

Just to test the maximum channels a gateway can process the two Methods are enough, you can either listen to the Recordings or look at the waveform.
The easiest approach is to call a colleague and gradually increase the calls on the machine.

For systematic, continuous analysis Voipmonitor is a very useful tool.
We directed the traffic to a mirroring port on the Switch to which we connected a Server running Voipmon.  (http://www.voipmonitor.org/)
Voipmon records the call and rates its quality. You can check the results either using the commercial Web Interface (test for free) or query the mysql DB.
Unfortunately Voipmon tends to crash on a regular basis (at least when we used it), but it's an awesome tool.
The underlying tool pcapsipdump is running a lot more stable, but you need to put a lot more work into it to get started.

hope i could help

Markus
Back to top
dominique.haeber at xi...
Guest





PostPosted: Thu Aug 20, 2015 10:18 am    Post subject: [asterisk-users] asterisk server stress test Reply with quote

Hi Barry Flanagan,

Dominique Haeber <dominique.haeber@xig.ch> schrieb am Mit, 19. Aug 15:13:
Quote:
Barry Flanagan <barryf-lists@flanagan.ie> schrieb am Mit, 19. Aug 11:06:
Quote:
SIPP is probably what you seek. http://sipp.sourceforge.net/

Hope this helps.

That looks pretty like what I'm looking for! Many thanks!

The control file needs some training but I was successful to the
goal, thanks again.

Sincerely,
Dominique Haeber

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

VoiceMeUp - Corporate & Wholesale VoIP Services