Expand description
Configuration keys and I/O for hyperactor.
This module declares hyperactor-specific config keys.
Structs§
- PemBundle
- A bundle of PEM files for TLS configuration: CA certificate, server/client certificate, and private key.
Enums§
- Pem
- Stores a PEM-encoded value, either specified directly or read from a file.
Statics§
- CHANNEL_
NET_ RX_ BUFFER_ FULL_ CHECK_ INTERVAL - How often to check for full MPSC channel on NetRx.
- CHANNEL_
RECONNECT_ TIMEOUT - Maximum time
Link::next()spends retrying a failed connect before giving up. Pairs with TCP keepalive: keepalive surfaces peer death as an I/O error, then the connect-retry loop quits after this bound and the outer NetTx loop terminates the link withTxStatus::Closed. - CHANNEL_
TCP_ KEEPALIVE_ IDLE - Kernel TCP keepalive idle period: the gap from last activity
until the kernel sends its first probe on connections created
by hyperactor’s channel layer. On a healthy idle connection
this is also the probe cadence (each ACK resets the timer).
Total peer-death detection time is
idle + probe_budgetwhereprobe_budget = TCP_KEEPALIVE_INTERVAL * TCP_KEEPALIVE_RETRIES(private constants inchannel::net, currently 15s). Larger values reduce keepalive ACK traffic at the cost of slower peer-death detection. - CLEANUP_
TIMEOUT - Timeout used by proc for running the cleanup callback on an actor. Should be less than the timeout for STOP_ACTOR_TIMEOUT.
- CODEC_
MAX_ FRAME_ LENGTH - Maximum frame length for codec
- ENABLE_
DEST_ ACTOR_ REORDERING_ BUFFER - Whether to enable dest actor reordering buffer.
- FORWARDER_
FLUSH_ TIMEOUT - Timeout for best-effort forwarder flush during proc/actor teardown. If the remote side has already torn down its networking, acks may never arrive; this timeout prevents the flush from hanging indefinitely.
- HOST_
SPAWN_ READY_ TIMEOUT - Timeout for [
Host::spawn] to await proc readiness. - MESSAGE_
ACK_ EVERY_ N_ MESSAGES - Number of messages after which to send an acknowledgment
- MESSAGE_
ACK_ TIME_ INTERVAL - Message acknowledgment interval
- MESSAGE_
DELIVERY_ TIMEOUT - Message delivery timeout
- MESSAGE_
LATENCY_ SAMPLING_ RATE - Sampling rate for logging message latency Set to 0.01 for 1% sampling, 0.1 for 10% sampling, 0.90 for 90% sampling, etc.
- MESSAGE_
TTL_ DEFAULT - Default hop Time-To-Live for message envelopes.
- PROCESS_
EXIT_ TIMEOUT - Timeout to stop a proc.
- SERVER_
HEARTBEAT_ INTERVAL - Heartbeat interval for server health metrics. The server emits a heartbeat metric at this interval to indicate it is alive.
- SPLIT_
MAX_ BUFFER_ AGE - The maximum time an update can be buffered before being reduced.
- SPLIT_
MAX_ BUFFER_ SIZE - Maximum buffer size for split port messages
- STOP_
ACTOR_ TIMEOUT - Timeout used by proc mesh for stopping an actor.
- TERMINATED_
SNAPSHOT_ RETENTION - Maximum number of terminated actor snapshots retained per proc for post-mortem introspection. When the limit is exceeded, the oldest entries are evicted.
- TLS_CA
- Path to TLS CA certificate file for the ‘tls’ transport.
- TLS_
CERT - Path to TLS certificate file for the ‘tls’ transport.
- TLS_KEY
- Path to TLS private key file for the ‘tls’ transport.