Skip to content

Set KWOK node heartbeat to 300-305 seconds - #1413

Open
Leonard Du (LeonardCareer) wants to merge 5 commits into
v2from
kwok-node-heartbeat-300-305s
Open

Leonard Du (LeonardCareer) wants to merge 5 commits into
v2from
kwok-node-heartbeat-300-305s

Conversation

@LeonardCareer

@LeonardCareer Leonard Du (LeonardCareer) commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Download the upstream stage-fast.yaml, change only the node-heartbeat-with-lease delay to 300000 ms with a 305000 ms jitter upper bound, then apply the manifests. Lease renewal and KWOK release selection are unchanged.

Validation

  • All 16 bootstrap and node-creation tests passed.
  • Existing test fixtures remain v0.7.0; the actual v0.8.0 release was also verified, with all other Stage fields unchanged.
  • No new Pylint diagnostics.

The unrelated TestKwokPipeline failure (KeyError: 'script' for H2/H4/H8) was reproduced on the unchanged v2 baseline; no pipeline changes are included.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Comment thread modules/python/kwok/kwok.py Outdated

def _bootstrap_kwok(self, kwok_release, enable_metrics):
"""Apply the shared KWOK bootstrap manifests and replace the configmap.
"""Apply the shared KWOK manifests with a 300-305 second Node heartbeat.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

it sounds like you don't replace the configmap anymore, which is not true.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

updated.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
self.k8s_client.apply_manifest_from_url,
stage_fast_yaml_url
response = execute_with_retries(requests.get, stage_fast_yaml_url, timeout=30)
response.raise_for_status()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could we make this interval configurable rather than changing the default? The longer upstream interval might be intentional to reduce API server load at scale

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I’ll make the interval configurable, with 300–305 seconds as the default to align with kubelet’s default 5-minute reporting interva

This branch has not been deployed

No deployments
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.

3 participants