Module config

Source
Expand description

Configuration for Hyperactor.

This module provides a centralized way to manage configuration settings for Hyperactor. It uses the attrs system for type-safe, flexible configuration management that supports environment variables, YAML files, and temporary modifications for tests.

Modules§

global
Global configuration functions

Statics§

CODEC_MAX_FRAME_LENGTH
Maximum frame length for codec
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
PROCESS_EXIT_TIMEOUT
Timeout used by allocator for stopping a proc.
REMOTE_ALLOCATOR_HEARTBEAT_INTERVAL
Heartbeat interval for remote allocator
SPLIT_MAX_BUFFER_SIZE
Maximum buffer size for split port messages
STOP_ACTOR_TIMEOUT
Timeout used by proc mesh for stopping an actor.

Functions§

from_env
Load configuration from environment variables
from_yaml
Load configuration from a YAML file
merge
Merge with another configuration, with the other taking precedence
to_yaml
Save configuration to a YAML file