Re: [OpenSIPS-Users] A doubt on count of child processes, children parameter in cfg.

2016-02-11 Thread Podrigal, Aron
Hint: Do you listen on more then one ip or proto?
On Feb 11, 2016 7:44 PM, "surya"  wrote:

> Hi,
>
> My understanding about the *children* parameter in the cfg file is that the
> same number of child process will be created. For ex: if I write
> *children=1* only 1 child will be created and all the requests will be
> handled by same child. Please correct me if I am wrong.
>
> But, when I start the opensips presence server with *children=1* I see 6
> child inits, still all the requests are processed by one child (which had
> rank 1). Can someone please explain why other child are being init.
>
> Thanks,
> Surya
>
>
>
> --
> View this message in context:
> http://opensips-open-sip-server.1449251.n2.nabble.com/A-doubt-on-count-of-child-processes-children-parameter-in-cfg-tp7601418.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] A doubt on count of child processes, children parameter in cfg.

2016-02-11 Thread Alex Balashov

Hi,

The command 'opensipsctl ps' should clear this up.

e.g. in my case, with children=8,

[root@sip ~]# opensipsctl ps
Process::  ID=0 PID=743932 Type=attendant
Process::  ID=1 PID=743933 Type=MI FIFO
Process::  ID=2 PID=743934 Type=time_keeper
Process::  ID=3 PID=743935 Type=timer
Process::  ID=4 PID=743936 Type=SIP receiver udp:x.x.x.x:5060
Process::  ID=5 PID=743937 Type=SIP receiver udp:x.x.x.x:5060
Process::  ID=6 PID=743938 Type=SIP receiver udp:x.x.x.x:5060
Process::  ID=7 PID=743939 Type=SIP receiver udp:x.x.x.x:5060
Process::  ID=8 PID=743940 Type=SIP receiver udp:x.x.x.x:5060
Process::  ID=9 PID=743941 Type=SIP receiver udp:x.x.x.x:5060
Process::  ID=10 PID=743942 Type=SIP receiver udp:x.x.x.x:5060
Process::  ID=11 PID=743943 Type=SIP receiver udp:x.x.x.x:5060

-- Alex

--
Alex Balashov | Principal | Evariste Systems LLC
303 Perimeter Center North, Suite 300
Atlanta, GA 30346
United States

Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] A doubt on count of child processes, children parameter in cfg.

2016-02-11 Thread surya
Hi,

My understanding about the *children* parameter in the cfg file is that the
same number of child process will be created. For ex: if I write
*children=1* only 1 child will be created and all the requests will be
handled by same child. Please correct me if I am wrong.

But, when I start the opensips presence server with *children=1* I see 6
child inits, still all the requests are processed by one child (which had
rank 1). Can someone please explain why other child are being init.

Thanks,
Surya



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/A-doubt-on-count-of-child-processes-children-parameter-in-cfg-tp7601418.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] A doubt on count of child processes, children parameter in cfg.

2016-02-11 Thread surya
Hi Aron,

Thanks for the reply.

I am just using UDP but with your hint, I rechecked the CFG and disabled the
tcp, set *disable_tcp=yes* and there are 4 child.
I am listening on single IP(I don't know how to do on multiple). :)


Thanks,
Surya



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/A-doubt-on-count-of-child-processes-children-parameter-in-cfg-tp7601418p7601421.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] A doubt on count of child processes, children parameter in cfg.

2016-02-11 Thread surya
I am not opensips expert, therefore, my understanding may not be correct but
when I see the log, I see the 4 child init and the print statements from the
child_init() method 4 times.

But, let me also clear some more things, I have modified the code to use
redis cache and I have put the create connection block in the child_init()
method and same I see in logs. Is this the correct way to create
connections?

Thanks,
Surya



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/A-doubt-on-count-of-child-processes-children-parameter-in-cfg-tp7601418p7601424.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] A doubt on count of child processes, children parameter in cfg.

2016-02-11 Thread Alex Balashov

On 02/11/2016 08:50 PM, surya wrote:


I am facing some performance issues that's why I was thinking about those.


Performance issues of what nature?

--
Alex Balashov | Principal | Evariste Systems LLC
303 Perimeter Center North, Suite 300
Atlanta, GA 30346
United States

Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] A doubt on count of child processes, children parameter in cfg.

2016-02-11 Thread surya
Thanks for the concern. I appreciate that.

It's a  long story

 
to which no one is interested.  However, I understand the community is
focused on the original product.

Basically, I modified the source for a project.( I am not working on
production Opensips). Instead of directly using Mysql, we are exposing it
using REST web service and using Redis as the cache. 

Now, after this, the performance is nowhere near to the original. I can
share more if you are still concerned :)

Thanks,
Surya



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/A-doubt-on-count-of-child-processes-children-parameter-in-cfg-tp7601418p7601428.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] A doubt on count of child processes, children parameter in cfg.

2016-02-11 Thread Alex Balashov

I'm pretty sure that only the SIP receiver threads create DB connections.

-- Alex


--
Alex Balashov | Principal | Evariste Systems LLC
303 Perimeter Center North, Suite 300
Atlanta, GA 30346
United States

Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] A doubt on count of child processes, children parameter in cfg.

2016-02-11 Thread surya
Hi Alex,

Great. Got it :). Thanks.

Process::  ID=0 PID=28493 Type=attendant
Process::  ID=1 PID=28494 Type=MI FIFO
Process::  ID=2 PID=28495 Type=SIP receiver udp:10.0.1.166:5060
Process::  ID=3 PID=28496 Type=time_keeper
Process::  ID=4 PID=28497 Type=timer

Now, I understand the count.

But, Each child creates DB connections but only the PID 28495 will use.
Aren't the other connections wasted?

Thanks,
Surya



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/A-doubt-on-count-of-child-processes-children-parameter-in-cfg-tp7601418p7601422.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] A doubt on count of child processes, children parameter in cfg.

2016-02-11 Thread surya
:)

I am facing some performance issues that's why I was thinking about those.
Anyways, thanks for clearing the doubts.

Thanks,
Surya



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/A-doubt-on-count-of-child-processes-children-parameter-in-cfg-tp7601418p7601426.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users