config

package
v0.0.0-...-c392379 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBurst

func GetBurst() int

GetBurst returns the burst from config file

func GetConfig

func GetConfig() *poseidonConfig

GetConfig returns the address of the whole config

func GetConfigPath

func GetConfigPath() string

GetConfigPath returns the config path from config

func GetDefaultBehaviour

func GetDefaultBehaviour() bool

func GetDisableEvents

func GetDisableEvents() bool

func GetEnablePprof

func GetEnablePprof() bool

GetEnablePprof returns the pprof ability from config

func GetEnablePriority

func GetEnablePriority() bool

func GetEnableResAvai

func GetEnableResAvai() bool

func GetEnableRunTime

func GetEnableRunTime() bool

func GetEnableTaskResNeed

func GetEnableTaskResNeed() bool

func GetFirmamentAddress

func GetFirmamentAddress() string

GetFirmamentAddress returns the FirmamentAddress from config

func GetFlowDebug

func GetFlowDebug() bool

func GetKubeConfig

func GetKubeConfig() string

GetKubeConfig returns the KubeConfig from config

func GetKubeVersion

func GetKubeVersion() (int, int)

GetKubeVersion returns the KubeMajor and Minor version from the config

func GetMetricsBindAddress

func GetMetricsBindAddress() string

GetMetricsBindAddress returns the port serving healthz and metrics

func GetPprofAddress

func GetPprofAddress() string

GetPprofAddress returns the pprof address from which to go profiling

func GetQPS

func GetQPS() float32

GetQPS returns the QPS from config file

func GetSchedulerName

func GetSchedulerName() string

GetSchedulerName returns the SchedulerName from config

func GetSchedulingGPU

func GetSchedulingGPU() bool

GetSchedulingGPU returns whether scheduling by GPU from config

func GetSchedulingInterval

func GetSchedulingInterval() int

GetSchedulingInterval return the scheduling interval from config

func GetStatsServerAddress

func GetStatsServerAddress() string

GetStatsServerAddress returns the StatsServerAddress from the config TODO(shiv): We need to have separate port and IP for stats server too like firmament address amd port. This separation is required when passing address as command line flags in deployment yaml, the IP:PORT in the yaml throws an error.

func ReadFromCommandLineFlags

func ReadFromCommandLineFlags()

ReadFromCommandLineFlags reads command line flags and these will override poseidonConfig file flags.

func ReadFromConfigFile

func ReadFromConfigFile()

ReadFromConfigFile to read from yaml,json,toml etc poseidonConfig file Note:

The poseidonConfig values will be overwritten if flag for the same key are present

Types

This section is empty.

Jump to

Keyboard shortcuts

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