-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[KEP-4680] Update README to include configurable HealhCheckTimeout #5476
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
Open
ArangoGutierrez
wants to merge
1
commit into
kubernetes:master
Choose a base branch
from
ArangoGutierrez:i133118
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+19
−6
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -259,12 +259,13 @@ We may consider this as a future improvement. | |
|
||
### Notes/Constraints/Caveats (Optional) | ||
|
||
<!-- | ||
What are the caveats to the proposal? | ||
What are some important details that didn't come across above? | ||
Go in to as much detail as necessary here. | ||
This might be a good place to talk about core concepts and how they relate. | ||
--> | ||
- **DRA Device Health Timeout Configuration:** The timeout for marking a DRA device's health as "Unknown" | ||
when no updates are received can be configured per device through the `health_check_timeout_seconds` field | ||
in the `DeviceHealth` message. This allows different hardware types (e.g., GPUs, FPGAs, TPUs, storage devices) | ||
to specify appropriate timeout values based on their health-reporting characteristics. If not specified, | ||
Kubelet will use a default timeout of 30 seconds. This addresses | ||
[Issue #133118](https://github.com/kubernetes/kubernetes/issues/133118) and the discussion in | ||
[PR #130606](https://github.com/kubernetes/kubernetes/pull/130606/files#r2221829511). | ||
|
||
### Risks and Mitigations | ||
|
||
|
@@ -310,6 +311,13 @@ optional, proactive health reporting mechanism from DRA plugins. | |
will be responsible for reconciling the state reported by the plugin, handling | ||
timeouts for stale data (marking devices as "Unknown" if not updated | ||
within a certain period), and persisting this information across Kubelet restarts. | ||
|
||
**Note:** The timeout for marking a device's health as "Unknown" can be | ||
configured per device via the `health_check_timeout_seconds` field in the | ||
`DeviceHealth` message. If not specified, Kubelet will use a default timeout | ||
of 30 seconds. This addresses [Issue #133118](https://github.com/kubernetes/kubernetes/issues/133118), | ||
allowing different hardware types (e.g., GPUs, FPGAs, TPUs, storage) to specify | ||
appropriate timeout values based on their health-reporting characteristics. | ||
|
||
3. **Kubelet Integration:** The DRA Manager in Kubelet will act as the gRPC client. | ||
Upon plugin registration, it will attempt to initiate the health monitoring | ||
|
@@ -368,6 +376,10 @@ message DeviceHealth { | |
// Timestamp of when this health status was last determined by the plugin, as a Unix timestamp (seconds). | ||
// Required. | ||
int64 last_updated_timestamp = 4; | ||
// Health check timeout duration in seconds for this device. | ||
// If not specified or zero, Kubelet will use a default timeout. | ||
// Optional. | ||
int64 health_check_timeout_seconds = 5; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. qq for PR review I think - is Duration field OK to use in our APIs? Or this is not recommended? |
||
} | ||
``` | ||
|
||
|
@@ -448,6 +460,7 @@ Planned tests will cover the user-visible behavior of the feature: | |
#### Beta | ||
|
||
- Complete e2e tests coverage | ||
- Verify configurable device health check timeout implementation works correctly across different plugin vendors (see [Issue #133118](https://github.com/kubernetes/kubernetes/issues/133118)) | ||
|
||
#### GA | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would the negative value or
0
mean? Let's specify in the field description.