Hi,
when i ran 10, it showing error like:
[]ubuntu@stress:~$ /usr/share/clearwater/bin/run_stress <home_domain> 10 2
Starting initial registration, will take 0 seconds
Initial registration succeeded
Starting test
Test complete
Traceback (most recent call last):
File "/usr/share/clearwater/bin/run_stress", line 346, in <module>
call_success_rate = 100 * float(row['SuccessfulCall(C)']) /
float(row['TotalCallCreated'])
ZeroDivisionError: float division by zero
Thanks, Please give some solution
Sunil
On Fri, Mar 16, 2018 at 10:50 PM, Michael Duppré <
[email protected]> wrote:
> Hello Sunil,
>
>
>
> It sounds like you have two different problems:
>
> 1. Running `/usr/share/clearwater/bin/run_stress <home_domain> 1800 2`
> doesn’t succeed making any calls
> - The good news is that the initial REGISTERs that the tool sends
> out are working fine as you can see in the output `Initial registration
> succeeded`!
> - To make the calls work, I would suggest just running one call
> with the tool initially and once this works go back to running 1800
> calls.
> To debug this, you should turn on debug logs on Sprout (see
> http://clearwater.readthedocs.io/en/stable/Troubleshooting_
> and_Recovery.html#sprout
>
> <http://clearwater.readthedocs.io/en/stable/Troubleshooting_and_Recovery.html#sprout>),
> run the tool again with one call. Then have a look at the logs of the
> tool
> and the Sprout logs and find out why Sprout is sending back a 503
> response.
> 2. Running `/usr/share/clearwater/bin/run_stress <home_domain> 1800 10
> --icscf-target TARGET=sprout.{domain}:5052 --scscf-target
> TARGET=sprout.{domain}:5054` crashes
> - You probably don’t need to provide more arguments when running
> the tool as it should work with the defaults. So I suggest getting the
> tool
> work without any additional arguments and only use these if you have a
> specific need for additional configuration.
> - The error ` Unknown remote host 'TARGET=sprout.<domain>` says,
> the tool wasn’t able to lookup this domain. In fact, you need to replace
> the word `TARGET` with your full sprout domain. If for example
> `my_ims_domain` is your domain, you would need to run the command as
> follows:
> - `/usr/share/clearwater/bin/run_stress <home_domain> 1800 10
> --icscf-target sprout.my_ims_domain:5052 --scscf-target
> sprout.my_ims_domain:5054`
>
>
>
> Hope this helps, good luck getting the calls to work!
>
>
>
> Kind regards,
>
> Michael
>
>
>
>
>
> *From:* Clearwater [mailto:[email protected]]
> *On Behalf Of *Pushpendra
> *Sent:* 14 March 2018 12:05
> *To:* Bennett Allen <[email protected]>; clearwater@lists.
> projectclearwater.org
> *Subject:* [Project Clearwater] stress testing
>
>
>
> Hi All,
>
> I need to ask few questions regarding stress testing for manual
> installation of clearwater. I am following http://clearwater.
> readthedocs.io/en/stable/Clearwater_stress_testing.html for stress
> testing.
>
> I have set the* local_ip of this node* only in
> * /etc/clearwater/local_config. *I also set *reg_max_expires=1800* in all
> the other node in *shared_config *after that I created the 50000 no. in
> vellum node as given in doc
>
> https://github.com/Metaswitch/crest/blob/dev/docs/Bulk-Provisioning%
> 20Numbers.md?utf8=%E2%9C%93
>
> and then I install the debian package *sudo apt-get install
> clearwater-sip-stress-careonly *on new node.
>
> when I run
>
> /usr/share/clearwater/bin/run_stress <home_domain> 1800 2
>
> Starting initial registration, will take 22 seconds
>
> Initial registration succeeded
>
> Starting test
>
> Test complete
>
>
>
> Elapsed time: 00:02:00
>
> Start: 2018-03-14 18:06:06.635672
>
> End: 2018-03-14 18:08:06.714723
>
>
>
> Total calls: 39
>
> Successful calls: 0 (0.0%)
>
> Failed calls: 39 (100.0%)
>
> Unfinished calls: 0
>
>
>
> Retransmissions: 0
>
>
>
> Average time from INVITE to 180 Ringing: 0.0ms
>
> # of calls with 0-2ms from INVITE to 180 Ringing: 0 (0.0%)
>
> # of calls with 2-10ms from INVITE to 180 Ringing: 0 (0.0%)
>
> # of calls with 10-20ms from INVITE to 180 Ringing: 0 (0.0%)
>
> # of calls with 20-50ms from INVITE to 180 Ringing: 0 (0.0%)
>
> # of calls with 50-100ms from INVITE to 180 Ringing: 0 (0.0%)
>
> # of calls with 100-200ms from INVITE to 180 Ringing: 0 (0.0%)
>
> # of calls with 200-500ms from INVITE to 180 Ringing: 0 (0.0%)
>
> # of calls with 500-1000ms from INVITE to 180 Ringing: 0 (0.0%)
>
> # of calls with 1000-2000ms from INVITE to 180 Ringing: 0 (0.0%)
>
> # of calls with 2000+ms from INVITE to 180 Ringing: 0 (0.0%)
>
> Failed: call success rate 0.0% is lower than target 100.0%!
>
>
>
> Total re-REGISTERs: 120
>
> Successful re-REGISTERs: 120 (100.0%)
>
> Failed re-REGISTERS: 0 (0.0%)
>
>
>
> REGISTER retransmissions: 0
>
>
>
> Average time from REGISTER to 200 OK: 30.0ms
>
>
>
> Log files at /var/log/clearwater-sip-stress/13921_*
>
>
>
> 1. I have not mention new node's IP in any other node of clearwater, how
> the other node know about it?
>
>
>
> My question is, *Do I need to mention the IP of new node in any other
> node of clearwater?*
>
>
>
>
>
> when I run -
>
> []ubuntu@stress:~$ /usr/share/clearwater/bin/run_stress <home_domain>
> 1800 10 --icscf-target TARGET=sprout.{domain}:5052 --scscf-target
> TARGET=sprout.{domain}:5054
>
>
>
> Starting initial registration, will take 22 seconds
>
> Initial registration failed - see /var/log/clearwater-sip-
> stress/14115_initial_reg_errors.log for details of the errors
>
>
>
>
>
>
>
> *[]ubuntu@stress:/var/log/clearwater-sip-stress$ tail -30
> 14115_initial_reg_errors.log*
>
> sipp: The following events occured:
>
> 2018-03-14 18:11:06.637370 1521031266.637370: Unknown remote host
> 'TARGET=sprout.<domain>' (Name or service not known, Inappropriate ioctl
> for device).
>
> Use 'sipp -h' for details.
>
>
>
>
>
> *[]ubuntu@stress:/var/log/clearwater-sip-stress$ cat
> 9923_caller_errors.log*
>
> 2018-03-14 00:32:45.274812 1520967765.274812: Aborting call on
> unexpected message for Call-Id '[email protected]': while expecting '183'
> (index 2), received 'SIP/2.0 503 Service Unavailable
>
> Via: SIP/2.0/TCP 127.0.1.1:34015;received=10.
> 224.61.13;branch=z9hG4bK-9937-54-0
>
> Record-Route: <sip:scscf.sprout. <home_domain> ;transport=TCP;lr;
> billing-role=charge-term>
>
> Record-Route: <sip:scscf.sprout. <home_domain> ;transport=TCP;lr;
> billing-role=charge-orig>
>
> Call-ID: [email protected]
>
> From: <sip:2010000252@<home_domain>>;tag=9937SIPpTag0054
>
> To: <sip:2010000647@ <home_domain> >;tag=z9hG4bKPjJVqopmpeih7pUoxJrYOG7
> CO4-Bm69ozI
>
> CSeq: 1 INVITE
>
> P-Charging-Vector: icid-value="9937SIPpTag0054";
> orig-ioi=<home_domain>;term-ioi=<home_domain>
>
> P-Charging-Function-Addresses: ccf=0.0.0.0
>
> Content-Length: 0
>
>
>
> '.
>
>
>
>
>
>
>
> Regards,
>
>
>
>
>
>
_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/mailman/listinfo/clearwater_lists.projectclearwater.org