On Dec 9, 2007 12:36 PM, Sebastian Harl &lt;<a href="mailto:sh@tokkee.org">sh@tokkee.org</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Justo,&nbsp;<br></blockquote><div>Hi again, Sebastian ! <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>(Please reply on-list in the future.)
</blockquote><div>sorry, I forwarded it later .... but you reply soon .. ;-)<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<div class="Ih2E3d"><br>On Sun, Dec 09, 2007 at 11:56:17AM +0100, Justo Alonso wrote:<br>&gt; On Dec 5, 2007 8:41 PM, Sebastian Harl &lt;<a href="mailto:sh@tokkee.org">sh@tokkee.org</a>&gt; wrote:<br></div><div class="Ih2E3d">
&gt; &gt; On Wed, Dec 05, 2007 at 04:54:17PM +0100, Justo Alonso wrote:<br>&gt; &gt; &gt; &nbsp; &nbsp; when a plugin read fail, &quot;The time between the calls of the function<br>&gt; &gt; is<br>&gt; &gt; &gt; increased exponentially until one day (86400 seconds)&quot;. Maybe a
<br>&gt; &gt; &gt; &quot;PluginRetries&quot; global parameter can be useful.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; &nbsp; &nbsp;Two option (I think) ...<br>&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- First, an integer to the max seconds (now hardcoded 86400).
<br>&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- Second option is a string with a increment especification<br>&gt; &gt; (like<br>&gt; &gt; &gt; at mail queue runner), p.e. &quot;F,2h,15m; G,16h,1h,1.5; F,4d,6h&quot; ....<br>&gt; &gt;<br>&gt; &gt; What kind of benefit would that be for the user? Any such option should
<br>&gt; &gt; not be<br>&gt; &gt; hard to implement but I don&#39;t really see any benefits from it (besides<br>&gt; &gt; confusing most of the users)...<br>&gt;<br>&gt; Currently, I&#39;m working on a tomcat plugin (soon I &nbsp;will send you , I&#39;m
<br>&gt; testing it). When I need stop the tomcat (not-hot deploy, patchs, etc...) I<br>&gt; need restart collectd. With a 30 seconds interval .. if I stop the tomcat by<br>&gt; 180 seconds, I have a no-stats period of 480-960 seconds .. ;-(
<br><br></div>So, do you need it for testing purposes only? In this case you could simply<br>make sure, the tomcat read callback returns 0 in all cases.<br></blockquote><div><br>Not, not for testing ... In production environment, some times, you need stop the service (apache, mysql, tomcat, etc..), for new versions, not hot-deploys, rotate logs, etc... Now, with the collectd increase interval method, I need restart the collectd daemon. Not only this plugin .. all plugins that connect to the service,&nbsp; if you stop the service for a short time, you stop the stats for a medium-large time.
<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Else it might make more sense (as this seems to be a tomcat-specific issue) to
<br>add an option (to the plugin configuration) to ignore the case when tomcat<br>cannot be contacted and return 0 from the read callback in that case. Does<br>this sound reasonable to you? Maybe you want to send in a pre-release of your
<br>plugin so we can already have a look at it and discuss it in more detail.<br><div class="Ih2E3d"></div></blockquote><div><br>I think that this issue is not plugin specific.&nbsp; Ok ... I will start a new list thread with the plugin.
<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br>&gt; &gt; &gt; &nbsp; &nbsp;And .. this configuration per plugin ??
<br>&gt; &gt;<br>&gt; &gt; Hum... making this configurable on a per plugin base would make things<br>&gt; &gt; somewhat complex - I&#39;m not sure if it&#39;s worth the efforts.<br>&gt;<br>&gt; Maybe a new callback function on the plugin ... interval( int mode, int
<br>&gt; seconds ). If the callback function is not NULL, when need the interval we<br>&gt; call to interval function with PLUGIN_INTERVAL_GET mode ... when we need<br>&gt; increase interval call it with PLUGIN_INTERVAL_INCREASE mode and when we
<br>&gt; need reset interval (read function ok), call it with PLUGIN_INTERVAL_RESET<br>&gt; mode .... If the callback function is NULL all work at this time.<br><br></div>This adds a lot of complexity for (imho) very little benefit. As Florian
<br>already pointed out, this is not going to happen.</blockquote><div><br>It&#39;s ok ... Nobody on the maillist support me, and Florian and you say not ... It&#39;s ok .. maybe I&#39;m the only with interest on this issue.
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><div class="Ih2E3d"><br>&gt; tia, and sorry for my english ;-)<br><br></div>Don&#39;t worry - most of us are (I believe) non-native speakers ;-)
</blockquote><div><br>Yes, but I seem to sitting bull ... ;-)<br><br>Regards,<br>j<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br>Cheers,<br>Sebastian<br><font color="#888888"><br>--<br></font><div><div></div><div class="Wj3C7c">Sebastian &quot;tokkee&quot; Harl +++ GnuPG-ID: 0x8501C7FC +++ <a href="http://tokkee.org/" target="_blank">http://tokkee.org/
</a><br><br>Those who would give up Essential Liberty to purchase a little Temporary<br>Safety, deserve neither Liberty nor Safety. &nbsp; &nbsp; &nbsp; &nbsp; -- Benjamin Franklin<br><br></div></div><br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG 
v1.4.6 (GNU/Linux)<br><br>iD8DBQFHW9MzEFEKc4UBx/wRAgBJAJ0cbRbnkXgeo8AuhbDOBLg9ep3NLACeOU9/<br>X0VFyQiidzUOIEtsbHVnRQU=<br>=8SYN<br>-----END PGP SIGNATURE-----<br><br>_______________________________________________<br>collectd mailing list
<br><a href="mailto:collectd@verplant.org">collectd@verplant.org</a><br><a href="http://mailman.verplant.org/listinfo/collectd" target="_blank">http://mailman.verplant.org/listinfo/collectd</a><br><br></blockquote></div><br>