Re: Bug#657877: collectd: Does not try to reconnect when rrd daemon dies
Sebastian Harl <[email protected]> Thu, 20 Aug 2015 11:40:14 +0200
| Newsgroups | gmane.comp.db.rrdtool.devel,gmane.comp.monitoring.collectd |
|---|---|
| Message-ID | <[email protected]> |
--===============2080844342710110163==
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="aM3YZ0Iwxop3KEKx"
Content-Disposition: inline
--aM3YZ0Iwxop3KEKx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi,
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.
Thanks for reporting this and sorry for the slow reply :-/
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.
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
(b) improve the RRDtool API ;-)
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
--aM3YZ0Iwxop3KEKx
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)
iQIcBAEBAgAGBQJV1aB8AAoJEMwFfnIvH/zH+gMQALn748vpg9dwP7z3UHUb63R4
nSSD8cfWheD94ebFoNzGpUuLxv/jJHfGQhP7lDF6cOZhzK2Q1SRj6L40aKCtox3X
cZuUho4xEY5xbnBcmqrUg5O8NcdwdE8gKesSGQZdghVzb0y8NMDAbtXva3s/0v55
rWDeHSPYkMjY5/EOmVS7f+SWjFOx6s8BdZuH/XQZ+u9852wUSRx5jAOuIwKO/3bH
XUtu+8F1gzOSgXmOnGBa/mBRXtizVct2szsigqOV+nKNBSw7rncPntWAJNCLYK66
XWFfhltNhCOnb85YtARYnPWta6+YI6fnVbVBod3g8h6dpbL0EGbOGJD1r5uw//9w
KGcednS3/Mbp4nYLL+bircbOZDjGdNvIRQ8gdl14sLBB9GE+GdjLdbHip8WuczBl
a2H9+FmXgxq/3z06MwGV5hF08d0F4doJVT7ig6V16SpgASERDR2gednmelLLLt4F
boi/8M1l0Piqau/RQmpLKntpl6qSFNdgv633MUwSMGllgzm0pq2sC+g4/j22qdkS
8frve0IGNHIZVcu7AduzpsyOS0sXHKeVNRW/i5o+d40Zt7xqX0/KxL8yVInWdc/8
JBX04VoEsRF8MdMyWs1SqjzVtH7qgIBZp/8mBndMtsI8sq3Yfy3l7XUkRkUFuR5a
jIioLG4CrLX8vliyqlWI
=O8Zx
-----END PGP SIGNATURE-----
--aM3YZ0Iwxop3KEKx--
--===============2080844342710110163==
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
--===============2080844342710110163==--