On Fri, Apr 5, 2019 at 3:38 PM Alexander Mack <ma...@al...> wrote:
>
> Hello,
>
> I was wondering if there is some example configuration for cppcms
> running under a lighttpd available?
>
> I googled of course and found
> http://cppcms.com/wikipp/en/page/cppcms_1x_config#service.worker_threads
>
> But, to be honest, I'm not quite sure which parameters I have to change
> to be able to handle many requests efficiently.
>
In general if you handle very high loads you want to increase backlog
http://cppcms.com/wikipp/en/page/cppcms_1x_config#service.backlog
And number of file descriptors available to the process (ulimit -
system configuration)
see: http://cppcms.com/wikipp/en/page/cppcms_1x_config#daemon.fdlimit
but in general it is more important to change on user permissions
level.
Number of threads is dependent on type of load - if lots of the
threads are waiting for I/O from DB you may need to increase it but in
general it is trial and error approach,
> Thank you very much in advance.
>
> Alexander Mack
>
Regards,
Artyom
|