Packages

CrucibleFramework: A thin orchestration layer for experiment pipelines. Provides pipeline execution, stage behaviour, and optional persistence.

Current section

Files

Jump to
crucible_framework lib crucible ir hedging_config.ex
Raw

lib/crucible/ir/hedging_config.ex

defmodule Crucible.IR.HedgingConfig do
@derive {Jason.Encoder,
only: [:strategy, :delay_ms, :percentile, :max_extra_requests, :options]}
@moduledoc """
Request hedging and tail-latency configuration.
"""
@type strategy :: :off | :fixed_delay | :percentile | :adaptive
@type t :: %__MODULE__{
strategy: strategy(),
delay_ms: non_neg_integer() | nil,
percentile: float() | nil,
max_extra_requests: non_neg_integer(),
options: map()
}
defstruct strategy: :off,
delay_ms: nil,
percentile: nil,
max_extra_requests: 1,
options: %{}
end