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.

simple question about an area im not familiar with.

which one is best for caching?

are there other options?

cause i want to be sure which one to use before i learn it. so i dont have to realize afterwards that it was a bad choice.

so would be great if someone could shed a light on this topic.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

I would choose HAProxy and Varnish over squid at this time for caching static content. Another great and VERY effective way is to cache SQL queries with memcached

When you have the chance to have multiple servers, aim for multiple instances of Cherokee, Nginx or Apache along with a MySQL or PosgreSQL and memcached.

Good luck!

share|improve this answer
    
why would i have multiple instanses of web server (apache, nginx etc). isnt it better to just use apache? cause you always have to invest in learning the softwares you are using, and that takes time and energy. –  ajsie Apr 5 '10 at 8:42
    
Take the one you are more familiar with. By multiple instances of them I meant to have multiple http deamon instance running and load balancing requests. –  Embreau Apr 5 '10 at 21:05
    
but i guess they have to be on seperate machines for this to give a performance improvement? –  ajsie Apr 5 '10 at 21:32
    
Yes, 3 machines is the bare minimum, 4+ is optimal. Server1 and Server2 would have Apache+MySQL+memcached. Server3 & 4 would have your load balancer (HAProxy) and static content cache (Varnish) –  Embreau Apr 5 '10 at 22:03
add comment

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.