v1alpha1

package
v0.0.0-...-f2569be Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppInfo

type AppInfo struct {
	Name  string `json:"name"`
	Path  string `json:"path"`
	Chart bool   `json:"chart,omitempty"`
}

type Cluster

type Cluster struct {
	CustomCluster string `json:"customConfig,omitempty"`
	KubeConfig    string `json:"kubeConfig,omitempty"`
}

type CustomConfig

type CustomConfig struct {
	ShufflePod              bool                    `json:"shufflePod,omitempty"`
	ExportConfig            ExportConfig            `json:"exportConfig,omitempty"`
	WorkloadInflationConfig WorkloadInflationConfig `json:"workloadInflationConfig,omitempty"`
	WorkloadTuningConfig    WorkloadTuningConfig    `json:"workloadTuningConfig,omitempty"`
	NewWorkloadConfig       string                  `json:"newWorkloadConfig,omitempty"`
	DescheduleConfig        DescheduleConfig        `json:"descheduleConfig,omitempty"`
	TypicalPodsConfig       TypicalPodsConfig       `json:"typicalPodsConfig,omitempty"`
}

type DescheduleConfig

type DescheduleConfig struct {
	Ratio  float64 `json:"ratio,omitempty"`
	Policy string  `json:"policy,omitempty"`
}

type ExportConfig

type ExportConfig struct {
	PodSnapshotYamlFilePrefix string `json:"podSnapshotYamlFilePrefix,omitempty"`
	NodeSnapshotCSVFilePrefix string `json:"nodeSnapshotCSVFilePrefix,omitempty"`
}

type Simon

type Simon struct {
	APIVersion string        `json:"apiVersion"`
	Kind       string        `json:"kind"`
	MetaData   SimonMetaData `json:"metadata"`
	Spec       SimonSpec     `json:"spec"`
}

type SimonMetaData

type SimonMetaData struct {
	Name string `json:"name"`
}

type SimonSpec

type SimonSpec struct {
	Cluster      Cluster      `json:"cluster"`
	AppList      []AppInfo    `json:"appList"`
	NewNode      string       `json:"newNode"`
	CustomConfig CustomConfig `json:"customConfig,omitempty"`
}

type TypicalPodsConfig

type TypicalPodsConfig struct {
	IsInvolvedCpuPods      bool    `json:"isInvolvedCpuPods,omitempty"`
	PodPopularityThreshold int     `json:"podPopularityThreshold,omitempty"` // [0-100]
	PodIncreaseStep        int     `json:"podIncreaseStep,omitempty"`
	GpuResWeight           float64 `json:"gpuResWeight,omitempty"`
}

type WorkloadInflationConfig

type WorkloadInflationConfig struct {
	Ratio float64 `json:"ratio,omitempty"`
	Seed  int64   `json:"seed,omitempty"`
}

type WorkloadTuningConfig

type WorkloadTuningConfig struct {
	Ratio float64 `json:"ratio,omitempty"` // <= 0 means no effects
	Seed  int64   `json:"seed,omitempty"`
}

Jump to

Keyboard shortcuts

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