Code

Imported upstream version 1.2.28.
[pkg-rrdtool.git] / doc / rrdtune.html
1 <?xml version="1.0" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <title>rrdtune</title>
6 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
7 <link rev="made" href="mailto:root@localhost" />
8 </head>
10 <body style="background-color: white">
12 <p><a name="__index__"></a></p>
13 <!-- INDEX BEGIN -->
14 <!--
16 <ul>
18         <li><a href="#name">NAME</a></li>
19         <li><a href="#synopsis">SYNOPSIS</a></li>
20         <li><a href="#description">DESCRIPTION</a></li>
21         <li><a href="#example_1">EXAMPLE 1</a></li>
22         <li><a href="#example_2">EXAMPLE 2</a></li>
23         <li><a href="#author">AUTHOR</a></li>
24 </ul>
25 -->
26 <!-- INDEX END -->
28 <p>
29 </p>
30 <h1><a name="name">NAME</a></h1>
31 <p>rrdtune - Modify some basic properties of a Round Robin Database</p>
32 <p>
33 </p>
34 <hr />
35 <h1><a name="synopsis">SYNOPSIS</a></h1>
36 <p><strong>rrdtool</strong> <strong>tune</strong> <em>filename</em>
37 [<strong>--heartbeat</strong>|<strong>-h</strong>&nbsp;<em>ds-name</em>:<em>heartbeat</em>]
38 [<strong>--minimum</strong>|<strong>-i</strong>&nbsp;<em>ds-name</em>:<em>min</em>]
39 [<strong>--maximum</strong>|<strong>-a</strong>&nbsp;<em>ds-name</em>:<em>max</em>]
40 [<strong>--data-source-type</strong>|<strong>-d</strong>&nbsp;<em>ds-name</em>:<em>DST</em>]
41 [<strong>--data-source-rename</strong>|<strong>-r</strong>&nbsp;<em>old-name</em>:<em>new-name</em>]
42 [<strong>--deltapos</strong>&nbsp;<em>scale-value</em>]
43 [<strong>--deltaneg</strong>&nbsp;<em>scale-value</em>]
44 [<strong>--failure-threshold</strong>&nbsp;<em>failure-threshold</em>]
45 [<strong>--window-length</strong>&nbsp;<em>window-length</em>]
46 [<strong>--alpha</strong>&nbsp;<em>adaption-parameter</em>]
47 [<strong>--beta</strong>&nbsp;<em>adaption-parameter</em>]
48 [<strong>--gamma</strong>&nbsp;<em>adaption-parameter</em>]
49 [<strong>--gamma-deviation</strong>&nbsp;<em>adaption-parameter</em>]
50 [<strong>--aberrant-reset</strong>&nbsp;<em>ds-name</em>]</p>
51 <p>
52 </p>
53 <hr />
54 <h1><a name="description">DESCRIPTION</a></h1>
55 <p>The tune option allows you to alter some of the basic configuration
56 values stored in the header area of a Round Robin Database (<strong>RRD</strong>).</p>
57 <p>One application of the <strong>tune</strong> function is to relax the
58 validation rules on an <strong>RRD</strong>. This allows to fill a new <strong>RRD</strong> with
59 data available in larger intervals than what you would normally want
60 to permit. Be very careful with tune operations for COMPUTE data sources.
61 Setting the <em>min</em>, <em>max</em>, and  <em>heartbeat</em> for a COMPUTE data source
62 without changing the data source type to a non-COMPUTE <strong>DST</strong> WILL corrupt
63 the data source header in the <strong>RRD</strong>.</p>
64 <p>A second application of the <strong>tune</strong> function is to set or alter parameters
65 used by the specialized function <strong>RRAs</strong> for aberrant behavior detection.</p>
66 <dl>
67 <dt><strong><a name="item_filename"><em>filename</em></a></strong></dt>
69 <dd>
70 <p>The name of the <strong>RRD</strong> you want to tune.</p>
71 </dd>
72 <dt><strong><a name="item__2d_2dheartbeat_7c_2dh_ds_2dname_3aheartbeat"><strong>--heartbeat</strong>|<strong>-h</strong>&nbsp;<em>ds-name</em>:<em>heartbeat</em></a></strong></dt>
74 <dd>
75 <p>modify the <em>heartbeat</em> of a data source. By setting this to a high
76 value the RRD will accept things like one value per day.</p>
77 </dd>
78 <dt><strong><a name="item__2d_2dminimum_7c_2di_ds_2dname_3amin"><strong>--minimum</strong>|<strong>-i</strong>&nbsp;<em>ds-name</em>:<em>min</em></a></strong></dt>
80 <dd>
81 <p>alter the minimum value acceptable as input from the data source.
82 Setting <em>min</em> to 'U' will disable this limit.</p>
83 </dd>
84 <dt><strong><a name="item__2d_2dmaximum_7c_2da_ds_2dname_3amax"><strong>--maximum</strong>|<strong>-a</strong>&nbsp;<em>ds-name</em>:<em>max</em></a></strong></dt>
86 <dd>
87 <p>alter the maximum value acceptable as input from the data source.
88 Setting <em>max</em> to 'U' will disable this limit.</p>
89 </dd>
90 <dt><strong><a name="item__2d_2ddata_2dsource_2dtype_7c_2dd_ds_2dname_3adst"><strong>--data-source-type</strong>|<strong>-d</strong>&nbsp;<em>ds-name</em>:<em>DST</em></a></strong></dt>
92 <dd>
93 <p>alter the type <strong>DST</strong> of a data source.</p>
94 </dd>
95 <dt><strong><a name="item__2d_2ddata_2dsource_2drename_7c_2dr_old_2dname_3an"><strong>--data-source-rename</strong>|<strong>-r</strong>&nbsp;<em>old-name</em>:<em>new-name</em></a></strong></dt>
97 <dd>
98 <p>rename a data source.</p>
99 </dd>
100 <dt><strong><a name="item__2d_2ddeltapos_scale_2dvalue"><strong>--deltapos</strong>&nbsp;<em>scale-value</em></a></strong></dt>
102 <dd>
103 <p>Alter the deviation scaling factor for the upper bound of the
104 confidence band used internally to calculate violations for the
105 FAILURES <strong>RRA</strong>. The default value is 2. Note that this parameter is
106 not related to graphing confidence bounds which must be specified as a
107 CDEF argument to generate a graph with confidence bounds. The graph
108 scale factor need not to agree with the value used internally by the
109 FAILURES <strong>RRA</strong>.</p>
110 </dd>
111 <dt><strong><a name="item__2d_2ddeltaneg_scale_2dvalue"><strong>--deltaneg</strong>&nbsp;<em>scale-value</em></a></strong></dt>
113 <dd>
114 <p>Alter the deviation scaling factor for the lower bound of the confidence band
115 used internally to calculate violations for the FAILURES <strong>RRA</strong>. The default
116 value is 2. As with <strong>--deltapos</strong>, this argument is unrelated to the scale
117 factor chosen when graphing confidence bounds.</p>
118 </dd>
119 <dt><strong><a name="item__2d_2dfailure_2dthreshold_failure_2dthreshold"><strong>--failure-threshold</strong>&nbsp;<em>failure-threshold</em></a></strong></dt>
121 <dd>
122 <p>Alter the number of confidence bound violations that constitute a failure for
123 purposes of the FAILURES <strong>RRA</strong>. This must be an integer less than or equal to
124 the window length of the FAILURES <strong>RRA</strong>. This restriction is not verified by
125 the tune option, so one can reset failure-threshold and window-length
126 simultaneously. Setting this option will reset the count of violations to 0.</p>
127 </dd>
128 <dt><strong><a name="item__2d_2dwindow_2dlength_window_2dlength"><strong>--window-length</strong>&nbsp;<em>window-length</em></a></strong></dt>
130 <dd>
131 <p>Alter the number of time points in the temporal window for determining
132 failures. This must be an integer greater than or equal to the window
133 length of the FAILURES <strong>RRA</strong> and less than or equal to 28. Setting
134 this option will reset the count of violations to 0.</p>
135 </dd>
136 <dt><strong><a name="item__2d_2dalpha_adaption_2dparameter"><strong>--alpha</strong>&nbsp;<em>adaption-parameter</em></a></strong></dt>
138 <dd>
139 <p>Alter the intercept adaptation parameter for the Holt-Winters
140 forecasting algorithm. This parameter must be between 0 and 1.</p>
141 </dd>
142 <dt><strong><a name="item__2d_2dbeta_adaption_2dparameter"><strong>--beta</strong>&nbsp;<em>adaption-parameter</em></a></strong></dt>
144 <dd>
145 <p>Alter the slope adaptation parameter for the Holt-Winters forecasting
146 algorithm. This parameter must be between 0 and 1.</p>
147 </dd>
148 <dt><strong><a name="item__2d_2dgamma_adaption_2dparameter"><strong>--gamma</strong>&nbsp;<em>adaption-parameter</em></a></strong></dt>
150 <dd>
151 <p>Alter the seasonal coefficient adaptation parameter for the SEASONAL
152 <strong>RRA</strong>. This parameter must be between 0 and 1.</p>
153 </dd>
154 <dt><strong><a name="item__2d_2dgamma_2ddeviation_adaption_2dparameter"><strong>--gamma-deviation</strong>&nbsp;<em>adaption-parameter</em></a></strong></dt>
156 <dd>
157 <p>Alter the seasonal deviation adaptation parameter for the DEVSEASONAL
158 <strong>RRA</strong>. This parameter must be between 0 and 1.</p>
159 </dd>
160 <dt><strong><a name="item__2d_2daberrant_2dreset_ds_2dname"><strong>--aberrant-reset</strong>&nbsp;<em>ds-name</em></a></strong></dt>
162 <dd>
163 <p>This option causes the aberrant behavior detection algorithm to reset
164 for the specified data source; that is, forget all it is has learnt so far.
165 Specifically, for the HWPREDICT <strong>RRA</strong>, it sets the intercept and slope
166 coefficients to unknown. For the SEASONAL <strong>RRA</strong>, it sets all seasonal
167 coefficients to unknown. For the DEVSEASONAL <strong>RRA</strong>, it sets all seasonal
168 deviation coefficients to unknown. For the FAILURES <strong>RRA</strong>, it erases
169 the violation history. Note that reset does not erase past predictions
170 (the values of the HWPREDICT <strong>RRA</strong>), predicted deviations (the values of the
171 DEVPREDICT <strong>RRA</strong>), or failure history (the values of the FAILURES <strong>RRA</strong>).
172 This option will function even if not all the listed <strong>RRAs</strong> are present.</p>
173 <p>Due to the implementation of this option, there is an indirect impact on
174 other data sources in the RRD. A smoothing algorithm is applied to
175 SEASONAL and DEVSEASONAL values on a periodic basis. During bootstrap
176 initialization this smoothing is deferred. For efficiency, the implementation
177 of smoothing is not data source specific. This means that utilizing
178 reset for one data source will delay running the smoothing algorithm
179 for all data sources in the file. This is unlikely to have serious
180 consequences, unless the data being collected for the non-reset data sources
181 is unusually volatile during the reinitialization period of the reset
182 data source.</p>
183 <p>Use of this tuning option is advised when the behavior of the data source
184 time series changes in a drastic and permanent manner.</p>
185 </dd>
186 </dl>
187 <p>
188 </p>
189 <hr />
190 <h1><a name="example_1">EXAMPLE 1</a></h1>
191 <p><code>rrdtool tune data.rrd -h in:100000 -h out:100000 -h through:100000</code></p>
192 <p>Set the minimum required heartbeat for data sources 'in', 'out'
193 and 'through' to 10'000 seconds which is a little over one day in data.rrd.
194 This would allow to feed old data from MRTG-2.0 right into
195 RRDtool without generating *UNKNOWN* entries.</p>
196 <p>
197 </p>
198 <hr />
199 <h1><a name="example_2">EXAMPLE 2</a></h1>
200 <p><code>rrdtool tune monitor.rrd --window-length 5 --failure-threshold 3</code></p>
201 <p>If the FAILURES <strong>RRA</strong> is implicitly created, the default
202 window-length is 9 and the default failure-threshold is 7. This
203 command now defines a failure as 3 or more violations in a temporal
204 window of 5 time points.</p>
205 <p>
206 </p>
207 <hr />
208 <h1><a name="author">AUTHOR</a></h1>
209 <p>Tobias Oetiker &lt;<a href="mailto:tobi@oetiker.ch">tobi@oetiker.ch</a>&gt;</p>
211 </body>
213 </html>