<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2013/9/10 Thomas Harold <span dir="ltr"><<a href="mailto:thomas-lists@nybeta.com" target="_blank">thomas-lists@nybeta.com</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
On 8/16/2013 4:14 AM, Cyril Feraudet wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
rrdcached is a daemon and a Collectd plugin who replace rrdtool plugin.<br>
<br>
There is no need to modify your architecture. Just install rrdcached and<br>
configure rrdcached Collectd plugin to work with.<br>
<br>
Before :<br>
<br>
LoadPlugin rrdtool<br>
<Plugin rrdtool><br>
  DataDir "/var/lib/collectd/rrd"<br>
</Plugin><br>
<br>
After :<br>
LoadPlugin rrdcached<br>
<Plugin rrdcached><br>
  DaemonAddress "unix:/var/run/rrdcached/<u></u>rrdcached.sock"<br>
  DataDir "/var/lib/collectd/rrd"<br>
  CreateFiles true<br>
  CollectStatistics true<br>
</Plugin><br>
<br>
Cyril<br>
<br>
</blockquote>
<br>
How do you deal with the options:<br>
<br>
RRARows 20000 # PDPs = timespan / (stepsize * rrarows)<br>
RRATimespan 320000 # 3.7 days (16s)<br>
RRATimespan 1600000 # 18.5 days (80s)<br>
RRATimespan 8000000 # 92.6 days (400s)<br>
RRATimespan 80000000 # 926 days / 30.5 months / 2.54 years (4000s)<br>
<br>
Which are normally placed inside of <Plugin rrdtool></Plugin>?<br>
<br>
</blockquote></div><br><div>You *could* just bump up flush timers in rrdtool plugin like that:<br><br><br><Plugin rrdtool><br>    DataDir "/var/lib/collectd/rrd"<br>    CacheTimeout 1200<br>    RandomTimeout 600<br>
    CacheFlush   1600<br></Plugin><br><br><br></div>which should result big reduce of writes done. Files can be still flushed "on demand" by collectd's socket interface.<br><br></div><div class="gmail_extra">
In my setup I run one collectd that just have network and rrdtool plugin enabled and all other servers write to it, so I can avoid restarting it for any config change<br><br></div><div class="gmail_extra">Also, what  filesystem do you use? Any kind of COW FS tend to have garbage performance on RRD files just because they are mostly rewritten with small amounts of data.<br>
</div><div class="gmail_extra"><br><br clear="all"><br>-- <br>Mariusz Gronczewski (XANi) <<a href="mailto:xani666@gmail.com" target="_blank">xani666@gmail.com</a>><br>GnuPG: 0xEA8ACE64<br>
</div></div>