Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Expose control over gRPC max message length #327

Merged
merged 1 commit into from
May 11, 2021

Conversation

feedmeapples
Copy link
Contributor

@feedmeapples feedmeapples commented May 11, 2021

What was changed:

Adds env flag to change the gRPC max message length limit

Why?

Gives users an option to display gRPC responses bigger than 4mb (default grpc message receive length limit).
Useful with APIs ListOpenWorkflowExecutions, ListClosedWorkflowExecutions and GetWorkflowExecutionHistory

Checklist

  1. Closes issue:

  2. How was this tested:

  • Run largepayloads fixture from samples-go
  • Open workflows page on Web UI
  • expected: workflows are shown
  • prior behavior: error message 8 RESOURCE_EXHAUSTED: Received message larger than max (5243864 vs. 4194304)
  1. Any docs updates needed?

Updated README

@feedmeapples feedmeapples requested a review from swyxio May 11, 2021 03:03
@feedmeapples feedmeapples changed the title Support changing gRPC max message length Expose control over gRPC max message length May 11, 2021
Comment on lines 14 to 16
const grpcMaxMsgLength =
Number(process.env.TEMPORAL_GRPC_MAX_MESSAGE_LENGTH) || 4 * 1024 * 1024;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe want to move this lower down? this variable isnt used anywhere else.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sg

Copy link
Contributor

@swyxio swyxio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a minor suggestion

@feedmeapples feedmeapples enabled auto-merge (squash) May 11, 2021 17:56
@feedmeapples feedmeapples merged commit 8c457c6 into master May 11, 2021
@feedmeapples feedmeapples deleted the control-grpc-message branch May 11, 2021 17:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants