Add bindmaster nodes command for GPU/process status monitoring#6
Open
damborik22 wants to merge 1 commit into
Open
Add bindmaster nodes command for GPU/process status monitoring#6damborik22 wants to merge 1 commit into
bindmaster nodes command for GPU/process status monitoring#6damborik22 wants to merge 1 commit into
Conversation
Fans out ssh + nvidia-smi to each configured host in parallel and prints one row per GPU (free VRAM, util %, top process, FREE/PARTIAL/BUSY). Stdlib only; no daemon, no shared state. Config at ~/.bindmaster/nodes.json, auto-seeded with bm1/bm2/bm4 on first run. Add Spark/BM3 entries later (Tailscale name as `host`).
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds a new
bindmaster nodessubcommand that queries GPU and process status across configured remote hosts via SSH + nvidia-smi. Provides both human-readable table and JSON output formats, with parallel host probing and configurable timeouts.Changes
New module:
nodes/status.py(356 lines)ThreadPoolExecutor--jsonflag)~/.bindmaster/nodes.jsonconfig on first run with default hosts (bm1, bm2, bm4)New module:
nodes/__init__.pyUpdated:
bindmaster.pynodessubcommand into CLI dispatcherbindmaster nodes [--json] [--config PATH] [--timeout SEC]Implementation Details
ssh_useroverride; defaults to ssh's own user resolutionUsage Examples
https://claude.ai/code/session_01SoHjgSb8Vh3wGpdbwttgrY