@mark1russell7/harness 0.16.7 → 0.16.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/build/{cell-FMlgjqVq.d.ts → cell-CYOKWfwg.d.ts} +46 -1
- package/build/image-YlflAajQ.js.map +1 -1
- package/build/index.d.ts +62 -2
- package/build/index.js +227 -55
- package/build/index.js.map +1 -1
- package/build/schema.d.ts +1 -1
- package/image/Dockerfile +1 -1
- package/image/native/src/bin/egress.rs +540 -0
- package/image/native/src/bin/ports.rs +33 -1
- package/image/native/src/lib.rs +111 -2
- package/package.json +3 -3
package/build/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as MiddleboxExpectation, A as HopPlace, At as RunPart, B as LineCount, Bt as StageBand, C as FaultPlace, Ct as RouterHop, D as GroupRole, Dt as RunDrill, E as GroupPrediction, Et as RunBackup, F as ImageSource, Ft as SentinelEvent, G as LoadStream, Gt as WsProbe, H as LoadBand, Ht as Target, I as Jitter, It as SentinelStage, J as MemoryOomTask, Jt as latestEndOf, K as MemoryLimits, Kt as environmentProblems, L as Kafka, Lt as Shipped, M as HopWrite, Mt as RunRoute, N as HostSysctl, Nt as RunStream, O as Hop, Ot as RunFabric, P as HttpProbe, Pt as RunTopology, Q as MiddleboxEvent, R as KafkaPause, Rt as ShippedImage, S as Fault, St as RequestPrediction, T as GroupPlace, Tt as Run, U as LoadPlan, Ut as Topology, V as LineMatch, Vt as Subject, W as LoadPrediction, Wt as Toxic, X as MemoryStep, Y as MemoryPrediction, Z as MemoryThrottlePrediction, _ as EgressBurst, _t as Recovers, a as ClientCapability, at as PausePrediction, b as Fabric, bt as ReplicaSetStage, c as ClusterClientAt, ct as Prediction, d as CountBand, dt as ProxyTime, et as MiddleboxForm, f as DeliveryPrediction, ft as QueueBand, g as DriverStep, gt as Reconnects, h as DriverBand, ht as QueuePrediction, i as Client, it as PauseBand, j as HopSignal, jt as RunPause, k as HopEvent, kt as RunGroup, l as ClusterStage, lt as ProbeEvent, m as DrillRoom, mt as QueueEnd, n as CLIENT_CAPABILITIES, nt as Outcomes, o as ClientImage, ot as PinnedImage, p as Drill, pt as QueueConnection, q as MemoryOomPrediction, qt as isHopPlace, r as Cell, rt as Pair, s as Cluster, st as PortsPrediction, t as BuildImage, tt as Observer, u as ConntrackPrediction, ut as ProxyHop, v as EgressPacketLaw, vt as Reference, w as Group, wt as RttRange, x as FabricManifest, xt as Replies, y as EgressPrediction, yt as ReplicaSet, z as KernelRecord, zt as Stage } from "./cell-CYOKWfwg.js";
|
|
2
2
|
import { Quantity } from "@mark1russell7/quantity";
|
|
3
3
|
import { DiskFault, LoadMeasure, Schedule } from "@mark1russell7/rigor-chaos";
|
|
4
4
|
import { StartedTestContainer } from "testcontainers";
|
|
@@ -462,6 +462,50 @@ export declare const stepBand: (expected: MemoryThrottlePrediction, usage: numbe
|
|
|
462
462
|
* step charged two batches.
|
|
463
463
|
*/
|
|
464
464
|
export declare const measureMemory: (run: Run, expected: MemoryPrediction) => Measured;
|
|
465
|
+
/** This record is one datagram of an egress run, as the egress client wrote it. */
|
|
466
|
+
interface EgressPacketReading {
|
|
467
|
+
/** This count is the key of the datagram: its place in the order of the sends, from 0. */
|
|
468
|
+
readonly key: number;
|
|
469
|
+
/** This count is the place of its burst, from 0. */
|
|
470
|
+
readonly burst: number;
|
|
471
|
+
/**
|
|
472
|
+
* This word is the end of the datagram. `sent` has a stamp of its departure. `dropped` is a send
|
|
473
|
+
* that gave ENOBUFS. `unread` is a send that the qdisc took, with no stamp of its departure.
|
|
474
|
+
*/
|
|
475
|
+
readonly outcome: "sent" | "dropped" | "unread";
|
|
476
|
+
/** This time is the arrival of the datagram in the qdisc after the first arrival of its burst. */
|
|
477
|
+
readonly arrived: Quantity;
|
|
478
|
+
/** This time is the departure of the datagram after the first arrival of its burst, or null. */
|
|
479
|
+
readonly left: Quantity | null;
|
|
480
|
+
}
|
|
481
|
+
/** This record is what a run of an egress cell measured. */
|
|
482
|
+
interface EgressReading {
|
|
483
|
+
/** This name is the kind of the root qdisc that `tc` read back. */
|
|
484
|
+
readonly kind: string;
|
|
485
|
+
readonly packets: readonly EgressPacketReading[];
|
|
486
|
+
/** These times are the spread of the arrivals of each burst. */
|
|
487
|
+
readonly spreads: readonly Quantity[];
|
|
488
|
+
/** These times are the first arrival of each burst after the first arrival of the run. */
|
|
489
|
+
readonly starts: readonly Quantity[];
|
|
490
|
+
/** These counts are the rise of the counts of the root qdisc in the run. */
|
|
491
|
+
readonly counts: {
|
|
492
|
+
readonly packets: number;
|
|
493
|
+
readonly drops: number;
|
|
494
|
+
};
|
|
495
|
+
/** This time is the step of CLOCK_REALTIME from the start of the bursts to the end of the run. */
|
|
496
|
+
readonly step: Quantity;
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* This function reads one run of an egress cell from the lines of the egress client. A run is void
|
|
500
|
+
* when the client wrote an error or no `done` line, or when the qdisc is of another kind. A neighbour
|
|
501
|
+
* of the target that is not permanent voids a run too. It is void too when the client sent another count of
|
|
502
|
+
* datagrams than the law. A send that failed with an error other than ENOBUFS voids its run, and a
|
|
503
|
+
* datagram with no stamp of its arrival voids it too. The arrivals void a run when one burst spreads more than `spread`, or
|
|
504
|
+
* when a later burst starts more than `jitter` off its time. The counts of the qdisc void a run when
|
|
505
|
+
* other traffic went through it. A step of the clock and a read of less than `read` of the
|
|
506
|
+
* departures void a run too.
|
|
507
|
+
*/
|
|
508
|
+
export declare const measureEgress: (run: Run, expected: EgressPrediction) => Measured;
|
|
465
509
|
/**
|
|
466
510
|
* This module reads one run of a paused consumer against its law. Two members of a group each hold
|
|
467
511
|
* one partition. A SIGSTOP stops the first member while it holds a batch, and a SIGCONT ends that
|
|
@@ -1864,6 +1908,17 @@ interface PortsReading {
|
|
|
1864
1908
|
readonly freed: number;
|
|
1865
1909
|
/** This count is the connects that failed before the last `freed` line. */
|
|
1866
1910
|
readonly tries: number;
|
|
1911
|
+
/** These counters of the network stack moved in the run, or null for a run with no `stack` lines. */
|
|
1912
|
+
readonly stack: StackChange | null;
|
|
1913
|
+
}
|
|
1914
|
+
/**
|
|
1915
|
+
* A stack change is the change of each counter of the network stack at each end. The change goes from
|
|
1916
|
+
* the `stack` line before the first round to the line after the last round. A counter that did not move
|
|
1917
|
+
* is absent.
|
|
1918
|
+
*/
|
|
1919
|
+
interface StackChange {
|
|
1920
|
+
readonly client: Readonly<Record<string, number>>;
|
|
1921
|
+
readonly target: Readonly<Record<string, number>>;
|
|
1867
1922
|
}
|
|
1868
1923
|
/**
|
|
1869
1924
|
* This function reads one run of a port cell. The `round` lines give each search. The `closing` and
|
|
@@ -2257,6 +2312,11 @@ interface Measured {
|
|
|
2257
2312
|
* A void run has it too when the judge read the lines of the client.
|
|
2258
2313
|
*/
|
|
2259
2314
|
readonly memory?: MemoryReading;
|
|
2315
|
+
/**
|
|
2316
|
+
* This record is what a run of an egress cell measured: the arrival and the departure of each datagram in the qdisc.
|
|
2317
|
+
* A void run has it too when the judge read the stamps of the client.
|
|
2318
|
+
*/
|
|
2319
|
+
readonly egress?: EgressReading;
|
|
2260
2320
|
/** This record is what the second request of an HTTP client met, for a cell whose prediction says it. */
|
|
2261
2321
|
readonly request?: RequestReading | null;
|
|
2262
2322
|
/** This record is the time of each later band of a driver cell (`DriverBand.then`). */
|
|
@@ -2958,4 +3018,4 @@ export declare const environmentCounts: (cell: Cell, runs: number) => number[];
|
|
|
2958
3018
|
* Each environment does a warm-up first, and the result keeps it apart from the counted runs.
|
|
2959
3019
|
*/
|
|
2960
3020
|
export declare const runCell: (cell: Cell, say?: (line: string) => void) => Promise<CellResult>;
|
|
2961
|
-
export { type Agent, type BuildImage, type BuildRecord, CLIENT_CAPABILITIES, type CallReading, type Cell, type CellResult, type Client, type ClientCapability, type ClientImage, type ClockPair, type Cloud, type Cluster, type ClusterClientAt, type ClusterLab, type ClusterStage, type ConntrackPrediction, type ConntrackReading, type ContextFile, type CountBand, type Crossings, type Cut, type Decision, type DeliveryPrediction, type DeliveryReading, type DeliveryStream, type DiskImage, type DiskLab, type DiskLabOptions, type DiskPinnable, type DiskRecord, type DiskSubject, type DiskWriterRecord, type Drill, type DrillRoom, type DriverBand, type DriverSocket, type DriverStep, type DriverStepTime, type ErrorOnTheWay, type EstimateVerdict, type Fabric, type FabricLab, type FabricManifest, type FabricParts, type Fault, type FaultOptions, type FaultPlace, type FaultSide, type Group, type GroupClient, type GroupLab, type GroupMeasured, type GroupNetworkFault, type GroupPlace, type GroupPrediction, type GroupReading, type GroupRole, type GroupVerdict, type GroupView, type Hop, type HopEvent, type HopPlace, type HopSignal, type HopWrite, type Host, type HostSetting, type HostSysctl, type HttpProbe, type ImagePlan, type ImageSource, type Interval, type Jitter, type Kafka, type KafkaLab, type KafkaMember, type KafkaPause, type KernelRecord, type Lab, type Layer, type LeafViews, type LineCount, type LineMatch, type LoadBand, type LoadJudgement, type LoadPlan, type LoadPrediction, type LoadSpread, type LoadStream, type LoadVerdict, type Manifest, type ManifestHop, type Measured, type MemberLine, type MemoryLimits, type MemoryOomPrediction, type MemoryOomTask, type MemoryPrediction, type MemoryReading, type MemoryStep, type MemoryStepReading, type MemoryTaskReading, type MemoryThrottlePrediction, type MiddleboxEvent, type MiddleboxExpectation, type MiddleboxForm, type NetworkFault, type NodeLine, type Observer, type OplogRead, type OplogTime, type Outcome, type Outcomes, type Pair, type PairSets, type Pairing, type PartitionView, type PauseBand, type PauseCommit, type PausePrediction, type PauseReading, type Pinnable, type PinnedImage, type PortsPrediction, type PortsReading, type Prediction, type Probe, type ProbeEvent, type ProgramEvent, type ProxyHop, type ProxyTime, type QueueBand, type QueueConnection, type QueueConnectionReading, type QueueEnd, type QueuePrediction, type QueueReading, type ReconnectReading, type ReconnectVerdict, type Reconnects, type RecordCode, type Recovers, type RecoveryMeasured, type Reference, type Reordering, type ReplicaSet, type ReplicaSetLab, type ReplicaSetStage, type Replies, type RequestPrediction, type RequestReading, type RouteLine, type RouterHop, type RttRange, type Run, type RunBackup, type RunDrill, type RunEstimate, type RunFabric, type RunGroup, type RunLoad, type RunPart, type RunPause, type RunRoute, type RunStream, type RunTopology, type SentinelEvent, type SentinelStage, type Shipped, type ShippedImage, type Sibling, type SocketPlace, type Spread, type Stage, type StageBand, type StageVerdict, type StallReading, type Stamp, type Status, type StatusRow, type Subject, type Substrate, type SubstrateSource, type Target, type TimeFromFault, type Topology, type Toxic, type Verdict, type WallStamp, type Writes, type WsProbe, environmentProblems, isHopPlace, latestEndOf };
|
|
3021
|
+
export { type Agent, type BuildImage, type BuildRecord, CLIENT_CAPABILITIES, type CallReading, type Cell, type CellResult, type Client, type ClientCapability, type ClientImage, type ClockPair, type Cloud, type Cluster, type ClusterClientAt, type ClusterLab, type ClusterStage, type ConntrackPrediction, type ConntrackReading, type ContextFile, type CountBand, type Crossings, type Cut, type Decision, type DeliveryPrediction, type DeliveryReading, type DeliveryStream, type DiskImage, type DiskLab, type DiskLabOptions, type DiskPinnable, type DiskRecord, type DiskSubject, type DiskWriterRecord, type Drill, type DrillRoom, type DriverBand, type DriverSocket, type DriverStep, type DriverStepTime, type EgressBurst, type EgressPacketLaw, type EgressPacketReading, type EgressPrediction, type EgressReading, type ErrorOnTheWay, type EstimateVerdict, type Fabric, type FabricLab, type FabricManifest, type FabricParts, type Fault, type FaultOptions, type FaultPlace, type FaultSide, type Group, type GroupClient, type GroupLab, type GroupMeasured, type GroupNetworkFault, type GroupPlace, type GroupPrediction, type GroupReading, type GroupRole, type GroupVerdict, type GroupView, type Hop, type HopEvent, type HopPlace, type HopSignal, type HopWrite, type Host, type HostSetting, type HostSysctl, type HttpProbe, type ImagePlan, type ImageSource, type Interval, type Jitter, type Kafka, type KafkaLab, type KafkaMember, type KafkaPause, type KernelRecord, type Lab, type Layer, type LeafViews, type LineCount, type LineMatch, type LoadBand, type LoadJudgement, type LoadPlan, type LoadPrediction, type LoadSpread, type LoadStream, type LoadVerdict, type Manifest, type ManifestHop, type Measured, type MemberLine, type MemoryLimits, type MemoryOomPrediction, type MemoryOomTask, type MemoryPrediction, type MemoryReading, type MemoryStep, type MemoryStepReading, type MemoryTaskReading, type MemoryThrottlePrediction, type MiddleboxEvent, type MiddleboxExpectation, type MiddleboxForm, type NetworkFault, type NodeLine, type Observer, type OplogRead, type OplogTime, type Outcome, type Outcomes, type Pair, type PairSets, type Pairing, type PartitionView, type PauseBand, type PauseCommit, type PausePrediction, type PauseReading, type Pinnable, type PinnedImage, type PortsPrediction, type PortsReading, type Prediction, type Probe, type ProbeEvent, type ProgramEvent, type ProxyHop, type ProxyTime, type QueueBand, type QueueConnection, type QueueConnectionReading, type QueueEnd, type QueuePrediction, type QueueReading, type ReconnectReading, type ReconnectVerdict, type Reconnects, type RecordCode, type Recovers, type RecoveryMeasured, type Reference, type Reordering, type ReplicaSet, type ReplicaSetLab, type ReplicaSetStage, type Replies, type RequestPrediction, type RequestReading, type RouteLine, type RouterHop, type RttRange, type Run, type RunBackup, type RunDrill, type RunEstimate, type RunFabric, type RunGroup, type RunLoad, type RunPart, type RunPause, type RunRoute, type RunStream, type RunTopology, type SentinelEvent, type SentinelStage, type Shipped, type ShippedImage, type Sibling, type SocketPlace, type Spread, type StackChange, type Stage, type StageBand, type StageVerdict, type StallReading, type Stamp, type Status, type StatusRow, type Subject, type Substrate, type SubstrateSource, type Target, type TimeFromFault, type Topology, type Toxic, type Verdict, type WallStamp, type Writes, type WsProbe, environmentProblems, isHopPlace, latestEndOf };
|