mod_python versus mod_wsgi

January 6, 2009 at 7:09 pm | 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 :)

Sarah Palin is a Parrot

October 14, 2008 at 11:08 pm | In General | Leave a Comment

I really have to agree with John Cleese…

Deploying Projects With Capistrano

August 27, 2008 at 1:25 pm | In General | Leave a Comment

Not too long ago at work, we added a few more servers to our production deployment to speed things up – however, this made deploying code changes a bit more complicated, as you had to remember to update several servers every time.  I decided to look into Capistrano, which I’d heard about before, and am glad to say it’s working very well, once I managed to figure it out.
Continue reading Deploying Projects With Capistrano…

Useful form tricks in Django

July 24, 2008 at 12:46 am | In django | 9 Comments

Not much text to put in this post, I just want to show a few useful things you can do with a ModelForm in django, so I can quit retyping examples :)
Continue reading Useful form tricks in Django…

Spam bots suck

March 23, 2008 at 11:09 pm | In General | Leave a Comment

Today my blog was hacked, erasing the most recent post in favor of spam links. Thankfully, I was able to recover it from Google’s cache, but I’m tired of all the issues maintaining my own blog.

As a result, I’ve decided to move my blog here, so that I don’t have to deal with the hassle anymore.

Editing multiple objects in Django with forms

February 18, 2008 at 1:45 pm | In django | 6 Comments

A common problem I see when helping people in the Django IRC channel is people who are trying to create or edit multiple objects, but for some reason try to make a single form object to deal with them – this makes things quite convoluted and much harder than they have to be. My goal here is to explain a much simpler method using multiple form objects.
Continue reading Editing multiple objects in Django with forms…

Next Page »

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.