Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid fetching empty metrics (kubewharf#98)
As metricsFetcher.GetContainerMetric and cpuResourceAdvisor.update are called in separate goroutines, the latter may be executed before the former, resulting in obtaining empty metrics and falling back to using pod requests as estimated resources, which leads to a sharp decrease in headroom. Signed-off-by: linzhecheng <linzhecheng@bytedance.com>
- Loading branch information