Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it reasonable decent practice to run varnish on the same host as the django installation it's fronting for? I assume you'd have to configure django so that it leaves enough room in RAM for however much you've allocated to varnish. Is that ok to manage, or is it better to run varnish on its own separate host?

share|improve this question
up vote 0 down vote accepted

That should work just fine - what Varnish needs most is to have its RAM left alone.

If you can reliably keep Apache and the Django app low enough in RAM that Varnish isn't getting its space swapped, then go for it.

Keeping things reliable and predictable is the key - for instance, if some load condition pushes the application's RAM usage up, then Varnish might get slowed down by swapping just when you need it most. Because of this potential for interference, I'd take separate systems in most cases, but you should have no problems if your application is well-behaved.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.