docs: fix device registration handshake - #822
Conversation
Signed-off-by: favour.lawrence <favour.lawrence@moniepoint.com>
✅ Deploy Preview for project-hami ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe protocol documentation now describes patching device specifications into node annotations, removes the ChangesProtocol documentation
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This is a small, localized documentation correction with no actionable merge-blocking risk remaining after normal checks and review. Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.) ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: favxlaw, windsonsea The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
|
||
| ```text | ||
| hami.io/node-handshake-nvidia: Reported 2024-01-23 04:30:04.434037031 +0000 UTC m=+1104711.777756895 | ||
| hami.io/node-handshake-nvidia: Requesting_2024-01-23 04:30:04.434037031 +0000 UTC m=+1104711.777756895 |
There was a problem hiding this comment.
the Reported_ format line was removed above and this example now says Requesting_ too, so the page no longer shows the device plugin side of the handshake. is that intended?
|
|
||
| ```text | ||
| hami.io/node-handshake-\{device-type\}: Reported_\{device_node_current_timestamp\} | ||
| hami.io/node-\{device-type\}-register: \{Device 1\}:\{Device2\}:...:\{Device N\} |
There was a problem hiding this comment.
your pr #835 rewrites this same block to json. which of the two should land first?
|
|
||
| ```text | ||
| hami.io/node-handshake-nvidia: Reported 2024-01-23 04:30:04.434037031 +0000 UTC m=+1104711.777756895 | ||
| hami.io/node-handshake-nvidia: Requesting_2024-01-23 04:30:04.434037031 +0000 UTC m=+1104711.777756895 |
There was a problem hiding this comment.
pkg/device/nvidia/device.go sets HandshakeAnnos to the bare hami.io/node-handshake, only hygon and friends carry a suffix. so hami.io/node-handshake-nvidia does not exist. worth fixing in the same pass?
| <img src="/img/docs/common/developers/protocol/protocol-register.png" width="600px" alt="HAMi device registration protocol diagram showing node annotation process" /> | ||
|
|
||
| HAMi needs to know the spec of each AI device in the cluster to schedule properly. During device registration, device-plugin needs to keep patching the spec of each device into node annotations every 30 seconds, in the format of the following: | ||
| HAMi needs to know the spec of each AI device in the cluster to schedule properly. During device registration, device-plugin needs to keep patching the spec of each device into a node annotation every 30 seconds, in the format of the following: |
There was a problem hiding this comment.
this now says a single node annotation, but the paragraph still describes the handshake plus the register key. does dropping the handshake line from the block above leave the sentence accurate?
What type of PR is this? /kind documentation
What this PR does / why we need it:
Which issue(s) this PR fixes: Corrects the device registration handshake documentation to match the current implementation.
Fixes #
Checklist:
npm run lintandnpm run format:checkpassnpm run buildsucceeds for bothenandzhgit commit -s)