-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conditionalize MaxRecvMessageSize #40
Comments
Would you be able to add a bit more detail on what the problem is here @vibe? I don't fully understand the scope and impact just yet 🤔 |
Sure @jbw976. Essentially, in Go's gRPC library, the default maximum received message size is 4MB. So messages sent between composition functions need to be remain under this limit, since this includes the observed composite resource and the desiresd resources, this message size can increase as more resources are being generated by a composition pipeline. A few months ago we hit the 4MB limit (our composition, provisions large amounts of EC2 with custom user data), we then refactored the user data so that the total size would fall below 4MB. Fast forward to last week: We bumped our We were easily able to update our own function's It makes sense function-template-go is updated, along with any other functions that may need this change. I can work on a PR soon. |
Yeah here we faced the same issue, which surfaced with |
Hi team, same issue here we hit the limit in function-auto-ready since we have a quite big composition that unfortunately cannot be split. |
Sorry, finally go around to this. |
There was a need to bump
MaxRecvMessageSize
across all our functions recently with the upgrade to the new v1 sdk, this includedfunction-auto-ready
.Just dropping an issue to track this, and get some feedback about where the best place to implement this is.
Simple fix is to update the fn.Serve with
function.MaxRecvMessageSize(c.MaxGRPCMessageSize)
.Could either happen at each function level, or
function-sdk-go
template.The text was updated successfully, but these errors were encountered: