[collectd] memcached timeout (Was: Problems with collectd and KVM)

Florian Forster octo at verplant.org
Mon Aug 25 20:01:59 CEST 2008


Hi Joost,

holy deity of your choosing, what a stupid mistake. Please note
memcached.c:137, which reads:
  status = poll (&p, /* nfds = */ 1, /* timeout = */ interval_g);

`interval_g' holds the interval in which data is read in collectd, in
your case `10' as in `read data every ten seconds'. However, from
poll(2):
``The  timeout  argument specifies an upper limit on the time for which
  poll() will block, in milliseconds.''

So changing the above line to
  status = poll (&p, /* nfds = */ 1, /* timeout = */ 1000 * interval_g);
will most certainly resolve this issue.

Sorry I doubted memcached, it's definitely collectd that's too impatient
here.. Updated releases will be available shortly.

Regards,
-octo
-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20080825/72bfef3d/attachment.pgp 


More information about the collectd mailing list