Jump to content

Is Memcached Working with IP.Board?


Recommended Posts

Posted

I have set IP.Board to use Memcached as the cache system, including the data in the config file:

$INFO['use_memcache'] = '1';
$INFO['memcache_server_1'] = '127.0.0.1';
$INFO['memcache_port_1'] = '11211';

My forum has about 500 users in each 15 minutes, but phpMemcachedAdmin shows as little as 20 mega as cached file. I wonder if it's really working.

post-364260-0-13896800-1402897516_thumb.

On the Admin it says:

Memcached commands API used by phpMemcacheAdmin
PECL Memcache was found on this server 
PECL Memcached was not found on this server 
Posted

Awsome! Since I moved to IPS I have asked for a better caching, just like the incredible speed burst that scripts like W3 Total Cache gives to Wordpress.

Posted

Is APC option in IPS4 compatible with APCu?
Because in PHP 5.5 the Opcache function of APC does not work, so they created APCu that is APC with only user cache enabled.

Though I don't keep up with IPS4 development, there's really no reason APCu wouldn't work. It has the same interface as APC and wouldn't even need code change from IPS3 for that caching class. It's a very simple class.
  • 3 weeks later...
Posted

Hello,

I installed Memcached 1.4.20 and the php client memcache 3.0.8.

I then added

$INFO['use_memcache'] = '1';

$INFO['memcache_server_1'] = '127.0.0.1';
$INFO['memcache_port_1'] = '11211';

To the conf_global

I think everything works fine.

But i got a question. How can i know for sure that the board is using the memcached server for the content cache and not the default?

Is there any way of confirming this?

Posted

Hello,

I installed Memcached 1.4.20 and the php client memcache 3.0.8.

I then added

$INFO['use_memcache'] = '1';

$INFO['memcache_server_1'] = '127.0.0.1';
$INFO['memcache_port_1'] = '11211';

To the conf_global

I think everything works fine.

But i got a question. How can i know for sure that the board is using the memcached server for the content cache and not the default?

Is there any way of confirming this?

You can install php prodding tool like the OP. Or you can query it via telnet if you have telnet.

like...

telnet 127.0.0.1 11211

and once it starts

stats

You should also see decrease in load, mostly to your mysql. You can check mysql stats for it too.

Posted

You can install php prodding tool like the OP. Or you can query it via telnet if you have telnet.

like...

telnet 127.0.0.1 11211

and once it starts

stats

You should also see decrease in load, mostly to your mysql. You can check mysql stats for it too.

Here are my Stats:

#127.0.0.1:11211   Field       Value
         accepting_conns           1
               auth_cmds           0
             auth_errors           0
                   bytes      100711
              bytes_read    36779257
           bytes_written  1934765472
              cas_badval           0
                cas_hits           0
              cas_misses           0
               cmd_flush           0
                 cmd_get      955961
                 cmd_set         301
               cmd_touch           0
             conn_yields           0
   connection_structures          13
       crawler_reclaimed           0
        curr_connections           6
              curr_items          58
               decr_hits           0
             decr_misses           0
             delete_hits         118
           delete_misses           0
       evicted_unfetched           0
               evictions           0
       expired_unfetched           0
                get_hits      955120
              get_misses         841
              hash_bytes      524288
       hash_is_expanding           0
        hash_power_level          16
               incr_hits           0
             incr_misses           0
                libevent 2.0.21-stable
          limit_maxbytes   134217728
     listen_disabled_num           0
            malloc_fails           0
                     pid         457
            pointer_size          64
               reclaimed           0
            reserved_fds          20
           rusage_system   60.227843
             rusage_user   18.041257
                 threads           4
                    time  1404758224
       total_connections       31201
             total_items         301
              touch_hits           0
            touch_misses           0
                  uptime        5574
                 version      1.4.20
Posted

Didn't really need to post it... If it has numbers, it's working. ^^;

get_hits 955120
get_misses 841

Is the one you're interested in the most. Add the two numbers and you have total number of calls to your memcache.

hits / (hits + misses) = your hit rate. Which... is obviously >99% without needing to do the math. :)

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...