From 44a6c48e77b282b6a60b659cc1f6db20ee9433c1 Mon Sep 17 00:00:00 2001 From: Wojciech Tyczynski Date: Thu, 27 Oct 2016 10:10:43 +0200 Subject: [PATCH] Increase watchcache sizes for large clusters --- pkg/registry/cachesize/cachesize.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/registry/cachesize/cachesize.go b/pkg/registry/cachesize/cachesize.go index 52b9f082940..1685e7a5b34 100644 --- a/pkg/registry/cachesize/cachesize.go +++ b/pkg/registry/cachesize/cachesize.go @@ -87,8 +87,8 @@ func InitializeWatchCacheSizes(expectedRAMCapacityMB int) { // TODO: Figure out which resource we should have non-default value. watchCacheSizes[Controllers] = maxInt(5*clusterSize, 100) watchCacheSizes[Endpoints] = maxInt(10*clusterSize, 1000) - watchCacheSizes[Nodes] = maxInt(3*clusterSize, 1000) - watchCacheSizes[Pods] = maxInt(10*clusterSize, 1000) + watchCacheSizes[Nodes] = maxInt(5*clusterSize, 1000) + watchCacheSizes[Pods] = maxInt(50*clusterSize, 1000) watchCacheSizes[Services] = maxInt(5*clusterSize, 1000) }