beryl/overload
Admission limits for local beryl work.
Counts include queued and executing work. Accounted payload bytes are not a measurement of BEAM heap memory. Typed messages, closures, application state, raw PubSub delivery, and transport buffers are outside byte limits.
AdmissionError
Section titled “AdmissionError”pub type AdmissionError { Unavailable Closed Overloaded(boundary: Boundary) ItemTooLarge(boundary: Boundary)}Work was not admitted, or a callback's complete result was rejected.
Boundary
Section titled “Boundary”pub type Boundary { RouterQueue SocketQueue WorkerQueue PresenceQueue CallbackBatch}A local admission boundary. These values are also telemetry labels.
CallError
Section titled “CallError”pub type CallError { AdmissionRejected(AdmissionError) RequestTimedOut OwnerUnavailable}A bounded request failed before admission or while awaiting completion.
Constructors
Section titled “Constructors”RequestTimedOut
Section titled “RequestTimedOut”RequestTimedOutA timeout does not prove that the operation was not applied.
LimitError
Section titled “LimitError”pub type LimitError { InvalidItemLimit InvalidByteLimit}A queue limit must be positive.
Limits
Section titled “Limits”pub type LimitsPositive count and accounted-payload limits.
Occupancy
Section titled “Occupancy”pub type Occupancy { Occupancy( boundary: Boundary, items: Int, bytes: Int, max_items: Int, max_bytes: Int, high_items: Int, high_bytes: Int, rejected: Int, cancelled: Int, oldest_age_ms: Int )}Owner-independent accounting. Bytes exclude opaque function environments.
cancelled counts removed pending work and reclaimed abandoned reservations.
Age is in milliseconds.
Functions
Section titled “Functions”describe
Section titled “describe”pub fn describe(AdmissionError) -> StringDescribe an admission failure without including application data.
limits
Section titled “limits”pub fn limits( items: Int, bytes: Int) -> Result(Limits, LimitError)Construct finite limits. Zero does not disable queue admission.
max_bytes
Section titled “max_bytes”pub fn max_bytes(Limits) -> IntMaximum accounted payload bytes.
max_items
Section titled “max_items”pub fn max_items(Limits) -> IntMaximum outstanding items.
shared_limits
Section titled “shared_limits”pub fn shared_limits() -> LimitsDefault router or presence mutation limits.
socket_limits
Section titled “socket_limits”pub fn socket_limits() -> LimitsDefault socket limits, including suspended work and pending reports.
worker_limits
Section titled “worker_limits”pub fn worker_limits() -> LimitsDefault topic-worker input limits.
