| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Ouroboros.Consensus.Storage.LeiosDB.Trace
Synopsis
- data TraceLeiosDb
- = TraceLeiosDbInsertCollision String String
- | TraceLeiosDbWriterQueueFull String
- | TraceLeiosDbWriteAbandoned String
- | TraceLeiosDbWriteJobDone String
- | TraceLeiosDbStats LeiosDbStats
- | TraceLeiosDbCopiedToImmutable Int
- | TraceLeiosDbEvicted Int
- | TraceLeiosDbGCError String
- | TraceLeiosDbCopyError String String
- data LeiosDbStats = LeiosDbStats {
- volatileEbs ∷ !Int
- immutableEbs ∷ !Int
- walBytes ∷ !Integer
Documentation
data TraceLeiosDb Source #
Constructors
| TraceLeiosDbInsertCollision | A UNIQUE/PRIMARY KEY constraint was violated by an INSERT, the offending row was silently ignored. |
| 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
| |
| TraceLeiosDbEvicted | A sweep pass evicted EB announcement rows from the volatile partition. |
Fields
| |
| 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. |
Instances
| Show TraceLeiosDb Source # | |
Defined in Ouroboros.Consensus.Storage.LeiosDB.Trace Methods showsPrec ∷ Int → TraceLeiosDb → ShowS # show ∷ TraceLeiosDb → String # showList ∷ [TraceLeiosDb] → ShowS # | |
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
| Show LeiosDbStats Source # | |
Defined in Ouroboros.Consensus.Storage.LeiosDB.Trace Methods showsPrec ∷ Int → LeiosDbStats → ShowS # show ∷ LeiosDbStats → String # showList ∷ [LeiosDbStats] → ShowS # | |