Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Platinumwealth.co.za Posted March 8, 2019 Posted March 8, 2019 Which one should I use, my server supports both.
ASTRAPI Posted March 8, 2019 Posted March 8, 2019 Hello 🙂 Redis is the best for the latest IPS suite .... Second option is Memcached. Other than that according to my tests Apcu was not performing very well and after a high load i got also degraded performance so it is not recommended.
Platinumwealth.co.za Posted March 8, 2019 Author Posted March 8, 2019 How would one go about setting up Redis on Cpanel, is that possible?
ASTRAPI Posted March 8, 2019 Posted March 8, 2019 Sure it is possible 🙂 As i am not using Cpanel i can't provide you a tested tutorial but you can find many on Google like: https://tecadmin.net/install-redis-cpanel/ You may just need to adjust only the php path related to the version that you are using... Maybe there is an even easier way.... Just google it. Remember that you must install Redis and Php Redis extension and they are two separated things ...
Platinumwealth.co.za Posted March 9, 2019 Author Posted March 9, 2019 Don't think that is possible, you can't edit any of those things on shared hosting. Will check with my host.
DreamOn Posted March 9, 2019 Posted March 9, 2019 Go for Memcached, best cache ever (even more since v1.5.0) 👌 https://github.com/memcached/memcached
ASTRAPI Posted March 9, 2019 Posted March 9, 2019 Quote Don't think that is possible, you can't edit any of those things on shared hosting. Then you must ask the server owner to install it and enable it...
bfarber Posted March 11, 2019 Posted March 11, 2019 We would recommend using Redis among the options available.
Platinumwealth.co.za Posted March 12, 2019 Author Posted March 12, 2019 Hey, @bfarber help me understand this, when you select Redis as the storage mechanism is that ONLY for cache or does it replace MySQL (I assume not), the wording on that page in the adminCP is a bit confusing as to the extent that REDIS will be used. From my understanding redis is memory so if the redis server restarts the data is lost.
bfarber Posted March 12, 2019 Posted March 12, 2019 There are a couple of options present, but effectively if you choose to use Redis for the data storage option, then certain caches that we place in what we call a "data store" will be put in redis. You can also use MySQL or disk for these caches. There is also an option to use Redis to handle a few other functions, such as session management and topic view temporary counter storage. MySQL will always be used to store your persistent data, because as you said, restarting the server can't also result in restarting your community.
Platinumwealth.co.za Posted March 12, 2019 Author Posted March 12, 2019 57 minutes ago, bfarber said: MySQL will always be used to store your persistent data, because as you said, restarting the server can't also result in restarting your community. Got it, that is what I thought. I just wanted to be super sure. I suppose external Redis defeats the purpose due to tpc latency. (Can't use Redis on shared hosting (memory is accessible by others) so I suppose APC is probably the best atm for shared hosting.
bfarber Posted March 12, 2019 Posted March 12, 2019 We encode the content stored in Redis so you shouldn't have too many concerns about shared hosting. Also, Redis could be set up on an external server but on the internal network, so network latency is almost a non-issue at that point. Still, it's really only going to be worth it if your site is measurably getting "bigger". If you have 100 posts and 10 users online for instance, the improvements would likely not even be measurable. If you have 10,000,000 posts and 1,000 users actively browsing, the gains would be worthwhile.
Runar Posted March 12, 2019 Posted March 12, 2019 8 hours ago, bfarber said: If you have 100 posts and 10 users online for instance, the improvements would likely not even be measurable. If you have 10,000,000 posts and 1,000 users actively browsing, the gains would be worthwhile. I understand those numbers are not meant to be taken literally, but what about the sites that fall in between? I have a site with 400,000 posts and about 4,000 members, is it worth the time and money to set up Redis and try or am I better of with memcached?
bfarber Posted March 13, 2019 Posted March 13, 2019 It's hard to answer that definitively. The user counts that really matter are how many users there are online simultaneously using the site, rather than the total number of registered users. If you have 4000 people online at once, then extra caching layers will definitely help. If you have 4 online at once, they're probably not going to make much difference.
AtariAge Posted March 24, 2019 Posted March 24, 2019 On 3/12/2019 at 8:35 AM, bfarber said: There are a couple of options present, but effectively if you choose to use Redis for the data storage option, then certain caches that we place in what we call a "data store" will be put in redis. You can also use MySQL or disk for these caches. There is also an option to use Redis to handle a few other functions, such as session management and topic view temporary counter storage. MySQL will always be used to store your persistent data, because as you said, restarting the server can't also result in restarting your community. As I'm actively working on migrating my 3.4.8 forum to 4.4.2, I'd like to employ an appropriate caching solution. I typically have over 1,000 active users in the middle of the day, so I'm sure caching would be worthwhile. I've never used Redis before, and I'm not too terribly familiar with it yet, but based on your recommendation I'm going to install it and try it out. I'm quite curious about the "data storage option". The description just states it saves "arbitrary data". I assume attachments are always stored using the file system? Can you be a bit more explicit about what data/files this covers? I have over 250GB of attachments on my forum, and saving that data in MySQL frightens me.. Although not having tens of thousands of files sitting in directories would be nice, doing database dumps and restores would be a nightmare. Thank you.
bfarber Posted March 25, 2019 Posted March 25, 2019 Attachments are stored dependent upon your configuration (file system is the default, but database and S3 are two other built in options). The "data store" is analogous to the "cache_store" database table in 3.x, since that's what you are coming from, except that unlike the cache_store database table, if the data store value is corrupted or lost it is rebuilt automatically. So things like the settings, languages, login handlers, etc. are built and processed, and then temporarily "cached" to the data store.
AtariAge Posted March 25, 2019 Posted March 25, 2019 Thank you for the clarification. I've already installed Redis and will test it out.
marklcfc Posted March 26, 2019 Posted March 26, 2019 I tried Redis once but it was slower than file system so I switched back. So is a SSD disk be better than using Redis?
ASTRAPI Posted March 26, 2019 Posted March 26, 2019 In theory Redis should be faster as it uses ram and ram is faster than an ssd.... But i have seen also this issue on some systems when i enabled Redis for database caching and yes filesystem was faster..... With the latest version of IPB if you select Redis for the system cache then Redis is auto selected for the database.... As i have that issue i would like to be able to have the filesystem there as an option. I probably be able to adjust constsnts.php manually to do that but didn't try it yet...
sobrenome Posted December 4, 2019 Posted December 4, 2019 On 3/26/2019 at 7:35 PM, ASTRAPI said: In theory Redis should be faster as it uses ram and ram is faster than an ssd.... Using Webpagespeed tests I have noticed that Redis adds about 400 ms to TTFB over Memcached and MySQL settings.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.