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
This commit is contained in:
Kubernetes Submit Queue 2016-09-01 05:44:11 -07:00 committed by GitHub
commit f6eb28765f

View File

@ -89,6 +89,7 @@ func InitializeWatchCacheSizes(expectedRAMCapacityMB int) {
watchCacheSizes[Endpoints] = maxInt(10*clusterSize, 1000)
watchCacheSizes[Nodes] = maxInt(3*clusterSize, 1000)
watchCacheSizes[Pods] = maxInt(10*clusterSize, 1000)
watchCacheSizes[Services] = maxInt(5*clusterSize, 1000)
}
func SetWatchCacheSizes(cacheSizes []string) {