server

package
v0.0.0-...-0701c2b Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FlagsVar = util.ParseFlags()
)

Functions

func FetchApplicationProfile

func FetchApplicationProfile(sysConfiguration util.SystemConfiguration) error

Fetch the performance profile of the microservice that should be scaled

func FetchVMBootingProfiles

func FetchVMBootingProfiles(sysConfiguration util.SystemConfiguration, vmProfiles []types.VmProfile) error

Fetch the booting and shutdown time of vms

func ReadVMProfiles

func ReadVMProfiles() ([]types.VmProfile, error)

Fetch the profiles of the available Virtual Machines to generate the scaling policies

func ScheduleScaling

func ScheduleScaling(sysConfiguration util.SystemConfiguration, selectedPolicy types.Policy)

func SetUpServer

func SetUpServer(fc chan types.Forecast) *gin.Engine

Set up server routes

func Start

func Start(port string, configFile string)

Main function to start the scaling policy derivation

func StartPolicyDerivation

func StartPolicyDerivation(timeStart time.Time, timeEnd time.Time, sysConfiguration util.SystemConfiguration) (types.Policy, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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