Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultPyroscopeMutexProfilerRate = 5 DefaultPyroscopeBlockProfilerRate = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerOption ¶
type ServerOption struct {
SchedulerName string
ResourceReservationAppLabel string
SchedulerConf string
SchedulePeriod time.Duration
EnableLeaderElection bool
PrintVersion bool
MetricsNamespace string
RestrictSchedulingNodes bool
NodePoolLabelKey string
NodePoolLabelValue string
ListenAddress string
EnableProfiler bool
ProfilerApiPort string
PyroscopeAddress string
PyroscopeMutexProfilerRate int
PyroscopeBlockProfilerRate int
Verbosity int
IsInferencePreemptible bool
MaxNumberConsolidationPreemptees int
DetailedFitErrors bool
ScheduleCSIStorage bool
UseSchedulingSignatures bool
FullHierarchyFairness bool
NodeLevelScheduler bool
AllowConsolidatingReclaim bool
NumOfStatusRecordingWorkers int
GlobalDefaultStalenessGracePeriod time.Duration
PluginServerPort int
CPUWorkerNodeLabelKey string
GPUWorkerNodeLabelKey string
MIGWorkerNodeLabelKey string
Namspace string
QPS int
Burst int
}
ServerOption is the main context object for the controller manager.
func NewServerOption ¶
func NewServerOption() *ServerOption
NewServerOption creates a new CMServer with a default config.
func (*ServerOption) AddFlags ¶
func (s *ServerOption) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags for a specific CMServer to the specified FlagSet
func (*ServerOption) ValidateOptions ¶
func (so *ServerOption) ValidateOptions() error
Click to show internal directories.
Click to hide internal directories.