| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
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
- data ChargeFactors = ChargeFactors {}
- newtype FlightKey = FlightKey Text
- data MeterSnapshot = MeterSnapshot {
- snBudgetBytes :: Int
- snChargedBytes :: Int
- snWaiting :: Int
- snPaused :: Int
- snBrakeLevel :: BrakeLevel
- data BrakeLevel
- brakeLevelCode :: BrakeLevel -> Int
- data BrakeBounds = BrakeBounds {}
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
| |
Instances
| Show ChargeFactors Source # | |
Defined in Ecluse.Core.Server.Admission.Types Methods showsPrec :: Int -> ChargeFactors -> ShowS # show :: ChargeFactors -> String # showList :: [ChargeFactors] -> ShowS # | |
| Eq ChargeFactors Source # | |
Defined in Ecluse.Core.Server.Admission.Types Methods (==) :: ChargeFactors -> ChargeFactors -> Bool # (/=) :: ChargeFactors -> ChargeFactors -> Bool # | |
One unit of work several requests may wait on: a shared fetch or a shared render, by its cache key.
Instances
| Show FlightKey Source # | |
| Eq FlightKey Source # | |
| Ord FlightKey Source # | |
Defined in Ecluse.Core.Server.Admission.Types | |
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
| |
Instances
| Show MeterSnapshot Source # | |
Defined in Ecluse.Core.Server.Admission.Types Methods showsPrec :: Int -> MeterSnapshot -> ShowS # show :: MeterSnapshot -> String # showList :: [MeterSnapshot] -> ShowS # | |
| Eq MeterSnapshot Source # | |
Defined in Ecluse.Core.Server.Admission.Types Methods (==) :: MeterSnapshot -> MeterSnapshot -> Bool # (/=) :: MeterSnapshot -> MeterSnapshot -> Bool # | |
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
| Show BrakeLevel Source # | |
Defined in Ecluse.Core.Server.Admission.Types Methods showsPrec :: Int -> BrakeLevel -> ShowS # show :: BrakeLevel -> String # showList :: [BrakeLevel] -> ShowS # | |
| Eq BrakeLevel Source # | |
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
| Show BrakeBounds Source # | |
Defined in Ecluse.Core.Server.Admission.Types Methods showsPrec :: Int -> BrakeBounds -> ShowS # show :: BrakeBounds -> String # showList :: [BrakeBounds] -> ShowS # | |
| Eq BrakeBounds Source # | |
Defined in Ecluse.Core.Server.Admission.Types | |