Commit ced010b
authored
feat: SHA-stamped surrogate filename and configurable pool size (#1339)
- Use SHA-256 content hash in surrogate binary filename
(hyperlight_surrogate_{sha8}.exe) to eliminate cross-version
ACCESS_DENIED race when multiple hyperlight versions coexist.
- Add HYPERLIGHT_INITIAL_SURROGATES env var (1-512, default 512)
to control how many surrogate processes are pre-created at startup.
- Add HYPERLIGHT_MAX_SURROGATES env var (>=initial, <=512, default 512)
as hard cap with on-demand CAS growth when pool is exhausted.
- Rollback created_count on process creation failure to prevent
permanent capacity loss from transient errors.
- Increment created_count per-process (not store-after-loop) to
prevent count drift on partial init failure.
- Warn when env var values are clamped to valid range.
- Add tests for env var parsing (with #[serial] for thread safety)
and locked-file extraction resilience.
- Update surrogate development notes documentation.
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>1 parent b994cc2 commit ced010b
File tree
4 files changed
+404
-89
lines changed- docs
- src/hyperlight_host
- src/hypervisor
4 files changed
+404
-89
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
| |||
0 commit comments