[OpenSIPS-Users] How to know how many workers configure / server support

Brett Nemeroff brett at nemeroff.com
Wed May 19 00:56:02 EST 2021


It really depends on your application but I suspect that 200 is overkill.
What CPS are you running? What else is this server doing besides OpenSIPS?
Is your db on the same server? How fast are those queries returning? The
server is spinning doing something. How’s your disk IO look? I’ve seen very
high rate of logging so this. If you remove traffic, does load go back to
0?

On Tue, May 18, 2021 at 6:10 PM Julio Carranza <ti.jcarranza at gmail.com>
wrote:

> Im using "OpenSIPS (3.1.1 (x86_64/linux))" on a server with:
> 128GB on RAM
> 2x Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz (32 cores)
>
> Basically is a redirect server with some logic configured, using mysql
> only to load configuration and redis to store some data, but with 32
> workers configured i receive this messages on cli:
>
>     Process 24 load: 100%, 99%, 99% (SIP receiver udp:XX.79.X.XX:5060)
>     Process 25 load: 100%, 99%, 99% (SIP receiver udp:XX.79.X.XX:5060)
>     Process 26 load: 100%, 99%, 99% (SIP receiver udp:XX.79.X.XX:5060)
>
>     WARNING: the receive queue is NOT empty, SIP signaling may be slower!
>     CRITICAL: 100% avg. currently used worker capacity!!
>
>     Suggestion: see the DNS/SQL/NoSQL diagnosis for any slow query
>                 reports, otherwise increase 'use_workers' or 'udp_workers'!
>
> But when i see *htop* information the server is using few resources less
> than 2.0 of load average.
>
> As a first solution I already increased the number of workers to 200 but
> the question is, how to know how many workers can I configure or which is
> the best practice for this.  (how is a worker internal behavior)
>
> I couldn't find deep information of this on documentation
>
>
> thanks in advance
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210518/e2dab8a6/attachment.html>


More information about the Users mailing list