Commit f6eb2876 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #31870 from gmarek/cache-size

Automatic merge from submit-queue Increase registry cache size for services to handle big clusters We noticed a problem with too small cache in a load test on a big cluster. This PR will slightly increase apiserver memory footprint, but it's safe otherwise. This should get in v1.4. @pwittrock
parents ef2dde9c 9c2d3a56
...@@ -89,6 +89,7 @@ func InitializeWatchCacheSizes(expectedRAMCapacityMB int) { ...@@ -89,6 +89,7 @@ func InitializeWatchCacheSizes(expectedRAMCapacityMB int) {
watchCacheSizes[Endpoints] = maxInt(10*clusterSize, 1000) watchCacheSizes[Endpoints] = maxInt(10*clusterSize, 1000)
watchCacheSizes[Nodes] = maxInt(3*clusterSize, 1000) watchCacheSizes[Nodes] = maxInt(3*clusterSize, 1000)
watchCacheSizes[Pods] = maxInt(10*clusterSize, 1000) watchCacheSizes[Pods] = maxInt(10*clusterSize, 1000)
watchCacheSizes[Services] = maxInt(5*clusterSize, 1000)
} }
func SetWatchCacheSizes(cacheSizes []string) { func SetWatchCacheSizes(cacheSizes []string) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment