When Django Apps Grow Up
I started using webfaction.com 6 months ago for my Django website hosting. I’ve deployed several sites to their servers with no worries. Things went smoothly with my shared host for a while… then the warning signs that I needed to upgrade began to appear. Within a week it was time to move to a dedicated host. Arkayne.com hit the wall fast.
How Do You Know Its Time To Upgrade?
There were several warning signs that made it clear I needed to upgrade. The surprise was how fast things snowballed. Here is what you need to watch out for when using a shared host for Django applications:
- Your apache process running mod_python sits in the top 5 CPU consuming spots (run top).
- Your find yourself upgrading memory on your shared plan.
- You receive several emails indicating long running processes more and more frequently.
- Your site is sometimes down or very sluggish, proxy and gateway errors are common at this point.
- The admin tells you to optimize code or queries.
- You find yourself optimizing code for the 3rd time.
- Other sites hosted on the same server are running slow.
- Your hits are approaching 10K hits a day.
Can I Stall The Need to Commit?
If any of the above symptoms are present its time to think about a dedicated host. You may argue that optimizing some things can forestall the inevitable, here is what I tried:
| Month | Hits/Day | Optimization | Results |
|---|---|---|---|
| 3 | 1,000 | Optimize MySQL with indexes. | Site became significantly more responsive, processing time cut 80% for batch jobs. |
| 3.5 | 4,000 | Switch static content to be served directly via Apache vs. Django. Webfaction used an Apache proxy, in essence I changed static content like images, JavaScript, and Style Sheets to be served by main Apache instance. | Big improvement in memory usage, CPU dropped slightly. No longer got memory usage emails from the admin team. |
| 4 | 10,000 | Optimized my MySQL queries. | No net effect, even though CPU load decreased the site was growing so quickly that WebFaction shut down my page for a few days. I was bringing down the shared server with alarming regularity. |
What are my options for upgrading?
I spent alot of time on this and made a few mistakes. There are many hosts and the all offer slightly different deals. If youre looking for top of the line servers, inpenetrable security, or quadruple backups with guranteed fail safes then stop reading here. For the rest of you, like myself, you have a growing site and a constant budget. The important thing is to keep the site up and allow it to expand to the next level. I strongly recommned (after much research and discussion among collegues) ServerPronto.
They are the best and most cost effective step after shared hosting. I filled out the online form and within 1 hour received a call to verify I had placed the order and that it met my needs. Within 14 hours I recveived an email with full root login, control panel, and support numbers. Everything worked on the first attempt, my billing was clear and to the point.
From there on it took about 4 hours to migrate my site from WebFaction to ServerPronto. I’m waiting for my DNS to catch up and hope that I haven’t angered too many of my Beta users.
Thanks WebFaction – Shared Hosting just $9.95! for getting me here.
Thanks ServerPronto – Full Dedicated Servers just $29.95! for taking me further.
More from Aware Labs
- Everything A Django Developer Needs To Create Logins
- Goodbye WebFaction Django Hosting – A Reflection
- Painless Amazon EC2 Backup
- Outsourcing Killed By Django And Ruby On Rails
- Porting Aware To Django
Aware Labs Recommends
- Popularizing Django — Or Reusable apps considered harmful. (USwaretech)
- Django’s tipping point (Antonio Cangiano)
- An Interview with Jacob Kaplan-Moss – Creator of Django (USwaretech)
-
pkenjora
-
Simeon
-
Pete
-
Brian
-
pkenjora
-
Pete
-
Ian Ozsvald
-
Observer
-
Mike
-
pkenjora
-
rezzrovvv
-
Noah
-
Anonymous

![Recommend [AwareLabs]](http://s3.amazonaws.com/arkayne-media/img/badge/logo-recommend-badge-medium.png)