Re: [Cppcms-users] Max processes on cppcms lighttpd
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-11-04 11:00:53
|
>________________________________ > From: Shiv Shankar Dayal <shi...@gm...> >To: cpp...@li... >Sent: Sunday, November 4, 2012 10:56 AM >Subject: [Cppcms-users] Max processes on cppcms lighttpd > > >Hi, > >The configuration says max-procs should be one. Why is this restriction? CppCMS provides its own thread pool and process pool. That allows tighter integration between threads/processes for stuff like sharing cache and sessions. > Second point is how is one supposed to run multiple processes and load balance. > Is it mandatory to run second process on another machine and then load balance. > If such is the case how can one achieve vertical scaling. No, it is not mandatory, and of course you can easily do vertical scaling. However you need to use cppcms_scale services for sharing cache that would be shared using network across different nodes. Same for session management. Of course if you use, for example, shared file system, client side session storage or database for session storage you don't need cppcms_scale. So as long as you don't scale to multiple network nodes it is better to use CppCMS with its own process and thread pool rather than letting lighttpd to handle it for you. > >-- >Best regards, >Shiv Shankar Dayal > Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |