Commit b4a2760
do not enable server statistics for agent instances (#300)
The arangodb starter seems to set the `--server.statistics false`
parameter for agents, which disables all statistics.
The original motivation for this was to turn off a background thread
in the instance that periodically writes statistics into RocksDB.
This background writing of the statistics history causes load and
more disk space usage, which we want to avoid on agent instances.
However, setting `--server.statistics false` not only disables the
background writing of statistics into RocksDB, but also the statistics
API and metrics for process statistics.
As it was not ideal to have a single startup option to control two
different things, since 3.4.9 arangod provides a separate option
`--server.statistics-history`. This option controls whether the
statistics are written to RocksDB. This is what we want to turn off.
The good thing is that when this option is not set, it automatically
turns itself off on agents and DB servers.
The defaults in arangod are:
* `--server.statistics`: always `true`, for all instance types
* `--server.statistics-history`: `true` for coordinators, single servers
and active failover instances, `false` for agents and DB servers.
These are already the optimal settings, so that the arangodb starter
does not need to set any statistics-related startup options for arangod.
This PR modifies the starter to not set any of the above arangod startup
options, as the arangod defaults seem good enough since at least 3.4.9.
Co-authored-by: jwierzbo <jakub.wierzbowski@arangodb.com>1 parent fdadd00 commit b4a2760
1 file changed
+0
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | 219 | | |
221 | 220 | | |
222 | 221 | | |
| |||
235 | 234 | | |
236 | 235 | | |
237 | 236 | | |
238 | | - | |
239 | 237 | | |
240 | 238 | | |
241 | 239 | | |
242 | 240 | | |
243 | 241 | | |
244 | 242 | | |
245 | | - | |
246 | 243 | | |
247 | 244 | | |
248 | 245 | | |
249 | 246 | | |
250 | | - | |
251 | 247 | | |
252 | 248 | | |
253 | 249 | | |
| |||
0 commit comments