Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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.