Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecToInt64 ¶
func DecToInt64(value *inf.Dec) int64
truncates fractional digits and converts `value` to `int64`
func Horizontal ¶
func Horizontal(s *strategy.State) (*strategy.ScalingDecision, error)
Horizontal recommends a new number of replicas based on the following calculation For each resource of cpu and memory it calculates the desired number of replicas as `desired = ceil(current * currentUtilization / targetUtilization)` (same formula as `HPA`) if picks the maximum of both values and compares that to the minimum and maximum allowed replicas the result will be max(min(desired, maxReplicas), minReplicas)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.