mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Parameterization for downscale, upscale, and tolerance with backsolving
unit test for visible testing of tolerance algorithm expectations. Logs for dScale, uScale, tol creation.
This commit is contained in:
@@ -362,7 +362,11 @@ func (s *CMServer) Run(_ []string) error {
|
||||
metrics.DefaultHeapsterService,
|
||||
metrics.DefaultHeapsterPort,
|
||||
)
|
||||
podautoscaler.NewHorizontalController(hpaClient, metricsClient).
|
||||
// TODO parameterize tolerance/downscale/upscale options.
|
||||
tolerance := 1.0
|
||||
downScale := time.Duration(5) * time.Second
|
||||
upScale := time.Duration(3) * time.Second
|
||||
podautoscaler.NewHorizontalController(kubeClient, metricsClient, tolerance, downScale, upScale).
|
||||
Run(s.HorizontalPodAutoscalerSyncPeriod)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user