asked 2012-04-24 16:49:29 -0500zaf
I try to install memcached coz I've realized it solves many things. I have actually 3 askbot sites, one is the production environment and the other two are for development/testing purposes.
memcached -d -m memory -s ~/memcached.sockhow much memory should I set?
PYTHONPATH=$HOME/webapps/django_app/lib/python2.7/ easy_install-2.7 --install-dir=$HOME/webapps/django_app/lib/python2.7/ --script-dir=$HOME/webapps/django_app/bin/ python-memcached?
For the application it does not matter how much memory you assign to the memcached instance (or any other type of cache). If you give less - the application might appear a little slower and that will be all.
Give as much as you can without running out of available memory.
Django application requires between 30 and 40 megabytes per process (that memory for the process itself - cache is a separate issue), if internationalization is enabled (in askbot it is mandatory).
Regarding your setup - I would do development on your home computer. It does help to have identical setup for the staging instance, but if you feel you are limited in the amount of memory - you can have cache-less staging instance (using "dummy" cache backend). Also, you can try setting it up so that you use only one python process to conserve even more memory.
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.create your Q&A site
Asked: 2012-04-24 16:49:29 -0500
Seen: 276 times
Last updated: Apr 28 '12