metrics

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BindingAdd is the event when a new binding is added to API server.
	BindingAdd = "BindingAdd"
	// BindingUpdate is the event when a new binding is updated to API server.
	BindingUpdate = "BindingUpdate"
	// ScheduleAttemptFailure is the event when a schedule attempt fails.
	ScheduleAttemptFailure = "ScheduleAttemptFailure"
	// PolicyChanged means binding needs to be rescheduled for the policy changed
	PolicyChanged = "PolicyChanged"
	// ClusterNotReady means binding needs to be rescheduled for cluster is not ready
	ClusterNotReady = "ClusterNotReady"
)
View Source
const (
	// ScheduleStepFilter means the step in generic scheduler to filter clusters
	ScheduleStepFilter = "Filter"
	// ScheduleStepScore means the step in generic scheduler to score clusters
	ScheduleStepScore = "Score"
	// ScheduleStepSelect means the step in generic scheduler to select clusters
	ScheduleStepSelect = "Select"
	// ScheduleStepAssignReplicas means the step in generic scheduler to assign replicas
	ScheduleStepAssignReplicas = "AssignReplicas"
)
View Source
const SchedulerSubsystem = "karmada_scheduler"

SchedulerSubsystem - subsystem name used by scheduler

Variables

This section is empty.

Functions

func BindingSchedule

func BindingSchedule(scheduleType string, duration float64, err error)

BindingSchedule can record a scheduling attempt and the duration since `start`.

func CountSchedulerBindings

func CountSchedulerBindings(event string)

CountSchedulerBindings records the number of binding added to scheduling queues by event type.

func ScheduleStep

func ScheduleStep(action string, startTime time.Time)

ScheduleStep can record each scheduling step duration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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