Redis Question

SatGuyScott

Active member
I run a site which has about 500 online at any time. I am moving to a new server which has 32 GB of ram. The ONLY thing running on this server is this one site and my mail server (under 200 messages a day)

I am currently using Redis for caching (and also OpCache). I have the Redis Cache addon loaded. I am using the default setting in there.

For my Xenforo config.php I have the following for Caching...


Code:
//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',
  'persistent' => true,
  );
// END Redis configuration //

// START Guest page caching //
  $config['pageCache']['enabled'] = true;
  $config['cache']['context']['page']['provider'] = 'SV\RedisCache\Redis';
  $config['cache']['context']['page']['config'] = ['127.0.0.1'];
// END Guest page caching //

// START CSS caching //
  $config['cache']['context']['css'] = [
            'namespace' => 'sv',
            'provider' => 'SV\RedisCache\Redis',
            'config' => [
  'server' => '127.0.0.1',
 'port' => 6379,
            ],
    ];
// END CSS caching //

In my Admin Panel I see the following

Code:
Redis Information
Version    3.2.12
phpredis version    4.3.0
Using Lua    Yes
Serializer    php
Free memory    Unlimited
Used memory    19.6 MB
Peak memory    53.7 MB
To Redis (kbps)    79
From Redis (kbps)    3,038
Operations per second    69
DB 0 Keys    4,270
DB 0 Average TTL    2,269,656
Connected clients    35


Code:
Redis Information - page
Version    3.2.12
phpredis version    4.3.0
Using Lua    Yes
Serializer    php
Free memory    Unlimited
Used memory    19.7 MB
Peak memory    53.7 MB
To Redis (kbps)    79
From Redis (kbps)    3,038
Operations per second    69
DB 0 Keys    4,270
DB 0 Average TTL    2,269,656
Connected clients    36

Code:
Redis Information - css
Version    3.2.12
phpredis version    4.3.0
Using Lua    Yes
Serializer    php
Free memory    Unlimited
Used memory    19.7 MB
Peak memory    53.7 MB
To Redis (kbps)    79
From Redis (kbps)    3,038
Operations per second    69
DB 0 Keys    4,270
DB 0 Average TTL    2,269,656
Connected clients    37

Does this look ok? How about my config.php settings?

Just trying to make things as fast as possible. :)

Thanks!
 
Back
Top Bottom