Documentation
¶
Overview ¶
Package hostcap detects the physical box's capacity (CPU cores and total RAM) from the host's /proc, so the agent can report it to the control plane on every heartbeat. It reports HOST values, not the container's cgroup limits, so a resized VPS is reflected automatically.
Every read is defensive: a failure yields 0 for that field rather than an error, so a detection miss can never sink a status report. The control plane treats 0 as "no change" and never overwrites a known-good value with it.
British English throughout. No em dashes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.