@@ -274,17 +274,21 @@ func NewConfig(codecs serializer.CodecFactory) *Config {
274
274
RequestTimeout : time .Duration (60 ) * time .Second ,
275
275
MinRequestTimeout : 1800 ,
276
276
// 10MB is the recommended maximum client request size in bytes
277
- // the etcd server should accept. Thus, we set it as the limit
278
- // on the size increase the "copy" operations in a json patch
279
- // can cause. See
277
+ // the etcd server should accept. See
280
278
// https://github.com/etcd-io/etcd/blob/release-3.3/etcdserver/server.go#L90.
281
- JSONPatchMaxCopyBytes : int64 (10 * 1024 * 1024 ),
279
+ // A request body might be encoded in json, and is converted to
280
+ // proto when persisted in etcd. Assuming the upper bound of
281
+ // the size ratio is 10:1, we set 100MB as the largest size
282
+ // increase the "copy" operations in a json patch may cause.
283
+ JSONPatchMaxCopyBytes : int64 (100 * 1024 * 1024 ),
282
284
// 10MB is the recommended maximum client request size in bytes
283
- // the etcd server should accept. Thus, we set it as the
284
- // maximum bytes accepted to be decoded in a resource write
285
- // request. See
285
+ // the etcd server should accept. See
286
286
// https://github.com/etcd-io/etcd/blob/release-3.3/etcdserver/server.go#L90.
287
- MaxRequestBodyBytes : int64 (10 * 1024 * 1024 ),
287
+ // A request body might be encoded in json, and is converted to
288
+ // proto when persisted in etcd. Assuming the upper bound of
289
+ // the size ratio is 10:1, we set 100MB as the largest request
290
+ // body size to be accepted and decoded in a write request.
291
+ MaxRequestBodyBytes : int64 (100 * 1024 * 1024 ),
288
292
EnableAPIResponseCompression : utilfeature .DefaultFeatureGate .Enabled (features .APIResponseCompression ),
289
293
290
294
// Default to treating watch as a long-running operation
0 commit comments