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

Documenting master_is_stable health API settings #87901

Merged
merged 9 commits into from
Jul 26, 2022
31 changes: 31 additions & 0 deletions docs/reference/settings/health-api-settings.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[[health-api-settings]]
=== Health API settings in {es}
[subs="attributes"]
++++
<titleabbrev>Health API settings</titleabbrev>
++++

The following are the _expert-level_ settings available for configuring the
<<health-api, Health API>>. It is not recommended to change any of these
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd say this configures an internal diagnostics service as opposed to the API.

What do you think?

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe I should change it to "for configuring an internal diagnostics service that is exposed through the Health API"? To the user changes to these settings will only be visible via the health api right?

Copy link
Contributor

Choose a reason for hiding this comment

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

I like this idea. Essentially these are internal diagnostics, they are now used in the health API but they might have more use cases, right?

What about calling this page "Health diagnostic settings" or "Internal health diagnostic settings" and only refer to the health API in the begging. Something like: "the outcome of this service is exposed via the Health API"?

I think this could open up different ways of phrasing the impact of the settings. For example:

This many changes or more will be reported as a problem in the Health API could be phrased as This many changes or more will be reported as unhealthy?

Copy link
Contributor

Choose a reason for hiding this comment

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

++ I like it too and I like your suggestions @gmarouli !

from their default values.

==== Cluster level settings

`health.master_history.has_master_lookup_timeframe`::
(<<static-cluster-setting,Static>>) The amount of time a node looks back to see if it has observed
a master at all, before moving on with other checks. Defaults to `30s` (30 seconds).

`master_history.max_age`::
(<<static-cluster-setting,Static>>) The maximum amount of time that the master history is kept in memory
for use in the Health API. Master node changes older than this time will not be considered in the Health
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
for use in the Health API. Master node changes older than this time will not be considered in the Health
. Master node changes older than this time will not be considered in the Health

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should potentially decouple these settings from the health API (I see it's mentioned again)

Copy link
Member Author

Choose a reason for hiding this comment

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

If we don't say how these impact the end user, then no one would ever change them, right? That might not be such a bad thing though.

API calculation. Defaults to `30m` (30 minutes).

`health.master_history.identity_changes_threshold`::
(<<static-cluster-setting,Static>>) The number of times that it is not OK to have a master change identity
to another node. This many changes or more will be reported as a problem in the Health API. Defaults to `4`.

`health.master_history.no_master_transitions_threshold`::
(<<static-cluster-setting,Static>>) The number of times that it is not OK to have a master switch to no
master. This many transitions or more will be reported as a problem in the Health API. Defaults to `4`.


2 changes: 2 additions & 0 deletions docs/reference/setup.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ include::modules/discovery/discovery-settings.asciidoc[]

include::modules/indices/fielddata.asciidoc[]

include::settings/health-api-settings.asciidoc[]

include::settings/ilm-settings.asciidoc[]

include::modules/indices/index_management.asciidoc[]
Expand Down