coresPerReplica and nodesPerReplica are both floats (#18733)
https://github.com/kubernetes-incubator/cluster-proportional-autoscaler/blob/master/pkg/autoscaler/controller/linearcontroller/linear_controller.go#L51-L52pull/18424/merge
parent
9b9910c0d4
commit
fc4de6b721
|
@ -135,7 +135,7 @@ calculated using this equation:
|
|||
replicas = max( ceil( cores × 1/coresPerReplica ) , ceil( nodes × 1/nodesPerReplica ) )
|
||||
|
||||
Note that the values of both `coresPerReplica` and `nodesPerReplica` are
|
||||
integers.
|
||||
floats.
|
||||
|
||||
The idea is that when a cluster is using nodes that have many cores,
|
||||
`coresPerReplica` dominates. When a cluster is using nodes that have fewer
|
||||
|
|
Loading…
Reference in New Issue