|
ServerOptimizations
Methods to optimize the server and improve responsiveness
IntroductionWe're working to keep Review Board lean and mean, but there are things you should do to improve responsiveness. memcachedThe most important thing you can do is install memcached and configure it in settings_local.py. memcached is one of the most preferred caching backends for Django and Review Board and is used to keep various sorts of data in memory for quick retrieval. We use it for expensive operations such as generating the diffs. memcached does well when it has lots of memory to work with. At VMware, we have a dedicated memcached VM with 2GB of RAM. To set up memcache, put the following in settings_local.py: CACHE_BACKEND = "memcached://ipaddress:11211/" Replace ipaddress with the address of the server running memcached. Often this will be 127.0.0.1, if you're running it on the same server as Review Board. GZip compressionYou can significantly reduce the size of the static files (CSS, JavaScript, etc.) by enabling GZip compression on the server. For installation instructions, refer to the Apache 2.0 or lighttpd documentation. |
Sign in to add a comment
To get memcache to work, you also have to have the python memcache bindings installed. (otherwise you'll get an exception thrown in the GUI that you are missing the memcache library). Details on installing the memcache bindings here: http://www.djangobook.com/en/beta/chapter14/