Skip to content

health: add ICMP probe retries #36023

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

Conversation

pippolo84
Copy link
Member

@pippolo84 pippolo84 commented Nov 18, 2024

To check the connectivity status of other Cilium nodes, we rely on both HTTP and ICMP probes. In both cases, a single request is sent to assess the health status of the peer. In certain environments, marking a node or an endpoint as unreachable after a single ICMP response is lost may be too aggressive, ultimately leading to the reported status constantly flapping between "OK" and "Unreachable".

The PR adds an option (--health-check-icmp-failure-threshold) to configure the number of ICMP requests sent before marking a node or endpoint as unreachable. By default, this value is kept to 1, as it was before.

Fixes #35996

Add the option `--health-check-icmp-failure-threshold` to set the number of ICMP requests to send during health checking before marking a node or endpoint as unreachable.

@pippolo84 pippolo84 added area/health Relates to the cilium-health component dont-merge/preview-only Only for preview or testing, don't merge it. area/helm Impacts helm charts and user deployment experience labels Nov 18, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot added dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Nov 18, 2024
@pippolo84 pippolo84 force-pushed the pr/pippolo84/icmp-probe-retries branch 3 times, most recently from c1509f0 to 2e0ba1a Compare November 19, 2024 17:00
@pippolo84 pippolo84 changed the title health: ICMP probe retries health: add ICMP probe retries Nov 19, 2024
@pippolo84 pippolo84 force-pushed the pr/pippolo84/icmp-probe-retries branch from 2e0ba1a to 4aaf676 Compare November 19, 2024 17:04
@pippolo84 pippolo84 added the release-note/minor This PR changes functionality that users may find relevant to operating Cilium. label Nov 19, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Nov 19, 2024
@pippolo84 pippolo84 removed the dont-merge/preview-only Only for preview or testing, don't merge it. label Nov 19, 2024
@pippolo84
Copy link
Member Author

/test

@pippolo84 pippolo84 marked this pull request as ready for review November 19, 2024 18:03
@pippolo84 pippolo84 requested review from a team as code owners November 19, 2024 18:03
@pippolo84 pippolo84 added affects/v1.12 This issue affects v1.12 branch affects/v1.13 This issue affects v1.13 branch affects/v1.14 This issue affects v1.14 branch affects/v1.15 This issue affects v1.15 branch affects/v1.16 This issue affects v1.16 branch labels Nov 20, 2024
@pippolo84 pippolo84 force-pushed the pr/pippolo84/icmp-probe-retries branch from 4aaf676 to 8fea346 Compare November 21, 2024 11:30
@pippolo84
Copy link
Member Author

@ttarczynski updated helm value name as well as Cilium option name (I prefer to keep it consistent), PTAL

Copy link

@ttarczynski ttarczynski left a comment

Choose a reason for hiding this comment

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

LGTM

@pippolo84 pippolo84 force-pushed the pr/pippolo84/icmp-probe-retries branch from 8fea346 to ed90302 Compare November 22, 2024 14:57
@pippolo84 pippolo84 requested a review from marseel November 22, 2024 14:58
Copy link
Contributor

@marseel marseel left a comment

Choose a reason for hiding this comment

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

Thanks!

@pippolo84 pippolo84 force-pushed the pr/pippolo84/icmp-probe-retries branch from ed90302 to 3f780bf Compare November 26, 2024 21:00
@pippolo84
Copy link
Member Author

/test

@pippolo84 pippolo84 removed the request for review from tommyp1ckles November 29, 2024 12:12
To check the connectivity status of other Cilium nodes, we rely on both
HTTP and ICMP probes. In both cases, a single request is sent to assess
the health status of the peer. In certain environments, marking a node
or an endpoint as unreachable after a single ICMP response is lost may
be too aggressive, ultimately leading to the reported status flapping
between "OK" and "Unreachable".

The commit adds an option to configure the number of ICMP requests sent
before marking a node or endpoint as unreachable. By default, the value
is set to 3.

Signed-off-by: Fabio Falzoi <fabio.falzoi@isovalent.com>
Add an option to set the number of ICMP requests to send when checking
the health of a node or and endpoint, before marking them as
unreachable.

Signed-off-by: Fabio Falzoi <fabio.falzoi@isovalent.com>
@pippolo84 pippolo84 force-pushed the pr/pippolo84/icmp-probe-retries branch from 3f780bf to 5d0a509 Compare November 29, 2024 16:37
@pippolo84
Copy link
Member Author

/test

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Nov 29, 2024
@julianwiedmann julianwiedmann added this pull request to the merge queue Dec 2, 2024
Merged via the queue into cilium:main with commit 2f7db91 Dec 2, 2024
64 checks passed
@pippolo84 pippolo84 added backport/author The backport will be carried out by the author of the PR. and removed affects/v1.12 This issue affects v1.12 branch affects/v1.13 This issue affects v1.13 branch labels Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/v1.14 This issue affects v1.14 branch affects/v1.15 This issue affects v1.15 branch affects/v1.16 This issue affects v1.16 branch area/health Relates to the cilium-health component area/helm Impacts helm charts and user deployment experience backport/author The backport will be carried out by the author of the PR. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/minor This PR changes functionality that users may find relevant to operating Cilium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add retries option to health server ICMP prober
6 participants