diff --git a/.changeset/deep-coins-report.md b/.changeset/deep-coins-report.md new file mode 100644 index 000000000..520015f4d --- /dev/null +++ b/.changeset/deep-coins-report.md @@ -0,0 +1,6 @@ +--- +"chainlink-deployments-framework": patch +--- + +fix: increase buffers used in Catalog's gRPC connection to 16MB + \ No newline at end of file diff --git a/datastore/catalog/remote/grpc.go b/datastore/catalog/remote/grpc.go index 6d1df065e..02dd9ae99 100644 --- a/datastore/catalog/remote/grpc.go +++ b/datastore/catalog/remote/grpc.go @@ -235,9 +235,14 @@ func NewCatalogClient(ctx context.Context, cfg CatalogConfig) (*CatalogClient, e return &client, nil } +const maxCallRecvBytes = 16 * 1024 * 1024 // 16 MB +const maxCallSendBytes = 16 * 1024 * 1024 // 16 MB + // newCatalogConnection creates a new gRPC connection to the Catalog service. func newCatalogConnection(cfg CatalogConfig) (*grpc.ClientConn, error) { - var opts []grpc.DialOption + var opts = []grpc.DialOption{ + grpc.WithDefaultCallOptions(grpc.MaxCallSendMsgSize(maxCallSendBytes), grpc.MaxCallRecvMsgSize(maxCallRecvBytes)), + } if cfg.Creds != nil { opts = append(opts, grpc.WithTransportCredentials(cfg.Creds))