You active using igbinary via this line in your config.php file:@Sunka How to igbinary is installed? I have igbinary installation but Available serializers not have igbinary
$config['cache']['config']['serializer'] = 'igbinary';
You active using igbinary via this line in your config.php file:
PHP:$config['cache']['config']['serializer'] = 'igbinary';
Available serializers are only used by php native session serialization, which XenForo does not use.So its not up in Available serializers => ? Also How to do text redis memory or usage? Can use redis and apc same time?
Acivate it like @Xon said. In my config.php you can see that it is activted and php serializer is disabled@Sunka How to igbinary is installed? I have igbinary installation but Available serializers not have igbinary
Code:# php --ri redis redis Redis Support => enabled Redis Version => 3.1.5 Available serializers => php
$config['cache']['config'] = array(
'server' => '127.0.0.1',
'port' => 6379,
'connect_retries' => 2,
'use_lua' => true,
'compress_data' => 2,
'read_timeout' => 1,
'timeout' => 1,
'serializer' => 'igbinary',
// 'serializer' => 'php',
......
Acivate it like @Xon said. In my config.php you can see that it is activted and php serializer is disabled
PHP:$config['cache']['config'] = array( 'server' => '127.0.0.1', 'port' => 6379, 'connect_retries' => 2, 'use_lua' => true, 'compress_data' => 2, 'read_timeout' => 1, 'timeout' => 1, 'serializer' => 'igbinary', // 'serializer' => 'php', ......
Using pure cli
Code:redis-cli info | egrep 'used_memory|mem_'
This functionality hasn't been ported yet.How to check redis memory usage? Checking Free and Used memory? Do you use web interface to manage and monitor your Redis?
Nope.@Xon Does this add-on required PHP Handler DSO? As I know PHP OPCode caching options work with suPHP but note work eAccelerator, XCache, APC. PHP handler like DSO or FastCGI will work memory based cache.
This functionality hasn't been ported yet.
// Enable serializers is igbinary
$config['cache']['config']['serializer'] = 'igbinary';
// START Redis configuration //
$config['cache']['enabled'] = true;
$config['cache']['sessions'] = true;
$config['cache']['namespace'] = 'xfredis_';
$config['cache']['provider'] = 'SV\RedisCache\Redis';
$config['cache']['config'] = array(
'server' => '127.0.0.1',
'port' => 6379,
'connect_retries' => 2,
'use_lua' => true,
'compress_data' => 2,
'read_timeout' => 1,
'timeout' => 1,
'serializer' => 'igbinary',
// 'serializer' => 'php',
);
// END Redis configuration //
Probably in a few weeks or so, I'm finishing off some updates to https://atelieraphelion.com so both XenForo 1 and XenForo 2 versions of the same add-on can be sold, and some other paid work.Do you have plan adding this functionality? Also add ability can Flush cache.
You don't need the first igbinary line, as it is done in the bulk setting of $config['cache']['config'], you can increase compress_data from 2 => 4 (or 6) without an issue.Does my config.php Configuration correct? Do you have any setting recommendation for performance improve? Does enabling option Count Moderated Threads will help performance improvement?
Code:// Enable serializers is igbinary $config['cache']['config']['serializer'] = 'igbinary'; // START Redis configuration // $config['cache']['enabled'] = true; $config['cache']['sessions'] = true; $config['cache']['namespace'] = 'xfredis_'; $config['cache']['provider'] = 'SV\RedisCache\Redis'; $config['cache']['config'] = array( 'server' => '127.0.0.1', 'port' => 6379, 'connect_retries' => 2, 'use_lua' => true, 'compress_data' => 2, 'read_timeout' => 1, 'timeout' => 1, 'serializer' => 'igbinary', // 'serializer' => 'php', ); // END Redis configuration //
I currently don't have any plans to collapse the add-ons into a 'bulk' pack.Also your add-on "Redis View Counters" and "Redis Flood Check" functionality does have this add-on? So we does not need install lot of add-on based on Redis. Please make all Redis thing in one add-on without separate add-on installation.
You don't need the first igbinary line, as it is done in the bulk setting of $config['cache']['config'], you can increase compress_data from 2 => 4 (or 6) without an issue.
$config['cache']['config']['serializer'] = 'igbinary';
adding 'compress_data' => 6,
? Do we also need increase 'connect_retries' => 2,
// START Redis configuration //
$config['cache']['enabled'] = true;
$config['cache']['sessions'] = true;
$config['cache']['namespace'] = 'xfredis_';
$config['cache']['provider'] = 'SV\RedisCache\Redis';
$config['cache']['config'] = array(
'server' => '127.0.0.1',
'port' => 6379,
'connect_retries' => 2,
'use_lua' => true,
'compress_data' => 6,
'read_timeout' => 1,
'timeout' => 1,
'serializer' => 'igbinary',
// 'serializer' => 'php',
);
// END Redis configuration //
I think the issue is it doesn't expire the cache after you move a lot of threads so it is noticable. Maybe drop the 'small forum' cache to 30 or even 0 seconds.No problem at all @Xon
What will be "proper" settings for that 3 options in my case?
- Add redis stats to dashboard, and under Tools -> Redis Info.
ErrorException: [E_NOTICE] Undefined offset: 0 src/addons/SV/RedisCache/Repository/Redis.php:42
Generated by: Nirjon Feb 3, 2018 at 4:14 PM
Stack trace
#0 src/addons/SV/RedisCache/Repository/Redis.php(42): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/home/nadda/pub...', 42, Array)
#1 src/addons/SV/RedisCache/XF/Admin/Controller/Index.php(13): SV\RedisCache\Repository\Redis->insertRedisInfoParams(Object(XF\Mvc\Reply\View), NULL)
#2 src/XF/Mvc/Dispatcher.php(249): SV\RedisCache\XF\Admin\Controller\Index->actionIndex(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Index', 'Index', 'html', Object(XF\Mvc\ParameterBag), '', Object(SV\RedisCache\XF\Admin\Controller\Index), NULL)
#4 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#5 src/XF/App.php(1889): XF\Mvc\Dispatcher->run()
#6 src/XF.php(328): XF\App->run()
#7 admin.php(13): XF::runApp('XF\\Admin\\App')
#8 {main}
Request state
array(4) {
["url"] => string(10) "/admin.php"
["referrer"] => string(48) "/admin.php?redis-info/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
Getting same issue. Slaves seem to be showing no info, but upon clicking I'm not sure what's showing on the modal as there is info being shown.Also getting Server error log.
We use essential cookies to make this site work, and optional cookies to enhance your experience.