job

package
v0.0.0-...-277eacc Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseJSON

func ParseJSON(orgJob nomad.Job, call string) (groupsMap map[string]structs.JobStruct, nomadJob nomad.Job)

ParseJSON takes a byte array from getJob and a string and checks that this nomad Job has the scalling stanza correctly declared inside of it. It also checks before scalling down that the current job is stable. This status check is ignored for scalling up just in case the application is not stable because it is overloaded by requests. Returns jobs []JobStruct and nomadJob nomad.Job

Types

This section is empty.

Jump to

Keyboard shortcuts

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