Expand description
Configuration for Hyperactor Mesh.
This module provides hyperactor_mesh-specific configuration attributes that extend the base hyperactor configuration system.
Enums§
- Socket
Addr Str - A socket address string usable as a
declare_attrs!default.
Statics§
- MAX_
CAST_ DIMENSION_ SIZE - The maximium for a dimension size allowed for a folded shape when reshaping during casting to limit fanout. usize::MAX means no reshaping as any shape will always be below the limit so no dimension needs to be folded.
- MESH_
ADMIN_ ADDR - Default socket address for the mesh admin HTTP server.
- MESH_
ADMIN_ CONFIG_ DUMP_ BRIDGE_ TIMEOUT - Timeout for the end-to-end
/v1/config/{proc}bridge reply. The config-dump path forwards aConfigDumpmessage through the HostAgent bridge and waits forConfigDumpResult. This is inter-process actor messaging — fundamentally slower than localQueryChildsnapshot lookups (which useMESH_ADMIN_QUERY_CHILD_TIMEOUT). During startup, the HostAgent message loop may be busy processing actor registrations, so bridge latency can exceed several seconds. - MESH_
ADMIN_ MAX_ CONCURRENT_ RESOLVES - Maximum number of concurrent resolve requests the HTTP bridge forwards to the MeshAdminAgent. Excess requests receive 503 immediately. Protects the shared tokio runtime from query floods (e.g. multiple TUI clients, rapid polling). Increase if the admin server serves many concurrent clients that need low-latency responses; decrease if introspection queries interfere with the actor workload under churn.
- MESH_
ADMIN_ PYSPY_ BRIDGE_ TIMEOUT - Bridge-side timeout for py-spy dump requests. Must exceed
MESH_ADMIN_PYSPY_TIMEOUTto allow the subprocess kill/reap and reply delivery to arrive before declaringgateway_timeout. See PS-6 inintrospectmodule doc. - MESH_
ADMIN_ PYSPY_ CLIENT_ TIMEOUT - Client-side timeout for py-spy requests. Must exceed
MESH_ADMIN_PYSPY_BRIDGE_TIMEOUTso the server can return a structuredPySpyResulteven when the subprocess uses the full budget. See PS-6 inintrospectmodule doc. - MESH_
ADMIN_ PYSPY_ TIMEOUT - Timeout for py-spy dump requests. See PS-5 in
introspectmodule doc. With--native --native-all, py-spy unwinds native stacks via libunwind which is significantly slower than Python-only capture (~100ms). 10s accommodates native unwinding on heavily loaded hosts. Independent ofMESH_ADMIN_SINGLE_HOST_TIMEOUTbecause py-spy does real I/O (subprocess + ptrace) rather than actor messaging. - MESH_
ADMIN_ QUERY_ CHILD_ TIMEOUT - Timeout for QueryChild snapshot lookups in resolve_actor_node.
QueryChild is handled by a synchronous callback — it either
returns immediately or returns Error. A short budget ensures
the total time for resolve_actor_node stays well under
MESH_ADMIN_SINGLE_HOST_TIMEOUT. - MESH_
ADMIN_ RESOLVE_ ACTOR_ TIMEOUT - Timeout for fallback queries to actors/procs that may have been
recently destroyed. The second-chance paths in
resolve_proc_nodeandresolve_actor_nodefire after the fast QueryChild lookup fails. A short budget here prevents dead actors from blocking the single-threaded MeshAdminAgent message loop. - MESH_
ADMIN_ SINGLE_ HOST_ TIMEOUT - Timeout for targeted introspection queries that hit a single, specific host. Kept short so a slow or dying actor cannot block the single-threaded MeshAdminAgent message loop.
- MESH_
ADMIN_ TREE_ TIMEOUT - Timeout for the
/v1/treefan-out. Kept generous because the tree dump walks every host and proc in the mesh. - MESH_
ATTACH_ CONFIG_ TIMEOUT - Timeout for the config-push barrier during
HostMesh::attach(). - MESH_
PROC_ LAUNCHER_ KIND - Which builtin process launcher backend to use. Accepted values: “native” (default), “systemd”. Trimmed and lowercased before matching.
- PYSPY_
BIN - Path to the py-spy binary. When non-empty, tried before
the fallback
"py-spy"PATH lookup. See PS-3 inintrospectmodule doc.