Documentation ¶
Overview ¶
Package reorderer holds reorderer related files
Package reorderer holds reorderer related files ¶
Package reorderer holds reorderer related files
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
Monitor represents a reorderer monitor
func NewReOrderMonitor ¶
func NewReOrderMonitor(ctx context.Context, statsdClient statsd.ClientInterface, reOrderer *ReOrderer) (*Monitor, error)
NewReOrderMonitor instantiates a new reorder statistics counter
type Opts ¶
type Opts struct { QueueSize uint64 // size of the chan where the perf data are pushed Rate time.Duration // delay between two time based iterations Retention uint64 // bucket to keep before dequeueing MetricRate time.Duration // delay between two metric samples HeapShrinkDelta int // delta between cap and len between releasing heap array }
Opts options to pass when creating a new instance of ReOrderer
type OrderedPerfMap ¶
type OrderedPerfMap struct {
// contains filtered or unexported fields
}
OrderedPerfMap implements the EventStream interface using an eBPF perf map associated with an event reorderer.
func NewOrderedPerfMap ¶
func NewOrderedPerfMap(ctx context.Context, handler func(int, []byte), statsdClient statsd.ClientInterface) (*OrderedPerfMap, error)
NewOrderedPerfMap returned a new ordered perf map.
func (*OrderedPerfMap) SetMonitor ¶
func (m *OrderedPerfMap) SetMonitor(counter eventstream.LostEventCounter)
SetMonitor set the monitor
type QuickInfo ¶
QuickInfo represents the info quickly extractable from an event, that can be used for reordering
type QuickInfoExtractor ¶
QuickInfoExtractor represents a function that takes a record, and returns the quick infos
type ReOrderer ¶
type ReOrderer struct { Metrics chan Metric // contains filtered or unexported fields }
ReOrderer defines an event re-orderer
func NewReOrderer ¶
func NewReOrderer(ctx context.Context, handler func(record *perf.Record), extractInfo QuickInfoExtractor, opts Opts) *ReOrderer
NewReOrderer returns a new ReOrderer
func (*ReOrderer) HandleEvent ¶
HandleEvent handle event form perf ring