Documentation ¶
Index ¶
- Constants
- Variables
- func GetNextReplayEvent(events []gsc.EventInfo, currEventIndex int) (nextEventIndex int, nextEvent gsc.EventInfo)
- func GetNodeGroupNameFromMCCName(namespace, mccName string) string
- func GetNodeTemplates(mccs []gsh.MachineClassInfo, mcds []gsc.MachineDeploymentInfo) (nodeTemplates map[string]gsc.NodeTemplate, err error)
- func GetRecordedClusterSnapshot(dataAccess *db.DataAccess, snapshotNumber int, snapshotID string, ...) (cs gsc.ClusterSnapshot, err error)
- func GetReplayScalingRecommenderReportFormat(replayCAReportPath string) (reportFormat string, err error)
- func NewDefaultReplayer(ctx context.Context, params gsh.ReplayerParams) (gsh.Replayer, error)
- type DeltaWork
- type NamespaceWork
- type PodWork
- type PriorityClassWork
- type ReplayMode
- type ScalingRun
Constants ¶
View Source
const DefaultReplayInterval = time.Duration(5 * time.Minute)
Variables ¶
View Source
var ErrNoScenario = errors.New("no-scenario")
Functions ¶
func GetNextReplayEvent ¶
func GetNodeTemplates ¶
func GetNodeTemplates(mccs []gsh.MachineClassInfo, mcds []gsc.MachineDeploymentInfo) (nodeTemplates map[string]gsc.NodeTemplate, err error)
func GetRecordedClusterSnapshot ¶
func GetRecordedClusterSnapshot(dataAccess *db.DataAccess, snapshotNumber int, snapshotID string, runMarkTime time.Time) (cs gsc.ClusterSnapshot, err error)
func NewDefaultReplayer ¶
Types ¶
type DeltaWork ¶
type DeltaWork struct { Number int PriorityClassWork PriorityClassWork NamespaceWork NamespaceWork PodWork PodWork DeployParallel int }
type NamespaceWork ¶
type PriorityClassWork ¶
type PriorityClassWork struct {
ToDeploy []gsc.PriorityClassInfo
}
type ReplayMode ¶
type ReplayMode int
const ReplayCAMode ReplayMode = 0
const ReplayScalingRecommenderMode ReplayMode = 1
type ScalingRun ¶
func GetNextScalingRun ¶
func GetNextScalingRun(scaleUpEvents []gsc.EventInfo, lastRun ScalingRun, runInterval time.Duration) (run ScalingRun)
func (ScalingRun) Equal ¶
func (sr ScalingRun) Equal(o ScalingRun) bool
func (ScalingRun) IsZero ¶
func (sr ScalingRun) IsZero() bool
Click to show internal directories.
Click to hide internal directories.