> I'm going production with my cherrypy site in a few
weeks and need some
> pointers.
>
> Performance replated questions:
> 1. Thre was some discussion about the lowercase api use
only. I'm using
> 2.2rc1. Do I have to do anything explicitly for this?
Yes, just do "cherrypy.lowercase_api = True"
after you import cherrypy.
> 2. My site configuration looks like:
> cherrypy.config.update({'sessionFilter.on': True,
> 'baseUrlFilter.on':True,
'server.environment':'production'})
Well, if you set "lowercase_api" to True then
you have to use the lowercase
names
> What other parametes should I add?
How will you run CP ? Behind Apache ?
The base_url_filter is only needed if you run CP behind
another web server.
Other parameters you might want to consider are:
'server.protocol_version': 'HTTP/1.1',
'server.log_file': xxx,
'server.log_access_file': xxx,
'server.log_to_screen': False, (if you run it as a daemon)
> How many threads should I start
> with?
Well, it depends on your traffic and wether or not you have
some pages that
take a long time to build. If all your pages build very fast
then you can
probably just use a few threads (3-5). If your pages take a
while and you'll
have lots of concurrent users then you can use more ...
> 3. Is there any way to persist the session data to
disk. So that when I
> restart the server all the session data is still
maintained?
Sure. Just set "session_filter.storage_type":
"file" and
"session_filter.storage_path":
"/my_dir"
> 4. Where can I change the expiration of session?
Currently they expire
> in about 10-15 minutes. I would like to change it so
that they never
> expire.
Check out section "1.4.2. Configuring sessions"
of the CP book:
http://www.cherrypy.org/trunk/docs/book/html/index.html
a>
> 5. Any other changes that you may suggest?
You might want to override _cp_on_error so that you get an
e-mail when an
error happens in your application.
> Thanks and wish me luck!!
Good luck And
don't worry, there are lots of production CP sites out
there (including pretty much all my sites) so you're the
first one to go
down that route
Remi.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
|