ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Server.Admission.Types

Description

Admission outcomes, per-ecosystem charges and memory observations shared by the gates, adapters, sampler and boot-time memory plan.

Synopsis

Refusals

data Shed Source #

Why a gate turned a request away.

Constructors

RoomFull

Its waiting room was full when the request arrived.

WaitExpired

The request waited in the room, and the room's wait ran out first.

Instances

Instances details
Show Shed Source # 
Instance details

Defined in Ecluse.Core.Server.Admission.Types

Methods

showsPrec :: Int -> Shed -> ShowS #

show :: Shed -> String #

showList :: [Shed] -> ShowS #

Eq Shed Source # 
Instance details

Defined in Ecluse.Core.Server.Admission.Types

Methods

(==) :: Shed -> Shed -> Bool #

(/=) :: Shed -> Shed -> Bool #

Charges

data ChargeFactors Source #

Live heap bytes charged per byte of a read or an output basis, in thousandths, for one ecosystem.

Constructors

ChargeFactors 

Fields

  • cfFullReadPermille :: Int

    Per decompressed byte of a full read: 1.25 times the largest read peak per source byte of a realistic listing, or any listing's largest if more, from one meter step up, rounded up to a tenth.

  • cfKeptPermille :: Int

    Per decompressed byte of a full read once it completes, until the render: 1.25 times the largest shared cache entry per source byte, rounded up to a tenth.

  • cfOutputPermille :: Int

    Per byte of a listing's output basis: 1.25 times the largest output working set per basis byte of a single document or a realistic merge, on a capture of at least one meter step, rounded up.

data FlightKey Source #

One unit of shared work that requests may wait on, a fetch or a render: its store and its cache key's identity.

The meter's figures

data MeterSnapshot Source #

What the meter holds and who waits on it, for the gauges and the sampler.

Constructors

MeterSnapshot 

Fields

The brake

data BrakeLevel Source #

Where the brake stands after a sample.

Constructors

Calm

The collector is calm: the budget may grow.

Holding

Neither calm nor pressed: the budget holds.

Braking

Pressure seen in this sample: the budget halved, or holds while a halving settles.

Instances

Instances details
Show BrakeLevel Source # 
Instance details

Defined in Ecluse.Core.Server.Admission.Types

Eq BrakeLevel Source # 
Instance details

Defined in Ecluse.Core.Server.Admission.Types

brakeLevelCode :: BrakeLevel -> Int Source #

The gauge value of a level: 0 calm, 1 holding, 2 braking.

data BrakeBounds Source #

What the boot fixed for this process.

Constructors

BrakeBounds 

Fields

Instances

Instances details
Show BrakeBounds Source # 
Instance details

Defined in Ecluse.Core.Server.Admission.Types

Eq BrakeBounds Source # 
Instance details

Defined in Ecluse.Core.Server.Admission.Types