WebFaction
Community site: login faq
0
1

Is it possible (on Webfaction, naturally) to dispense with Apache, and use a webserver with a much smaller memory footprint to serve up my Django application?

The reason I ask is that I keep going over my memory quota with no requests to my application whatsoever (although I do have a number of auxiliary processes, I would still like to minimise my overhead).

asked 22 Mar '12, 09:52

Marcin
3236
accept rate: 0%

edited 22 Mar '12, 10:06


Hi,

There are some options:

  1. You can tune apache, changing the number of processes, threads, and servers running. These settings can all be found in your httpd.conf file. You'll need to restart apache after those changes.
  2. You can use FCGI.
  3. You can use gunicorn.
  4. You can use uwsgi.

The articles in the links should help you get them set up. Keep in mind that you'll need to do some tuning for the configuration of any of those other methods of serving Django apps.

permanent link

answered 22 Mar '12, 10:31

klynton
1.6k1210
accept rate: 41%

Thanks! Very helpful.

(22 Mar '12, 12:13) Marcin
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×225
×97
×62

question asked: 22 Mar '12, 09:52

question was seen: 2,911 times

last updated: 22 Mar '12, 12:13

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM