Config & env#
Quick reference for the knobs that influence logging behavior. Defaults match the source in logging.rs.
Knobs#
Knob |
Type & default |
How to set |
When it takes effect |
Affects |
Notes |
|---|---|---|---|---|---|
|
|
Environment variable (process env) |
Read when stream forwarders are started |
Stream forwarder read/batch behavior |
Upper bound on lines read before a forced flush/resume cycle. Useful to bound memory when a child is chatty. |
|
|
Environment variable |
Read when |
Local file aggregation |
If true, create per-proc stdout/stderr files even in |
|
|
Environment variable |
Read when |
Line formatting in the bootstrap process |
Prepends |
|
|
Compile-time constant; can be overridden at runtime via Python |
Runtime (client actor) |
Client aggregation window |
If |
|
|
Compile-time constant |
Always on |
Line truncation in stream forwarder |
Lines longer than 4 KiB are truncated and suffixed with |
↯ Defined as the READ_LOG_BUFFER attr in code (maps to env HYPERACTOR_READ_LOG_BUFFER).
Runtime vs restart#
Runtime-adjustable: aggregation window (via Python
LoggingMeshClient.set_mode(..., aggregate_window_sec=…)).Apply on (re)start/wiring:
HYPERACTOR_FORCE_FILE_LOG,HYPERACTOR_PREFIX_WITH_RANK,HYPERACTOR_READ_LOG_BUFFER— changing these requires recreating the corresponding forwarders/file appenders to take effect.Fixed at build time:
MAX_LINE_SIZE, the default value ofDEFAULT_AGGREGATE_WINDOW_SEC(you can still override the window at runtime via Python).