Skip to content

Commit c9ed731

Browse files
Set mutation limit proportional to read limit by default
If you set 1200 as the default, keeping mutation 200 isn't very useful.
1 parent 245158d commit c9ed731

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/cmd/server/kubernetes/master/master_config.go

+1
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ func BuildKubeAPIserverOptions(masterConfig configapi.MasterConfig) (*kapiserver
155155
server.Etcd.DefaultWatchCacheSize = DefaultWatchCacheSize
156156

157157
server.GenericServerRunOptions.MaxRequestsInFlight = masterConfig.ServingInfo.MaxRequestsInFlight
158+
server.GenericServerRunOptions.MaxMutatingRequestsInFlight = masterConfig.ServingInfo.MaxRequestsInFlight / 2
158159
server.GenericServerRunOptions.MinRequestTimeout = masterConfig.ServingInfo.RequestTimeoutSeconds
159160
for _, nc := range masterConfig.ServingInfo.NamedCertificates {
160161
sniCert := utilflag.NamedCertKey{

0 commit comments

Comments
 (0)