consts

package
v0.0.0-...-764b39c Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LabelExperimentName is the label of experiment name.
	LabelExperimentName = "experiment"
	// LabelTrialName is the label of trial name.
	LabelTrialName = "trial"
	// LabelDeploymentName is the label of deployment name.
	LabelDeploymentName = "deployment"
	// DefaultServicePort is the default port of sampling_client service.
	DefaultServicePort = 8500
	// DefaultServicePortName is the default port name of sampling_client service.
	DefaultServicePortName = "profile-service"
	// DefaultMetricValue is the default trial result value, set for failed trials
	DefaultMetricValue = "0.0"
	// DefaultSamplingService is the default algorithm k8s service name
	DefaultSamplingService = "morphling-algorithm-server"
	// DefaultSamplingPort is the default port of algorithm service.
	DefaultSamplingPort = 9996
	// DefaultMorphlingMySqlServiceName is the default mysql k8s service name
	DefaultMorphlingMySqlServiceName = "morphling-mysql"
	// DefaultMorphlingMySqlServicePort is the default mysql k8s service port
	DefaultMorphlingMySqlServicePort = "3306"
	// DefaultMorphlingDBManagerServiceName is the default db-manager k8s service name
	DefaultMorphlingDBManagerServiceName = "morphling-db-manager"
)

Variables

View Source
var (
	DefaultControllerNamespace = GetEnvOrDefault("MORPHLING_CORE_NAMESPACE", "morphling-system")
	// DefaultMorphlingDBManagerServicePort is the default db-manager k8s service port
	DefaultMorphlingDBManagerServicePort = GetEnvOrDefault("DB_PORT", "6799")
)

Functions

func GetEnvOrDefault

func GetEnvOrDefault(key string, fallback string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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