Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
sobrenome Posted June 16, 2014 Posted June 16, 2014 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. 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
Grumpy Posted June 16, 2014 Posted June 16, 2014 Yes. (assuming you are using memcache only for IPB and no where else)
sobrenome Posted June 16, 2014 Author Posted June 16, 2014 I thought that IP.Board would use much more resources from memcached.
Andy Millne Posted June 16, 2014 Posted June 16, 2014 3.x caching in this respect is limited. The caching engines are utilised much more heavily in IPS4 and are introduced briefly here '?do=embed' frameborder='0' data-embedContent>>
sobrenome Posted June 16, 2014 Author Posted June 16, 2014 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.
RevengeFNF Posted June 16, 2014 Posted June 16, 2014 3.x caching in this respect is limited. The caching engines are utilised much more heavily in IPS4 and are introduced briefly here '?do=embed' frameborder='0' data-embedContent>> 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.
Grumpy Posted June 16, 2014 Posted June 16, 2014 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.
RevengeFNF Posted June 17, 2014 Posted June 17, 2014 Are you guys talking about Memcache or Memcached? They are two different things. IPB supports Memcache or Memcached?
RevengeFNF Posted July 6, 2014 Posted July 6, 2014 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?
Grumpy Posted July 7, 2014 Posted July 7, 2014 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.
RevengeFNF Posted July 7, 2014 Posted July 7, 2014 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
Grumpy Posted July 7, 2014 Posted July 7, 2014 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. :)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.