Documentation
¶
Index ¶
- type AutoTuner
- func (a *AutoTuner) GetAllTunings() map[string]float64
- func (a *AutoTuner) GetParameterValue(name string) float64
- func (a *AutoTuner) RecordMeasurement(paramName string, value, metric float64)
- func (a *AutoTuner) RegisterParameter(name string, minVal, maxVal float64, tType TuningType) *TuningParameter
- func (a *AutoTuner) Start(ctx context.Context) error
- func (a *AutoTuner) Stop() error
- type AutoTunerConfig
- type Measurement
- type TuningParameter
- type TuningType
- type WorkloadAnalyzer
- type WorkloadProfile
- type WorkloadSample
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoTuner ¶
type AutoTuner struct {
// contains filtered or unexported fields
}
func NewAutoTuner ¶
func NewAutoTuner(config AutoTunerConfig, logger *zerolog.Logger) *AutoTuner
func (*AutoTuner) GetAllTunings ¶
func (*AutoTuner) GetParameterValue ¶
func (*AutoTuner) RecordMeasurement ¶
func (*AutoTuner) RegisterParameter ¶
func (a *AutoTuner) RegisterParameter(name string, minVal, maxVal float64, tType TuningType) *TuningParameter
type AutoTunerConfig ¶
type Measurement ¶
type TuningParameter ¶
type TuningType ¶
type TuningType int
const ( TuningTypeContinuous TuningType = iota TuningTypeDiscrete )
type WorkloadAnalyzer ¶
type WorkloadAnalyzer struct {
// contains filtered or unexported fields
}
func NewWorkloadAnalyzer ¶
func NewWorkloadAnalyzer(maxSamples int) *WorkloadAnalyzer
func (*WorkloadAnalyzer) Analyze ¶
func (w *WorkloadAnalyzer) Analyze() WorkloadProfile
func (*WorkloadAnalyzer) RecordSample ¶
func (w *WorkloadAnalyzer) RecordSample(rate, latP50, latP99, cpu float64)
type WorkloadProfile ¶
Click to show internal directories.
Click to hide internal directories.