Documentation
¶
Index ¶
Constants ¶
View Source
const ValuesPerMeasurement = 9.63636 // dashboard use-case, original value was: 11.2222
TODO: distinguish per use case
Variables ¶
View Source
var Runner = &LoadRunner{}
Functions ¶
func RegisterHandler ¶
func RegisterHandler(notifHandler NotifyHandler)
Types ¶
type BatchProcessor ¶
type BulkLoad ¶
type BulkLoad interface {
Init()
Validate()
CreateDb()
PrepareWorkers()
GetBatchProcessor() BatchProcessor
GetScanner() Scanner
SyncEnd()
CleanUp()
UpdateReport(params *report.LoadReportParams) (reportTags [][2]string, extraVals []report.ExtraVal)
}
type HistoryItem ¶
type HistoryItem struct {
// contains filtered or unexported fields
}
type LoadRunner ¶
type LoadRunner struct {
DbName string
Workers int
ItemLimit int64
BatchSize int
TimeLimit time.Duration
DoLoad bool
DoDBCreate bool
DoAbortOnExist bool
StatPool sync.Pool
StatChan chan *Stat
// contains filtered or unexported fields
}
func (*LoadRunner) HasEndedPrematurely ¶
func (r *LoadRunner) HasEndedPrematurely() bool
func (*LoadRunner) Init ¶
func (r *LoadRunner) Init(defaultBatchSize int)
func (*LoadRunner) Run ¶
func (r *LoadRunner) Run(load BulkLoad) int
func (*LoadRunner) SetPrematureEnd ¶
func (r *LoadRunner) SetPrematureEnd(reason string)
func (*LoadRunner) Validate ¶
func (r *LoadRunner) Validate()
type NotifyHandler ¶
type NotifyReceiver ¶
type NotifyReceiver struct {
}
type SimpleRegression ¶
type SimpleRegression struct {
// contains filtered or unexported fields
}
func (*SimpleRegression) Intercept ¶
func (sr *SimpleRegression) Intercept() float64
func (*SimpleRegression) Slope ¶
func (sr *SimpleRegression) Slope() float64
func (*SimpleRegression) Update ¶
func (sr *SimpleRegression) Update(x, y float64)