Backport of fix(peering): increase the gRPC limit to 8MB into release/1.14.x (#15589)

* backport of commit 84b287cc3c

Co-authored-by: cskh <hui.kang@hashicorp.com>
pull/15588/head
hc-github-team-consul-core 2 years ago committed by GitHub
parent d2b5ecd129
commit 2811464d56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,3 @@
```release-note:bug
peering: fix the limit of replication gRPC message; set to 8MB
```

@ -360,7 +360,7 @@ func (s *Server) establishStream(ctx context.Context,
// send keepalive pings even if there is no active streams
PermitWithoutStream: true,
}),
grpc.WithDefaultCallOptions(grpc.MaxCallSendMsgSize(50 * 1024 * 1024)),
grpc.WithDefaultCallOptions(grpc.MaxCallSendMsgSize(8*1024*1024), grpc.MaxCallRecvMsgSize(8*1024*1024)),
}
logger.Trace("dialing peer", "addr", addr)

@ -148,7 +148,9 @@ func (c *ClientConnPool) dial(datacenter string, serverType string) (*grpc.Clien
grpc.WithKeepaliveParams(keepalive.ClientParameters{
Time: 30 * time.Second,
Timeout: 10 * time.Second,
}))
}),
grpc.WithDefaultCallOptions(grpc.MaxCallSendMsgSize(8*1024*1024), grpc.MaxCallRecvMsgSize(8*1024*1024)),
)
if err != nil {
return nil, err
}

@ -46,7 +46,7 @@ Regardless of whether you connect your clusters through WAN federation or cluste
Consider the following technical constraints:
- Services with node, instance, and check definitions totaling more than 50MB cannot be exported to a peer.
- Services with node, instance, and check definitions totaling more than 8MB cannot be exported to a peer.
- Two admin partitions in the same datacenter cannot be peered. Use [`exported-services`](/docs/connect/config-entries/exported-services#exporting-services-to-peered-clusters) directly.
- The `consul intention` CLI command is not supported. To manage intentions that specify services in peered clusters, use [configuration entries](/docs/connect/config-entries/service-intentions).
- Accessing key/value stores across peers is not supported.

Loading…
Cancel
Save