NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
neograph::HostResourceProfile Class Reference

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.
 

Detailed Description

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.

Member Function Documentation

◆ detect_current()

static HostResourceProfile neograph::HostResourceProfile::detect_current ( )
static

Detect cgroup-v2 / process limits on Linux and return conservative, bounded fallbacks elsewhere.

It never invents GPU or network capacity.


The documentation for this class was generated from the following file: