mdm

package
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package mdm provides test-only code for checking the merge delay of a Trillian log.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MergeDelayMonitor

type MergeDelayMonitor struct {
	// contains filtered or unexported fields
}

MergeDelayMonitor submits leaves to a Log and measures merge delay.

func NewMonitor

NewMonitor creates a MergeDelayMonitor instance for the given log ID, accessed via the cl client.

func (*MergeDelayMonitor) Monitor

func (m *MergeDelayMonitor) Monitor(ctx context.Context) error

Monitor runs merge delay monitoring until its context is cancelled or an error occurs.

func (*MergeDelayMonitor) Stats

func (m *MergeDelayMonitor) Stats(newLeaf bool) (uint64, float64)

Stats returns the total count of requests and the total elapsed time across all invocations.

type MergeDelayOptions

type MergeDelayOptions struct {
	ParallelAdds  int
	LeafSize      int
	NewLeafChance int // percentage
	EmitInterval  time.Duration
	Deadline      time.Duration
	MinMergeDelay time.Duration
	MetricFactory monitoring.MetricFactory
}

MergeDelayOptions holds the parameters for a MergeDelayMonitor.

Directories

Path Synopsis
The mdmtest binary runs merge delay tests against a Trillian Log.
The mdmtest binary runs merge delay tests against a Trillian Log.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL