Re: Bind Cherrypy process to a specific core

Andrew Maizels <[email protected]>
Newsgroups gmane.comp.python.cherrypy
Message-ID <CACETAqjbNiTZAAN5QNM_hmT3sT1JjRc2ZETH2-169zvbC-LW0A@mail.gmail.com>
I've found it best to use a server like Gunicorn or uWSGI.  You write and
test your application using CherryPy's built-in server, and when you're
ready to build you can fire it up under one of these servers with no code
changes, just a littler wrapper routine.

I like uWSGI the best; it's fast, very flexible, but also easy to use.  And
while you can install it with pip, it also supports Ruby, PHP, Java, and
other languages.

uWSGI will start up the processes for you, distribute requests, handle
logging, and restart the workers if they die for any reason, so you don't
need to worry about any of that stuff.

On Sat, Jul 2, 2016 at 12:03 AM, Giuliani Sanches <[email protected]
> wrote:

> Hi.
>
> I was reading the history of this group and read that to scale out
> Cherrypy, it's a good practice to start one process per core and adjust the
> thread number.
>
> Do you guys bind each process to a specific core using a tool like taskset
> (Linux) or just start the required process and let to the S.O. decide what
> to do ?
>
> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "cherrypy-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
> To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
> Visit this group at https://groups.google.com/group/cherrypy-users.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Ahh... We are all heroes; you and Boo and I.
Hamsters and rangers everywhere, rejoice!
Read Peopleware!
http://www.amazon.com/Peopleware-Productive-Projects-Teams-Second/dp/0932633439

-- 
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.