fix(peering): increase the gRPC limit to 8MB (#15503)
* fix(peering): increase the gRPC limit to 50MB * changelog * update gRPC limit to 8MB
This commit is contained in:
parent
c537bb51f9
commit
92e71318c1
|
@ -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…
Reference in New Issue