Skip to content

Commit ab4ec2e

Browse files
authored
Change etcd client MaxCallSendMsgSize to 10MB (#630)
1 parent b63555b commit ab4ec2e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: server/plugin/pkg/registry/etcd/common.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const (
3333
keepAliveTimeout = 5 * time.Second
3434

3535
// see github.com/coreos/etcd/clientv3/options.go
36-
// maxSendMsgSize = 2MB
36+
maxSendMsgSize = 10 * 1024 * 1024 // 10MB
3737
maxRecvMsgSize = math.MaxInt32
3838
)
3939

Diff for: server/plugin/pkg/registry/etcd/etcd.go

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ func (c *EtcdClient) newClient() (*clientv3.Client, error) {
106106
Endpoints: c.Endpoints,
107107
DialTimeout: c.DialTimeout,
108108
TLS: c.TLSConfig,
109+
MaxCallSendMsgSize: maxSendMsgSize,
109110
MaxCallRecvMsgSize: maxRecvMsgSize,
110111
DialKeepAliveTime: keepAliveTime,
111112
DialKeepAliveTimeout: keepAliveTimeout,

0 commit comments

Comments
 (0)