ouroboros-consensus
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ouroboros.Consensus.Storage.LeiosDB.Trace

Synopsis

Documentation

data TraceLeiosDb Source #

Constructors

TraceLeiosDbInsertCollision

A UNIQUE/PRIMARY KEY constraint was violated by an INSERT, the offending row was silently ignored.

Fields

  • String

    table name

  • String

    a human-readable description of the colliding key

TraceLeiosDbWriterQueueFull

A write had to wait for room in the writer's queue: the writer is the bottleneck and every producer is now behind it.

Fields

TraceLeiosDbWriteAbandoned

The submitting thread died waiting for room in the queue, so this write is lost and no exception says so.

Fields

TraceLeiosDbWriteJobDone

The only evidence that the writer ran a job at all.

Fields

TraceLeiosDbStats LeiosDbStats

Size of the volatile LeiosDB partition and its on-disk footprint.

TraceLeiosDbCopiedToImmutable

The background copier committed EBs' closures to the immutable partition.

Fields

  • Int

    number of EBs copied

TraceLeiosDbEvicted

A sweep pass evicted EB announcement rows from the volatile partition.

Fields

  • Int

    number of rows evicted

TraceLeiosDbGCError

The background sweeper failed a sweep pass; the connection is dropped and the pass retried.

Fields

TraceLeiosDbCopyError

Copying an EB failed. It stays pinned, so it is still the next one to copy.

Fields

Instances

Instances details
Show TraceLeiosDb Source # 
Instance details

Defined in Ouroboros.Consensus.Storage.LeiosDB.Trace

data LeiosDbStats Source #

In-memory LeiosDb counters: seeded from the database files once per handle, bumped by the write, copy and GC paths, never written back.

An EB that has been copied to the immutable partition but not yet evicted from the volatile one counts in both partitions -- that is the truth on disk during the window between copy and GC.

Constructors

LeiosDbStats 

Fields

Instances

Instances details
Show LeiosDbStats Source # 
Instance details

Defined in Ouroboros.Consensus.Storage.LeiosDB.Trace