Skip to content
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

Allow use of config to set up built-in disk space and heap memory health checks #2934

Merged
merged 3 commits into from
Apr 16, 2021
Merged

Allow use of config to set up built-in disk space and heap memory health checks #2934

merged 3 commits into from
Apr 16, 2021

Conversation

tjquinno
Copy link
Member

Resolves #2885

@tjquinno tjquinno self-assigned this Apr 14, 2021
@@ -144,5 +151,19 @@ public Builder thresholdPercent(double threshold) {
this.threshold = threshold;
return this;
}

/**
* Set up the heap space health check via config key, if present.
Copy link
Member

Choose a reason for hiding this comment

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

The javadoc should contain a table of config keys used, description and default value.
Example:

Configuration options:
             * <table class="config">
             * <caption>Secret configuration</caption>
             * <tr>
             *     <th>key</th>
             *     <th>default value</th>
             *     <th>description</th>
             *     <th>builder method</th>
             * </tr>
             * <tr>
             *     <td>{@value CONFIG_KEY_THRESHOLD_PERCENT_SUFFIX}</td>
             *     <td>{@code 99.9}</td>
             *     <td>Percentage of heap memory that needs to be full for this health check to fail</td>
             *     <td>{@link #tresholdPercent(double}</td>
             * </tr>
             * </table>

Copy link
Member Author

Choose a reason for hiding this comment

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

Added for both classes.

Copy link
Member

@tomas-langer tomas-langer left a comment

Choose a reason for hiding this comment

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

LGTM

@tjquinno tjquinno merged commit 3bec204 into helidon-io:master Apr 16, 2021
@tjquinno tjquinno deleted the health-config branch April 16, 2021 15:25
aseovic pushed a commit to aseovic/helidon that referenced this pull request Apr 26, 2021
…lth checks (helidon-io#2934)

* Allow set-up of built-in liveness checks using configuration

Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
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.

HealthChecks should be configurable in Helidon SE
2 participants