Resource icon

Zend Redis Cache 1.6.0

No permission to download
We have switched to Redis too after 2 years with memcached.

Redis looking better. I hope, we won't see any error during any process on forum. Until now, standart pages are faster and no problem. But we must see forum software upgrades, style/language changes, rebuild process etc.

Thank you for that great add-on. We are waiting changes ..
 
@Xon, any thought about this?
Only 6 errors similiar to that come this morning, same minute all 6. No redis regarded errors before or after this
Code:
Server Error Log
Error Info
CredisException: read error on connection - library/Redis/lib/Credis/Client.php:1065
Generated By: Unknown Account, Today at 11:57
Stack Trace

#0 /home/nginx/domains/pijanitvor.com/public/library/Redis/lib/Credis/Client.php(603): Credis_Client->__call('select', Array)
#1 /home/nginx/domains/pijanitvor.com/public/library/Redis/Cm/Cache/Backend/Redis.php(144): Credis_Client->select(0)
#2 /home/nginx/domains/pijanitvor.com/public/library/Zend/Cache.php(153): Cm_Cache_Backend_Redis->__construct(Array)
#3 /home/nginx/domains/pijanitvor.com/public/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Redis', Array, false, false)
#4 /home/nginx/domains/pijanitvor.com/public/library/XenForo/Application.php(761): Zend_Cache::factory('Core', 'Redis', Array, Array)
#5 /home/nginx/domains/pijanitvor.com/public/library/XenForo/Application.php(971): XenForo_Application->loadCache(Object(Zend_Config))
#6 /home/nginx/domains/pijanitvor.com/public/library/XenForo/Application.php(1002): XenForo_Application->lazyLoad('cache', NULL)
#7 /home/nginx/domains/pijanitvor.com/public/library/XenForo/Application.php(1647): XenForo_Application::get('cache')
#8 /home/nginx/domains/pijanitvor.com/public/library/XenForo/Model.php(146): XenForo_Application::getCache()
#9 /home/nginx/domains/pijanitvor.com/public/library/SV/RedisCache/RedisDataRegistry.php(152): XenForo_Model->_getCache(true)
#10 /home/nginx/domains/pijanitvor.com/public/library/XenForo/Dependencies/Abstract.php(147): XenForo_Model_DataRegistry->getMulti(Array)
#11 /home/nginx/domains/pijanitvor.com/public/library/XenForo/FrontController.php(127): XenForo_Dependencies_Abstract->preLoadData()
#12 /home/nginx/domains/pijanitvor.com/public/index.php(13): XenForo_FrontController->run()
#13 {main}

Request State

array(3) {
  ["url"] => string(53) "https://www.pijanitvor.com/posts/386598/rate?rating=1"
  ["_GET"] => array(2) {
    ["/posts/386598/rate"] => string(0) ""
    ["rating"] => string(1) "1"
  }
  ["_POST"] => array(4) {
    ["_xfRequestUri"] => string(42) "/threads/lov-lignje-pod-feral.21025/page-8"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
I've mostly seen this occur when Redis is stalling due to disk IO in a contested virtual environment.

Can you post the "SAVE" statements or the append from your redis.conf file?

You can use the AOF (change log) persistence rather than the RDB (dump) persistence.
Code:
appendonly yes
aof-rewrite-incremental-fsync yes
appendfsync everysec

Alternatively, just disable persistence all together or periodically do RDB snapshots when you know the site isn't as busy (ie use cron & redis-cli)
 
Thanks for the update Xon :)
XwHQ71w.png
 
  • Like
Reactions: Xon
@RoldanLT wow.

23mb/s is easily the highest output I've seen before. You might need to-do tuning for how frequently it saves (or if it saves at all) the Redis DB depending on the host.
 
Peak Time Server Load:
0Lbz5Qj.png


:D 5,200K+ Visitors now Guest/Members.

PHP 7.0.1
MariaDB 10.1.10
Nginx 1.9.9 (Still no fastcgi_cache implementation yet)
Redis 3.0.6

Awesome combi :)
 
Can someone share all the settings to put into xenForo config.php please?
// Cache
$config['cache']['enabled'] = true;
$config['cache']['cacheSessions'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array(
'caching' => true,
'cache_id_prefix' => 'phc_',
'automatic_serialization' => false,
'lifetime' => 0
);

$config['cache']['backend'] = 'Redis';
$config['cache']['backendOptions'] = array(
'server' => '127.0.0.1',
'port' => 6379,
'use_lua' => true,
);

require(XenForo_Application::getConfigDir().'/SV/RedisCache/Installer.php');
// End Cache
 
https://forums.spacebattles.com/ is not doing the same stats? or more than that?
SB only does between 6mb/s to 12mb/s or so.

Do you mean having "appendonly yes" ?
Yeah. Or disabling any saving.

Which I do on SB, since the 2GB linode which hosts the database and redis sometimes has latency issues that Redis is sensitive too. Might need to upgrade it to a 4GB linode sometime within the next 6 months.

Can someone share all the settings to put into xenForo config.php please?
Per the FAQ, something like:
Code:
$config['cache']['backend'] = 'Redis';
$config['cache']['backendOptions'] = array(
'server' => '127.0.0.1',
'port' => 6379,
'connect_retries' => 2,
'use_lua' => true
);
require(XenForo_Application::getConfigDir().'/SV/RedisCache/Installer.php');

Change server to the hostname or IP of the actual Redis instance.
 
Yeah. Or disabling any saving.

Which I do on SB, since the 2GB linode which hosts the database and redis sometimes has latency issues that Redis is sensitive too. Might need to upgrade it to a 4GB linode sometime within the next 6 months.
So from this page: http://redis.io/topics/persistence
Looks like having "appendonly no" has better performance than having "appendonly yes".
 
Back
Top Bottom