GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||
GeezerVison is showing github.com — Fix HTTP connection reuse in engine health probes by Psych0h3ad · Pull Request #37 · NVIDIA/Personal-AI-Router Conversation
|
|
Thank you for bringing this issue up. We're going to have a look and validate that everything looks good on it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I think this is worth fixing, although I noticed on golang 1.27, the tests w/o the fix only had 2 or 3 open connections. This seems to be due to I'll send a commit to the branch to make the change be a bit more succinct and align with internal standards. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Just to touch base here, we are working on getting our final batch of internal changes out into the public repo. Once those are in, we'll get this rebased (if necessary) and landed. Thanks again for your contribution! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yay! I was struggling with this when I installed for my personal AI bot brain Mac Mini😁 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The base branch was changed.
|
We'll need to rebase this onto develop (which has had some major changes lately). I can try to do that this morning. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Drain bounded HTTP response bodies before closing health checks so periodic polling can reuse connections. Preserve probe deadlines and status-based results, and cover HTTP/1 reuse, size limits, and timeouts. Signed-off-by: Psych0h3ad <[email protected]>
Signed-off-by: Kaylee Lubick <[email protected]>
8eb7ba8 to
6ee0b40
Compare
There was an error while loading. Please reload this page.
Two hunks conflicted with develop and are resolved here: - services/nvpair-engine-manager/lifecycle.go: the HTTP probe now defers httpcon.DrainAndClose (develop's connection-reuse fix from NVIDIA#37) after the llama.cpp identity check has read the body, instead of closing it unread. - services/nvpair-proxy/engines.go: develop's per-engine base route sets (NVIDIA#27) gain llamaCppBaseRoutes, and the llama.cpp facade profile is built with slices.Concat like Ollama and LM Studio, so it also classifies the Anthropic /v1/messages route. The llama.cpp router at b10826 serves /v1/messages itself, so the facade routes it like the other engines. The route-role test gains llama.cpp cases for the shared inference routes and for the router's own /models passthrough. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: pgoode41 <[email protected]>
## Description
Adds two pages to the public docs: **Release Notes**, starting with
1.0.0, and an **Upgrade Guide** for updating from a version before
1.0.0. People who read the docs rather than GitHub had no release notes
to look at.
The 1.0.0 notes are adapted from the release notes master doc. The
Upgrade Guide starts from the fact that most machines need nothing
extra, then covers the few setups that need a small step:
- tidying up the old `PAIR.app` on macOS;
- an LM Studio that an earlier PAIR installed;
- browser clients affected by the CORS change.
<!-- pair-release-intent:v1 -->
### Changelog title
n/a
### Changelog body
n/a
### Bumps
- services: none
- nvpair-cluster-manager: none
- nvpair-engine-manager: none
- nvpair-errors: none
- nvpair-job-scheduler: none
- nvpair-manual-nodes: none
- nvpair-node-info: none
- nvpair-node-scanner: none
- nvpair-node-settings: none
- nvpair-proxy: none
- nvpair-tui: none
- nvpair-ui-broker: none
- nvpair-workload-manager: none
<!-- /pair-release-intent:v1 -->
## Scope
- `docs/release-notes.mdx` (new): the 1.0.0 notes, covering what's new,
compatibility notes, targeted bug fixes, community contributions with PR
links, and special thanks. Notes before 1.0.0 are linked on GitHub
Releases.
- `docs/upgrade-guide.mdx` (new). It opens by saying an update keeps
settings, cluster membership, and models, and that every machine in a
cluster should run the same version. Each section then says who it
applies to:
- **On macOS, tidy up the old app:** run the old app's
`uninstall-macos.sh` without `--purge`, then install `NVIDIA PAIR.app`.
0.1.0 and 0.1.1 both ship that script, and both keep data without
`--purge`.
- **If an earlier PAIR installed LM Studio for you:** it keeps working,
but it has no install marker (`installed-by-pair.json`), so Uninstall,
Reset app data, and uninstalling PAIR leave it. Steps to remove it while
keeping `models`, or to reinstall it so PAIR manages it.
- **If you use PAIR from a web page or browser extension:** which launch
option allows a site for each engine.
- **Checking everything is working.**
- `fern/docs.yml`: both pages under Guides, after Getting Started.
- `README.md`, `docs/getting-started.mdx` ("Keeping PAIR Up to Date" and
"Learn More"), and `docs/known-issues.mdx`: link to the new pages.
`known-issues` gains an entry for the LM Studio limitation.
## Validation
- Each upgrade step was checked against the code:
`desktop/scripts/build/macos/uninstall.sh` at HEAD, `v0.1.0`, and
`v0.1.1`; `services/nvpair-engine-manager/install.go` and
`provenance.go`; `manifests/lmstudio.json`;
`desktop/docs/macos-privileged-helper.md`; and
`docs/engine-settings.mdx` for the CORS controls.
- Contributor PRs #27, #34, #37, #62, #80, #95, #120, #122, and #126
were checked for merge state and author.
- `node scripts/spdx-headers.mjs`
- `python3 scripts/release-intent/validate_pr.py --description-file
<this description> --skip-owned-files-check`
## Risk
Documentation only. No code, build, or versioned file changes.
Left for the product owner to confirm against the master doc:
- The app is named **NVIDIA PAIR** (`NVIDIA PAIR.app`).
- The macOS note does not say models could be lost, because models never
live inside the app.
- The bug-fix line names LM Studio only, because llama.cpp never shipped
publicly.
- `README.md` and `known-issues.mdx` still call Windows on ARM
experimental, beside the RTX Spark validation note.
## Checklist
- [x] I have read the [Contributing
Guidelines](https://github.com/NVIDIA/Personal-AI-Router/blob/main/CONTRIBUTING.md).
- [x] Every commit is signed off (`git commit -s`), certifying the
[Developer Certificate of Origin](https://developercertificate.org/).
- [ ] New or existing tests cover the change. (Documentation only.)
- [x] Relevant documentation is updated.
- [x] I checked the diff, changed filenames, and commit messages for
credentials, private data, internal URLs, internal issue identifiers,
and generated artifacts.
- [x] I recorded the validation commands and results above.
- [x] I declared version bumps in the release-intent block above.
`services/versions.json` is written by automation — do not edit it by
hand.
---------
Signed-off-by: Chris Kelsey <[email protected]>
The broker's Ollama, LM Studio and oMLX health checks and the engine manager's readiness probe closed each response body without reading it. Go's HTTP/1 transport only returns a connection to the pool once its body reaches EOF, so every poll opened a new connection to the engine. Drain a bounded amount of each body before closing it (shared httpcon.DrainAndClose), so one connection serves every poll. Ported from NVIDIA/Personal-AI-Router@5ae90de (NVIDIA#37), which fixed the Ollama path; extended to this fork's LM Studio and oMLX probes. Co-authored-by: Psych0h3ad <[email protected]> Signed-off-by: Jared Ping <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.