You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2020/02/10 06:43:30 UTC
[servicecomb-service-center] branch master updated: Change etcd
client MaxCallSendMsgSize to 10MB (#630)
This is an automated email from the ASF dual-hosted git repository.
littlecui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-service-center.git
The following commit(s) were added to refs/heads/master by this push:
new ab4ec2e Change etcd client MaxCallSendMsgSize to 10MB (#630)
ab4ec2e is described below
commit ab4ec2eef3ffe6a24a55e833792520cbf05cc322
Author: humingcheng <hu...@163.com>
AuthorDate: Mon Feb 10 14:43:20 2020 +0800
Change etcd client MaxCallSendMsgSize to 10MB (#630)
---
server/plugin/pkg/registry/etcd/common.go | 2 +-
server/plugin/pkg/registry/etcd/etcd.go | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/server/plugin/pkg/registry/etcd/common.go b/server/plugin/pkg/registry/etcd/common.go
index 8191a7c..65f7203 100644
--- a/server/plugin/pkg/registry/etcd/common.go
+++ b/server/plugin/pkg/registry/etcd/common.go
@@ -33,7 +33,7 @@ const (
keepAliveTimeout = 5 * time.Second
// see github.com/coreos/etcd/clientv3/options.go
- // maxSendMsgSize = 2MB
+ maxSendMsgSize = 10 * 1024 * 1024 // 10MB
maxRecvMsgSize = math.MaxInt32
)
diff --git a/server/plugin/pkg/registry/etcd/etcd.go b/server/plugin/pkg/registry/etcd/etcd.go
index 04344ce..2bcadd1 100644
--- a/server/plugin/pkg/registry/etcd/etcd.go
+++ b/server/plugin/pkg/registry/etcd/etcd.go
@@ -106,6 +106,7 @@ func (c *EtcdClient) newClient() (*clientv3.Client, error) {
Endpoints: c.Endpoints,
DialTimeout: c.DialTimeout,
TLS: c.TLSConfig,
+ MaxCallSendMsgSize: maxSendMsgSize,
MaxCallRecvMsgSize: maxRecvMsgSize,
DialKeepAliveTime: keepAliveTime,
DialKeepAliveTimeout: keepAliveTimeout,