Skip to main content

Crate evalsync

Crate evalsync 

Source

Modules§

proto

Structs§

ExperimentWorker

Functions§

abort
Set the worker state to ERROR and notify the manager.
cleanup
Clean up the worker, closing sockets and terminating the ZMQ context. This should be called when the worker is no longer needed.
clear_metadata
Clear all metadata.
end
Set the worker state to DONE and notify the manager. If still in MEASURING, this will merge measurement end with workload end. Idempotent if already DONE.
get_all_metadata
Get all metadata as a HashMap.
get_metadata
Get a metadata value by key.
init
Initialize the worker with explicit experiment_id, client_id, and verbose flag.
init_env
Initialize the worker using environment variables (EVALSYNC_EXPERIMENT_ID, EVALSYNC_CLIENT_ID, EVALSYNC_VERBOSE).
is_verbose
Check if verbose mode is enabled.
measure_end
Transition from MEASURING to MEASURE_DONE (measurement complete). Call this after measurement is complete and cleanup work remains.
measure_start
Transition to MEASURING state (after warmup, before actual measurement). Call this after warmup is complete to enable precise timing. For servers with no warmup, this can be called directly from READY state (will auto-transition through RUNNING).
ready
Set the worker state to READY and notify the manager.
set_metadata
Set a metadata key-value pair.
start
Set the worker state to RUNNING and notify the manager.
wait_for_end
Wait for an END command from the manager and transition to DONE. If still in MEASURING, this will merge measurement end with workload end.
wait_for_start
Wait for a BEGIN command from the manager and transition to RUNNING.