You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 87d30ea
Browse filesBrowse the repository at this point in the historyBrowse files
|**Discover capacity**| Walks the *validated*`TopologyGraph.nodes.servers`, reading `cpu_cores` and `ram_mb` from each `ServerResources` spec. |
91
+
|**Discover capacity**| Walks the *validated*`TopologyGraph.nodes.servers`, reading `cpu_cores` and `ram_mb` from each `NodesResources` spec. |
92
92
|**Mint containers**| Calls `build_containers(env, spec)` which returns<br>`{"CPU": simpy.Container(init=cpu_cores), "RAM": simpy.Container(init=ram_mb)}` — the containers start **full** so a server can immediately consume tokens. |
93
93
|**Registry map**| Stores them in a private dict `_by_server: dict[str, ServerContainers]`. |
94
94
|**Public API**|`registry[server_id] → ServerContainers` (raises `KeyError` if the ID is unknown). |
0 commit comments