<HTML><BODY><div><div>Hi Bogdan</div><div> </div><div>I used:</div><div>modparam("dispatcher", "ds_ping_interval", 30) </div><div> </div><div><br> </div><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">Вторник, 3 марта 2020, 15:26 +03:00 от Bogdan-Andrei Iancu <bogdan@opensips.org>:<br> <div id=""><div class="js-helper js-readmsg-msg"><style type="text/css"></style><div><div id="style_15832384110075858653_BODY"><div class="class_1583246272">Hi Oleg,<br><br>OK, I see that slowly there is a progress on that timer task. Based on the numbers, I see a ~40sec overrun for the timer task. How often do you send the OPTIONS pings in dispatcher?<br><br>Regards,<pre class="moz-signature_mailru_css_attribute_postfix" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext_mailru_css_attribute_postfix" href="https://www.opensips-solutions.com" rel="noopener noreferrer" target="_blank">https://www.opensips-solutions.com</a>
OpenSIPS Summit, Amsterdam, May 2020
<a class="moz-txt-link-freetext_mailru_css_attribute_postfix" href="https://www.opensips.org/events/Summit-2020Amsterdam/" rel="noopener noreferrer" target="_blank">https://www.opensips.org/events/Summit-2020Amsterdam/</a>
</pre><div class="moz-cite-prefix_mailru_css_attribute_postfix">On 2/28/20 1:48 PM, Oleg Podguyko wrote:</div><blockquote type="cite"><div><br><span><span style="color: rgb(34, 34, 34);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: left;text-indent: 0px;text-transform: none;white-space: pre-wrap;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(248, 249, 250);text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;">It was just part of the log. </span><span style="background-color: rgb(248, 249, 250);color: rgb(34, 34, 34);">Here is the whole log and </span></span>scheduled value is changing</div><div> </div><div> </div><div><span><span style="background-color: rgb(248, 249, 250);color: rgb(34, 34, 34);">Feb 26 22:03:58 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number">88872160</span> ms (now <span class="js-phone-number">88902760</span> ms), it may overlap..<br>Feb 26 22:03:59 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number">88872160</span> ms (now <span class="js-phone-number">88903750</span> ms), it may overlap..<br>Feb 26 22:04:00 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number">88872160</span> ms (now <span class="js-phone-number">88904740</span> ms), it may overlap..<br>Feb 26 22:04:01 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number">88872160</span> ms (now <span class="js-phone-number">88905720</span> ms), it may overlap..<br>Feb 26 22:04:02 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number">88872160</span> ms (now <span class="js-phone-number">88906710</span> ms), it may overlap..<br>Feb 26 22:04:03 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number">88872160</span> ms (now <span class="js-phone-number">88907700</span> ms), it may overlap..<br>Feb 26 22:04:04 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number">88872160</span> ms (now <span class="js-phone-number">88908690</span> ms), it may overlap..<br>Feb 26 22:04:05 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number">88872160</span> ms (now <span class="js-phone-number">88909690</span> ms), it may overlap..<br>Feb 26 22:04:06 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number">88872160</span> ms (now <span class="js-phone-number">88910680</span> ms), it may overlap..<br>Feb 26 22:04:07 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number">88872160</span> ms (now <span class="js-phone-number">88911670</span> ms), it may overlap..<br>Feb 26 22:09:37 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number">89212210</span> ms (now <span class="js-phone-number">89241900</span> ms), it may overlap..<br>Feb 26 22:09:38 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number">89212210</span> ms (now <span class="js-phone-number">89242810</span> ms), it may overlap..<br>Feb 26 22:09:39 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number">89212210</span> ms (now <span class="js-phone-number">89243800</span> ms), it may overlap..<br>Feb 26 22:09:40 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number">89212210</span> ms (now <span class="js-phone-number">89244790</span> ms), it may overlap..<br>Feb 26 22:09:41 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number">89212210</span> ms (now <span class="js-phone-number">89245780</span> ms), it may overlap..<br>Feb 26 22:09:42 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number">89212210</span> ms (now <span class="js-phone-number">89246770</span> ms), it may overlap..<br>Feb 26 22:09:43 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number">89212210</span> ms (now <span class="js-phone-number">89247770</span> ms), it may overlap..<br>Feb 26 22:09:44 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number">89212210</span> ms (now <span class="js-phone-number">89248760</span> ms), it may overlap..<br>Feb 26 22:09:45 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number">89212210</span> ms (now <span class="js-phone-number">89249750</span> ms), it may overlap..<br>Feb 26 22:09:46 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number">89212210</span> ms (now <span class="js-phone-number">89250740</span> ms), it may overlap..<br>Feb 26 22:09:47 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number">89212210</span> ms (now <span class="js-phone-number">89251730</span> ms), it may overlap..<br>Feb 26 23:05:48 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for 92582480 ms (now 92612090 ms), it may overlap..<br>Feb 26 23:05:48 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for 92582480 ms (now 92613000 ms), it may overlap..<br>Feb 26 23:05:49 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for 92582480 ms (now 92613990 ms), it may overlap..<br>Feb 26 23:05:50 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for 92582480 ms (now 92614980 ms), it may overlap..<br>Feb 26 23:05:51 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for 92582480 ms (now 92615970 ms), it may overlap..<br>Feb 26 23:05:52 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for 92582480 ms (now 92616960 ms), it may overlap..<br>Feb 26 23:05:53 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for 92582480 ms (now 92617950 ms), it may overlap..<br>Feb 26 23:05:54 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for 92582480 ms (now 92618940 ms), it may overlap..<br>Feb 26 23:05:55 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for 92582480 ms (now 92619930 ms), it may overlap..<br>Feb 26 23:05:56 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for 92582480 ms (now 92620920 ms), it may overlap..<br>Feb 26 23:05:57 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for 92582480 ms (now 92621920 ms), it may overlap..</span></span><br> </div><div> </div><div> </div><div class="mail-quote-collapse"><blockquote style="border-left:1px solid #0857A6;margin:10px;padding:0 0 0 10px;"><span data-email="bogdan@opensips.org" data-name="Bogdan-Andrei Iancu" data-quote-id="1699989752077678271" data-timestamp="1582888320" data-type="sender">Пятница, 28 февраля 2020, 14:12 +03:00 от Bogdan-Andrei Iancu <a class="moz-txt-link-rfc2396E_mailru_css_attribute_postfix" href="//e.mail.ru/compose/?mailto=mailto%3abogdan@opensips.org" rel="noopener noreferrer"><bogdan@opensips.org></a>:<br> </span><div data-quote-id="1699989752077678271" data-type="body"><div id=""><div class="js-helper_mailru_css_attribute_postfix js-readmsg-msg_mailru_css_attribute_postfix"><style type="text/css"></style><div><div id="style_15828883510958796854_BODY_mailru_css_attribute_postfix"><div class="class_1582922036_mailru_css_attribute_postfix"><tt>Actually, looking closer, I see that the "already scheduled" time reported by the ds-pinger never increases, it is stuck to <span class="js-phone-number_mailru_css_attribute_postfix"><span class="js-phone-number">88872160</span></span> . Is this going for ever, with the same scheduled value, never changing, even if running for hours ?</tt><pre class="moz-signature_mailru_css_attribute_postfix_mailru_css_attribute_postfix" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext_mailru_css_attribute_postfix_mailru_css_attribute_postfix" href="https://www.opensips-solutions.com" rel="noopener noreferrer" target="_blank">https://www.opensips-solutions.com</a>
OpenSIPS Summit, Amsterdam, May 2020
<a class="moz-txt-link-freetext_mailru_css_attribute_postfix_mailru_css_attribute_postfix" href="https://www.opensips.org/events/Summit-2020Amsterdam/" rel="noopener noreferrer" target="_blank">https://www.opensips.org/events/Summit-2020Amsterdam/</a>
</pre><div class="moz-cite-prefix_mailru_css_attribute_postfix_mailru_css_attribute_postfix">On 2/28/20 1:04 PM, Oleg Podguyko wrote:</div><blockquote type="cite"><div><div>Hi Bogdan,</div><div> </div><div>- my dispatcher table contains 167 lines</div><div>- all of them are defined as IPs</div><div>- 3 destinaitions via UDP and 163 via SCTP. <br> </div><div class="mail-quote-collapse"><blockquote style="border-left:1px solid #0857A6;margin:10px;padding:0 0 0 10px;"><span data-email="bogdan@opensips.org" data-name="Bogdan-Andrei Iancu" data-quote-id="1699989752077678272" data-timestamp="1582882920" data-type="sender"><span>Пятница, 28 февраля 2020, 12:42 +03:00 от Bogdan-Andrei Iancu <a class="moz-txt-link-rfc2396E_mailru_css_attribute_postfix_mailru_css_attribute_postfix" href="http://e.mail.ru/compose/?mailto=mailto%3abogdan@opensips.org" rel="noopener noreferrer" target="_blank"><bogdan@opensips.org></a>:<br> </span> </span><div data-quote-id="1699989752077678272" data-type="body"><div><div id=""><div class="js-helper_mailru_css_attribute_postfix_mailru_css_attribute_postfix js-readmsg-msg_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><style type="text/css"></style><div><div id="style_15828829490572529979_BODY_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><div class="class_1582909534_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><tt>Hi Oleg,<br><br>The "ds-pinger" is the dispatcher's task for generating the probing pings to the destinations. And it seems it takes a lot of time to this task to do its job (and it has nothing to do with the traffic you have on your opensips).<br><br>So, the destinations in dispatcher:<br>- how many they are ?<br>- are they defined as FQDN or IPs ?<br>- are they via UDP or TCP/TLS ?<br><br>Regards,</tt><pre class="moz-signature_mailru_css_attribute_postfix_mailru_css_attribute_postfix_mailru_css_attribute_postfix" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext_mailru_css_attribute_postfix_mailru_css_attribute_postfix_mailru_css_attribute_postfix" href="https://www.opensips-solutions.com" rel="noopener noreferrer" target="_blank">https://www.opensips-solutions.com</a>
OpenSIPS Summit, Amsterdam, May 2020
<a class="moz-txt-link-freetext_mailru_css_attribute_postfix_mailru_css_attribute_postfix_mailru_css_attribute_postfix" href="https://www.opensips.org/events/Summit-2020Amsterdam/" rel="noopener noreferrer" target="_blank">https://www.opensips.org/events/Summit-2020Amsterdam/</a>
OpenSIPS Bootcamp, Miami, March 2020
<a class="moz-txt-link-freetext_mailru_css_attribute_postfix_mailru_css_attribute_postfix_mailru_css_attribute_postfix" href="https://opensips.org/training/OpenSIPS_Bootcamp_2020/" rel="noopener noreferrer" target="_blank">https://opensips.org/training/OpenSIPS_Bootcamp_2020/</a>
</pre><div class="moz-cite-prefix_mailru_css_attribute_postfix_mailru_css_attribute_postfix_mailru_css_attribute_postfix">On 2/27/20 12:14 PM, Oleg Podguyko via Users wrote:</div><blockquote type="cite"><div>Hello!</div><div> </div><div> </div><div><div><span><span style="color: rgb(34, 34, 34);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: left;text-indent: 0px;text-transform: none;white-space: pre-wrap;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(248, 249, 250);text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;">I use opensips as a proxy. Its task is to convert SIP to SIP-I and vice versa. During busy hours, the number of active dialogs reaches 200 per second and everything worked perfectly I had an accident. Moreover, at the time of occurrence there was no particular load.</span></span></div><div><span><span style="color: rgb(34, 34, 34);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: left;text-indent: 0px;text-transform: none;white-space: pre-wrap;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(248, 249, 250);text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;">opensips stopped processing the load. And in the logs I saw these messages</span></span></div><div> </div><div><span><span style="color: rgb(34, 34, 34);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: left;text-indent: 0px;text-transform: none;white-space: pre-wrap;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(248, 249, 250);text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;">Feb 26 22:03:58 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><span class="js-phone-number_mailru_css_attribute_postfix"><span class="js-phone-number">88872160</span></span></span> ms (now <span class="js-phone-number_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><span class="js-phone-number_mailru_css_attribute_postfix"><span class="js-phone-number">88902760</span></span></span> ms), it may overlap.. Feb 26 22:03:59 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><span class="js-phone-number_mailru_css_attribute_postfix"><span class="js-phone-number">88872160</span></span></span> ms (now <span class="js-phone-number_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><span class="js-phone-number_mailru_css_attribute_postfix"><span class="js-phone-number">88903750</span></span></span> ms), it may overlap.. Feb 26 22:04:00 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><span class="js-phone-number_mailru_css_attribute_postfix"><span class="js-phone-number">88872160</span></span></span> ms (now <span class="js-phone-number_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><span class="js-phone-number_mailru_css_attribute_postfix"><span class="js-phone-number">88904740</span></span></span> ms), it may overlap.. Feb 26 22:04:01 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><span class="js-phone-number_mailru_css_attribute_postfix"><span class="js-phone-number">88872160</span></span></span> ms (now <span class="js-phone-number_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><span class="js-phone-number_mailru_css_attribute_postfix"><span class="js-phone-number">88905720</span></span></span> ms), it may overlap.. Feb 26 22:04:02 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><span class="js-phone-number_mailru_css_attribute_postfix"><span class="js-phone-number">88872160</span></span></span> ms (now <span class="js-phone-number_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><span class="js-phone-number_mailru_css_attribute_postfix"><span class="js-phone-number">88906710</span></span></span> ms), it may overlap.. Feb 26 22:04:03 xx-spx-2 /usr/sbin/opensips[8379]: WARNING:core:timer_ticker: timer task <ds-pinger> already scheduled for <span class="js-phone-number_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><span class="js-phone-number_mailru_css_attribute_postfix"><span class="js-phone-number">88872160</span></span></span> ms (now <span class="js-phone-number_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><span class="js-phone-number_mailru_css_attribute_postfix"><span class="js-phone-number">88907700</span></span></span> ms), it may overlap..</span></span><br> </div><div><br><span><span style="color: rgb(34, 34, 34);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: left;text-indent: 0px;text-transform: none;white-space: pre-wrap;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(248, 249, 250);text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;">if it helps, I use 64 mb for shared memory, 4 mb for pkg memory , and 4 children </span></span></div></div><div> </div><div>--<br>Oleg Podguyko</div> <fieldset class="mimeAttachmentHeader_mailru_css_attribute_postfix_mailru_css_attribute_postfix_mailru_css_attribute_postfix"> </fieldset><pre class="moz-quote-pre_mailru_css_attribute_postfix_mailru_css_attribute_postfix_mailru_css_attribute_postfix" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated_mailru_css_attribute_postfix_mailru_css_attribute_postfix_mailru_css_attribute_postfix" href="http://e.mail.ru/compose/?mailto=mailto%3aUsers@lists.opensips.org" rel="noopener noreferrer" target="_blank">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext_mailru_css_attribute_postfix_mailru_css_attribute_postfix_mailru_css_attribute_postfix" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noopener noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre></blockquote></div></div></div></div></div></div></div></blockquote></div> <div> </div><div data-signature-widget="container"><div data-signature-widget="content"><div>--<br>Олег Подгуйко</div></div></div><div> </div></div></blockquote></div></div></div></div></div></div></blockquote></div><div> <div> </div><div data-signature-widget="container"><div data-signature-widget="content"><div>--<br>Олег Подгуйко</div></div></div><div><br> </div></div></blockquote></div></div></div></div></div></blockquote> <div> </div><div data-signature-widget="container"><div data-signature-widget="content"><div>--<br>Олег Подгуйко</div></div></div><div> </div></div></BODY></HTML>