ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Server.Admission.Types

Description

The memory gate's shared vocabulary: what adapters charge, what the meter reports, and the bounds the boot hands the brake. Ecluse.Core.Server.Admission.Meter and Ecluse.Core.Server.Admission.Brake act on these, and the adapters, the sampler, the memory plan and the gauges read or build them.

Synopsis

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 on a residency capture of at least one meter step, 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.

newtype FlightKey Source #

One unit of work several requests may wait on: a shared fetch or a shared render, by its cache key.

Constructors

FlightKey Text 

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