mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
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:
commit
f6eb28765f
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user