Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Resource monitor plugin -- develop branch #9196

Merged
merged 12 commits into from
Jun 12, 2020

Conversation

linhuang-blockone
Copy link
Contributor

Change Description

This is a replicated PR of #9098 for develop branch.
Only differences are enabling resource monitor plugin by default for future releases, creating
new test cases for it, and moving resource_monitor_impl back to resource_monitor_plugin.cpp
to be consistent with other plugins.

Change Type

Select ONE

  • Documentation
  • Stability bug fix
  • Other
  • Other - special case

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

Configurable Parameters

resource-monitor-interval-seconds
Time in seconds between two consecutive checks of resource usage. It should be between 1 and 300 (5 minutes). This is optional; the default value is 2 seconds.

resource-monitor-space-threshold
Threshold in terms of percentage of used space vs total space. If used space is above (threshold - 5%), a warning is generated. If used space is above the threshold and resource-monitor-not-shutdown-on- threshold-exceeded is enabled, a graceful shutdown is initiated. The value should be between 6 and 99

resource-monitor-not-shutdown-on-threshold-exceeded
Used to indicate nodeos will not shutdown when threshold is exceeded.

… and integration test cases, terminate thread right after plugin shutdown, and make apps register monitored directories
…n test from Bash to Python next), make shutdown on exceeding threshold as default, increase interval upper bound to 5 minutes
…e_monitor_plugin_impl, changed integration test script from Bash to Python
…and relax timing requirements for test cases
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants