Skip to content

do not disable server statistics for agent instances #300

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 3, 2024
Merged

do not disable server statistics for agent instances #300

merged 2 commits into from
Jun 3, 2024

Conversation

jsteemann
Copy link
Contributor

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.

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.
@jsteemann jsteemann changed the title do not enable server statistics for agent instances do not disable server statistics for agent instances Aug 26, 2021
Copy link
Contributor

@informalict informalict left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jwierzbo jwierzbo merged commit b4a2760 into arangodb-helper:master Jun 3, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants