|
NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
|
Immutable capacity snapshot. More...
#include <host_admission.h>
Public Member Functions | |
| HostResourceProfile | scaled_available (std::uint8_t percent, std::string profile_id) const |
| Scale only schedulable capacity, preserving the immutable safety reserve. | |
Static Public Member Functions | |
| static HostResourceProfile | detect_current () |
| Detect cgroup-v2 / process limits on Linux and return conservative, bounded fallbacks elsewhere. | |
| static HostResourceProfile | intersect (const std::vector< HostResourceProfile > &profiles, std::string profile_id) |
| Intersect independently enforced sources; the tightest limit wins per dimension. | |
Immutable capacity snapshot.
Capacity after safety reserve is the only quantity visible to the admission scheduler.
Definition at line 92 of file host_admission.h.
|
static |
Detect cgroup-v2 / process limits on Linux and return conservative, bounded fallbacks elsewhere.
It never invents GPU or network capacity.