Posted by manuj_78 on October 3, 2009 at 9:15pm
Hi,
I am trying to figure out combination of performance modules that can be used on a site (VPS server) without any possible side-effects
So far it seems Boost, javascript_aggregator can be used together on the site.
Can below modules also be be used alongside the above modules?
cache_router
authcache,
fastpath_fscache,
pathcache
blockcache_alter
What about advcache? Can it be used alongside any of the above modules?
http://drupal.org/project/prev_next
Also, which is better to use in terms of caching for a VPS
Database, file, PHP opcode, memory?
Comments
Use APC
Using fastpath_fscache & Boost won't get you much, since they both cache the same thing & Boost supersedes fastpath_fscache.
pathcache should be used with something like memcache.
Installing APC if you don't have it running will give you the best bang for your buck. All the others modules should be fine together, just be aware that authcache is not a drop in.
Many thanks for the reply.. I
Many thanks for the reply..
I still have a few confusions like
Is file based caching or memory based caching quicker? I mean is memcache better or is boosts caching better?
And Cache_router offers file based and memcache caching along with other methods of caching, so which is better to use Cache_router or Boost or should they be used together in some way?
Every site is unique
Read up:
http://groups.drupal.org/node/21897
http://drupal.org/node/326504
Memory is almost always faster then disk. In direct comparison with Boost though, it's not that simple, because Boost bypasses PHP where as memcache uses PHP. Varnish combines the best of both (skips php & uses memory) but is more complex to setup. For 99% of the sites out there Boost vs Varnish gives similar results (2k page hits per second). Switching to ngnix+Boost instead of apache will allow you to hit the 10k page views per second mark most likely. Varnish offers better horizontal scaling, so if you have 100 web servers then varnish is the right choice. This is all for anonymous page views.
Cache Router with APC & memcache for authenticated users is the way to go. Boost does not cache for authenticated users; not sure if Varnish does at the moment.
Benchmarking is the only real way to answer what works best for your site.
A question
It’s seems clear that Cache Router does a fine job with authenticated users. But what about anonymous users? Should we use Cache Router for authenticated users and Boost for anonymous users? Still confused...
Thx.
Depends
If you get a lot of anonymous users, using both is a smart idea. If you mainly get authenticated then you won't benefit much from using Boost. They both work together, just remember that Boost operates at the webserver level (apache) and thus PHP is not run for web requests; allows for faster response times and it means your server can handle more concurrent connections since it has more ram available.
Let’s try this combo: Boost & Cache Router
OK. Let’s try this combo: Boost for anonymous users and Cache router (with memcache) for authenticated users. Any special tips for this combo configuration?
Thx.