Eli

To content | To menu | To search

Tag - memcached - Tag - memcached - Eli - page 5

Tag - memcached - Tag - memcached - Eli - page 5

Saturday, April 24 2010

libMemcached 0.40 released

Release notes :

  • Placed retry logic in for busted resolvers
  • Add an ignore for SIGPIPE to solve OSX issues.
  • A couple of fixed for memcached_light server.
  • Update to debug mode to track io_wait

You can download it from : http://download.tangent.org/libmemcached-0.40.tar.gz




Monday, April 19 2010

phpMemCacheAdmin version 1.1.1 released

New version is released and available from http://code.google.com/p/phpmemcacheadmin/ and is now compatible with Memcached 1.4.5

Release Notes

  • Added the reclaimed stats and reclaimed rate (New in Memcached 1.4.5)
  • Added the eviction rate
  • Added a "Are you sure ?" for flush_all command
  • Fixed the eviction rate bug on live stats
  • Fixed the PECL Memcache/Memcached API bug with get commands
  • Fixed the flush_all link not working from slabs stats

If you have any suggestion or bugs, you can contact me by mail




Friday, April 16 2010

Memcached on Windows and telnet interface

How to install & run memcached 1.4.4 on Windows

  1. Download package from http://labs.northscale.com/memcached-packages/
  2. Unzip to your desired directory (c:\memcached_win32\ in my example)

Add memcached to the Windows services from the command line

c:\memcached_win32\memcached.exe -d install

Then you can start or stop the memcached server as a service with

net start memcached
net stop memcached

To edit the memcached server configuration, open regedit and go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\memcached, then find and edit the ImagePath

"C:\memcached_win32\memcached.exe" -d runservice -m 256 -p 11210

Example running memcached with 256 M and on port 11210

Using memcached telnet interface

You can communicate with memcached server (localhost or distant) by opening a telnet session.

Memcached text protocol can be found here about Protocol

It's a bit confusing, but here some examples

Connecting to server :

> telnet localhost 11211

Server stats :

> stats
STAT pid 14550
STAT uptime 2530
[a lot of line...]
END

Slabs stats :

> stats slabs
STAT 1:chunk_size 80
[a lot of line...]
END

Items stats :

> stats items
STAT items:1:number 1
[a lot of line...]
END

Set command :

> set key 0 900 13
> data_to_store
STORED

Details on set command :

set <key> <flags> <exptime> <bytes> with <bytes> = number of bytes of data you want to store.

Get command :

> get
END
> get key
VALUE key 0 13
data_to_store
END

Increment & decrement commands :

> set key 0 900 2
> 10
STORED
> incr key 5
15
> decr key 2
13
> get key
VALUE key 0 2
13

You can also use phpMemCacheAdmin to execute these command and monitor your queries




Wednesday, April 14 2010

phpMemCacheAdmin version 1.1.0 released

Graphic stand-alone administration for memcached to monitor and debug purpose

This program allows to see in real-time or from the start of the server, stats for get, set, delete, increment, decrement, cas command, as well as server stats (network, items, server version) with googlecharts

You can go further to see each server slabs, occupation, memory wasted and items (key & value).

To extract these informations, phpMemCacheAdmin uses, as you wish, direct communication with server, PECL Memcache or PECL Memcached API.

Download it here : http://code.google.com/p/phpmemcacheadmin/

Do not hesitate to give your comments, ideas and corrections.

Feature list

Statistics

  • Stats for each or all memcached servers
  • Stats for every command : set, get, delete, incr, decr, cas, ...
  • Slabs stats (Memory, pages, wasted, items)
  • Items stats (View items in slabs, then data for each key)
  • Network stats (Traffic, bandwidth)

Commands

  • Execute commands : get, set, delete, flush_all on servers to administrate or debug it
  • Get data with key on servers
  • Delete keys on servers
  • Flush servers

Live Stats

  • Top-like real time stats with configurable alerts
Last update : Tue, 13 Apr 2010 16:12:36 +0200   (refresh rate : 2 sec)
SERVER:PORT                      %MEM   %HIT  HIT/s  CONN   GET/s   SET/s   DEL/s    EVI/s    READ/s   WRITE/s
XXXXXXXXXXXXXXXXXX:11211          0.6   96.8   15.0    39     5.0     5.8     0.0      0.0    7.9 Kb    7.9 Kb
XXXXXXXXXXXXXXX:11211            50.8   95.7  279.5   485   279.5    12.5     0.0      0.0   34.0 Kb  203.5 Kb
XXXXXXXXXXXXXXXX:11211           48.1   95.1  259.3   464   259.5    13.0     0.0      0.0   29.9 Kb  116.3 Kb
XXXXXXXXXXXXXXXX:11211           49.8   96.0  314.8   463   314.5    13.3     0.0      0.0   68.0 Kb  108.5 Kb

Configuration

  • Edit configuration directly from web page
  • phpMemCacheAdmin can use socket communication, PECL Memcache or Memcached API

Compatibility

  • PHP 5.1, 5.2, 5.3 (Linux & Windows)
  • Memcache 1.4+ (Linux & Windows), not compatible with 1.3 or fewer
  • Firefox, Opera, Chrome

Known Bugs

  • Some part may not be very resistant to error
  • Live stats can sometime generate errors, it will be fixed



Thursday, April 8 2010

libMemcached 0.39 released

Release notes :

  • Add support for prefix keys to binary protocol.
  • Remove the undocumented call memcached_server_remove().
  • The undocumented call memcached_server_by_key() now returns const.
  • memcached_server_error_reset() has been deprecated.
  • memcached_server_list() has been deprecated.
  • Use memcached_server_cursor() to walk the servers found in a memcached_st() structure.
  • memcached_verbosity() can now be run concurrently with other operations.
  • SASL support.
  • Fixes memory leak found in EJECT HOSTS.

You can download it from : http://download.tangent.org/libmemcached-0.39.tar.gz




- page 5 of 6 -