Re: Bug#657877: collectd: Does not try to reconnect when rrd daemon dies
Sebastian Harl <[email protected]> Sat, 24 Sep 2016 22:17:48 +0200
| Newsgroups | gmane.comp.db.rrdtool.devel,gmane.comp.monitoring.collectd |
|---|---|
| Message-ID | <[email protected]> |
--===============6149669516974077159== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vA66WO2vHvL/CRSR" Content-Disposition: inline --vA66WO2vHvL/CRSR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Thu, Aug 20, 2015 at 11:40:13AM +0200, Sebastian Harl wrote: > On Sun, Jan 29, 2012 at 04:20:14PM +0100, Matthias Urlichs wrote: > > When collectd logs via rrdcached, and rrdcached is restarted,=20 > > collectd spews errors instead of trying to reconnect. >=20 > Thanks for reporting this and sorry for the slow reply :-/ >=20 > This issue is related to how the rrdcached client library works. It only > supports a single connection and caches that in a global variable. > collectd calls rrdc_connect on each write but the function will simple > return success if it succeeded previously. >=20 > I think what we'll have to do is > (a) in collectd, close the connection on error and, thus, trigger an > actual reconnect; possibly use exponential back-off I've got https://github.com/collectd/collectd/pull/1959 pending for this. > (b) improve the RRDtool API ;-) And https://github.com/oetiker/rrdtool-1.x/pull/742 for this. Cheers, Sebastian --=20 Sebastian "tokkee" Harl +++ GnuPG-ID: 0x2F1FFCC7 +++ http://tokkee.org/ Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin --vA66WO2vHvL/CRSR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJX5t9rAAoJEMwFfnIvH/zHVvAQAMQnZVQGI4sYc/ZfJ78anizJ By9VrMxN5HL6MUsBaGpbPExB8u1pZlgPfxxCIPnzRIaY2gobfyGwOBz0A8nRlb3H +skPy+g5cTdaihIUKA0wvhVb9J3zPSnh0FXpEX1Gks5ZtjtPQbNxiwctCxGgHLwe hB5HGIhY6eRx6QO1i8nAEwxsWYA6QrlshVSBczyWFjPnT2dXVgUwueMb5d9W8e1O t50fux6zbjGyB1fvQWRKsgDv8m4gcP1RzkFvneAuufMcZyMmtlmSlRp2dmZrgmbN ZUfBhKWRp1S3K9m6syFlUXneDNHIdJYjmhtUO1JQGSAnbAMyChNxp3xGH+zBCvdN 2POjCD3ep9quuvut7wUSh87B4Ji5UirEQ/R53UF+bcCYdxK7nvujP4g/ENOkGKPb 4JGclM3pl5hOEzI9O3sPbh5Pdqa50Sctix7dLnCwqpuJplhR4jmxdKTlp750jEzV DvL7x7Ip2kSjENaG7UtTTDN7EPZ/KbBb8lx9ixwmOv6/RR7/FQdAbRlpWhaxAZ+7 C2EZX4u430H0O70oLgLzPuj7bS+F/H1lQj+YTEV+9r4mIDsWxnuEetSW9m85SGBA eeBYr90cJGRoV6AvwjlhP2PsAKQ1k5IABRov8kA2OrkgT80kyZA9MKGCPrquv2vl oUm+xDjqohxdzFJtbeov =agm3 -----END PGP SIGNATURE----- --vA66WO2vHvL/CRSR-- --===============6149669516974077159== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ rrd-developers mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers --===============6149669516974077159==--