mod_python versus mod_wsgi

January 6, 2009 at 7:09 pm | Posted in General | 8 Comments

So at work recently, we started looking at switching our django setups from mod_python to mod_wsgi, as we kept having memory and cpu use issues with mod_python, and mod_wsgi was supposed to be far better with performance.

Well, it’s only been a day so far, but the results have been very promising. Our memory usage was cut in half, and load bottomed out.

Edit: this is daemon mode with threads=1

Initial testing showed more drastic improvements, so for anyone else testing, take initial results with a grain of salt :)

With that said, here are the actual results:

Just after switching:

mod_python to mod_wsgi

A day after switching:

mod_python-to-mod_wsgi-day-after

Too early to be absolutely sure that everything is working well, but it’s all looking good so far :)

Blog at WordPress.com. | The Pool Theme.
Entries and comments feeds.

Follow

Get every new post delivered to your Inbox.