Skip to content

Commit

Permalink
Set grpc max message size to 128MB.
Browse files Browse the repository at this point in the history
Signed-off-by: Anshul Pundir <[email protected]>
  • Loading branch information
anshulpundir committed Sep 19, 2017
1 parent bd7bafb commit 58aa594
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ import (
const (
// defaultTaskHistoryRetentionLimit is the number of tasks to keep.
defaultTaskHistoryRetentionLimit = 5

// Default value for grpc max message size.
grpcMaxMessageSize = 128 << 20
)

// RemoteAddrs provides a listening address and an optional advertise address
Expand Down Expand Up @@ -231,6 +234,7 @@ func New(config *Config) (*Manager, error) {
grpc.Creds(config.SecurityConfig.ServerTLSCreds),
grpc.StreamInterceptor(grpc_prometheus.StreamServerInterceptor),
grpc.UnaryInterceptor(grpc_prometheus.UnaryServerInterceptor),
grpc.MaxMsgSize(grpcMaxMessageSize),
}

m := &Manager{
Expand Down

0 comments on commit 58aa594

Please sign in to comment.