Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
ASTRAPI Posted September 20, 2011 Posted September 20, 2011 Hello Is it possible to use memcache for caching sql queries and xcache for php php requests at the same time on ipb v3.2.2 and how? I need a good solution for a huge forum more than 1.000 users online per minute and about 2.000.000 posts. Thank you
Clickfinity Posted September 20, 2011 Posted September 20, 2011 Yes, you can use both:http://community.inv...__fromsearch__1 Also, have a look in the server optimisation forum, you might find some useful related posts to help you optimise for IP.Board. Cheers, Shaun :D
ASTRAPI Posted September 21, 2011 Author Posted September 21, 2011 Ok but the config must contain only one entry memcache or xcache :o This is the part that i don't know how to setup :(
Martin A. Posted September 21, 2011 Posted September 21, 2011 The options you have in IP.Board is where to store the internal cache (content of ibf_cache_store). Personally I would use Memcache for this, and use XCache for general PHP optimization. You may also consider a CDN solution to take some of the strain off your server. I use Cloudflare to handle all my static content, and in the past 30 days it has taken over 50% of the requests to my server.
AlexJ Posted September 21, 2011 Posted September 21, 2011 The options you have in IP.Board is where to store the internal cache (content of ibf_cache_store). Personally I would use Memcache for this, and use XCache for general PHP optimization. You may also consider a CDN solution to take some of the strain off your server. I use Cloudflare to handle all my static content, and in the past 30 days it has taken over 50% of the requests to my server. How to do that? I have no idea how to set up CDN. Also for using memcache and xcache at the same time, how to?
ASTRAPI Posted September 21, 2011 Author Posted September 21, 2011 Also for using memcache and xcache at the same time, how to?
Martin A. Posted September 22, 2011 Posted September 22, 2011 How to do that? I have no idea how to set up CDN. Also for using memcache and xcache at the same time, how to? Setting up Cloudflare is very easy. Register on their site, confirm the DNS entries they managed to fetch (and add missing entries), and you're good to go. Just remember that you have to use direct.<domain>.<tld> when you want to directly access your server (FTP, SSH, etc). You should also notify your members about this change as some users may get a "challenge" page at some point. CloudFlare Tips: Using CloudFlare for your forums Enable Memcache in your conf_global to use that as your cache storage, and install XCache as a regular PHP extension to use that as a global PHP optimizer. See more about that on XCache's website.
ASTRAPI Posted September 22, 2011 Author Posted September 22, 2011 install XCache as a regular PHP extension to use that as a global PHP optimizer. So if i just install xcache it will work as global php optimizer without add the line in the config file and without change anything else on the forum or xcache configuration file? Thank you Martin A for your reply.
Martin A. Posted September 22, 2011 Posted September 22, 2011 That is correct. Optimizing Xcache is out of my league, but you'll find plenty of guides on how to do that on the Internet.
ASTRAPI Posted September 23, 2011 Author Posted September 23, 2011 Yes martin i was not talking about optimization but for configuration settings to use it as global php optimizer on the server for ipb :) Any tutorial on how to setup and configure memcache for ipb? Do i have to install also memcached? Thank you
ASTRAPI Posted September 26, 2011 Author Posted September 26, 2011 It is better if anyone can post here some info so more and more users will benefit than doing the job private.
.Nuno. Posted September 26, 2011 Posted September 26, 2011 Hi, There isn't any advantage of running xCache/APC with Memcache since they are faster in a local environment. Now, if you run a multi-server instance then Memcache with an opcode is the way to go. http://code.google.com/p/memcached/wiki/FAQ#How_does_it_compare_to_a_server_local_cache?_(PHP's_APC,_mm "A local cache benefits over both MySQL query cache and memcached because you can store arbitrary data objects into it, and it does not have latency associated with a fetch over a network." Hope this help.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.