Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Thresholds ¶
type Thresholds struct { CPU string `yaml:"cpu"` RAM string `yaml:"ram"` InitialRateLimit int64 `yaml:"initialRateLimit"` // contains filtered or unexported fields }
Thresholds for resources
* CPU: integer representing the maximal percentage the CPU should reach. Value has to be inside the range of [0.0, 1.0]
* RAM: integer representing the maximal percentage of used RAM. Value has to be inside the range of [0.0, 1.0]
* InitialRateLimit: initial amount of maximal acceptable incoming requests
func (*Thresholds) Init ¶
func (t *Thresholds) Init() error
Click to show internal directories.
Click to hide internal directories.