Scaling
Now that you know how to get Django running on a single server, let's look at how you can scale out a Django installation. This section walks through how a site might scale from a single server to a large-scale cluster that could serve millions of hits an hour. It's important to note, however, that nearly every large site is large in different ways, so scaling is anything but a one-size-fits-all operation.
The following coverage should suffice to show the general principle, and whenever possible we'll try to point out where different choices could be made. First off, we'll make a pretty big assumption and exclusively talk about scaling under Apache and mod_python
. Though we know of a number of successful medium-to large-scale FastCGI deployments, ...
Get Mastering Django: Core now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.