Memcached or Xcache...or both?
March 13th, 2010 by , under nnmj.com.
I have fairly large forum, 1mil + posts, over 10000 members, up to 300 online at anytime, all on one server, dual xeon, 2gb of RAM...etc
For the most part the load averages hold steady around 1-2.40.....but it spikes at high volume times to over 20 and the forum grinds to a halt.
I've instituted all the standard optimizations in Apache, MySQL and Vbulletin and think it's time to install some type of caching system to improve performance.
I've been reading about about memcached and Xcache and cant decide which one is the best to install. I was thinking memcache first, and then going from there.
Just looking for recommendations.....it seems mySql takes the most load.
Other possibilities include any automated tasks such as backups and cPanel updates.
:D
Actually, I've found that XCache is easier to install than memcache since you need the 'memcached' daemon as well as the 'memcache' php module.
In addition to functioning as an opcode cache, the author has created a mod for vB that will allow you to store your datastore in XCache (which is what you'd be doing with memcache). There is also a plugin for caching your templates as var data.
http://www.vbulletin.org/forum/showthread.php?t=141005
http://www.vbulletin.org/forum/showthread.php?t=139151
In addition to functioning as an opcode cache, the author has created a mod for vB that will allow you to store your datastore in XCache (which is what you'd be doing with memcache). There is also a plugin for caching your templates as var data.
http://www.vbulletin.org/forum/showthread.php?t=141005
http://www.vbulletin.org/forum/showthread.php?t=139151
I've been using XCache as a datastore, but hadn't seen the template caching. Thanks, I'm going to give this hack a try! :)
EDIT: Just a note, if you have XCache and running the datastore hack, try caching your templates. I'm seeing a GREAT speed increase!! Thanks so much for the link!
Well, depends on what "parts" of the templates you have the HTML added in. I have one plugin on a template, but it's only the "navbar" template, so not bad... For those that are running XCache already, it's worth a shot!
We are using Memcached and XCache for quite some time now and it's been very helpful here :)
It's definitely mySQL with a large forum
We are using Memcached and XCache for quite some time now and it's been very helpful here :)
Great...thank you. I think I will start with Memcached first since it addresses mySQL and seems easier to install, see how it works then think about Xcache after that.
:D
#If you have any other info about this subject , Please add it free.# |