Patrick Galbraith (capttofu) wrote,

Memcached UDFs for MySQL 0.3 Released!

I'm happy to announce the release of Memcached UDFs version 0.3 (downloadable at http://download.tangent.org/memcached_functions_mysql-0.3.tar.gz). In this version:


  • memc_stats() added

  • memc_stat_get_keys() added

  • buffering behavior option added for better performance



This will allow you to query the state of your servers. This makes a great way to possibly add tools to monitor the database and memcached from one source.


mysql> select memc_stats('localhost')\G
*************************** 1. row ***************************
memc_stats('localhost'): Listing 2 Server

Server: 127.0.0.1 (11211)
pid: 7103
uptime: 894541
time: 1204582434
version: 1.2.4
pointer_size: 32
rusage_user: 13.3241
rusage_system: 18.722948
curr_items: 2
total_items: 27
bytes: 161
curr_connections: 1
total_connections: 178
connection_structures: 4
cmd_get: 42
cmd_set: 24
get_hits: 39
get_misses: 3
evictions: 0
bytes_read: 161
bytes_written: 161
limit_maxbytes: 67108864
threads: 0



mysql> select memc_stat_get_keys()\G
*************************** 1. row ***************************
memc_stat_get_keys(): ² L°€@pid
uptime
time
version
pointer_size
rusage_user
rusage_system
curr_items
total_items
bytes
curr_connections
total_connections
connection_structures
cmd_get
cmd_set
get_hits
get_misses
evictions
bytes_read
bytes_written
limit_maxbytes
threads

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic
  • 5 comments