Skip to content
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

feat(kuma-cp) change KDS max message limit #2265

Merged
merged 2 commits into from
Jul 1, 2021

Conversation

jakubdyszkiewicz
Copy link
Contributor

Summary

The default message limit for the gRPC stream is 4MB, which may not be enough for KDS. All resources of a given type are sent in one message (wildcard xDS subscription).
I changed the limit to 10MB and added a parameter to change it.

Without the change, I managed to hit a limit by putting gigantic TrafficPermissions (1000 lines for 1 resource) into global CP. After 350 resources the limit was hit. After the change, I hit the limit after 800 resources.

In practice, we can hit this limit with DataplaneInsights which are pretty big. In the next PR, I'll change the subscription limit for dataplane insights which will be a second thing to help with this problem.

Documentation

  • Added comment in Kuma CP config file

Testing

  • Unit tests
  • E2E tests
  • Manual testing on Universal
  • Manual testing on Kubernetes

Signed-off-by: Jakub Dyszkiewicz <[email protected]>
Copy link
Contributor

@bartsmykla bartsmykla left a comment

Choose a reason for hiding this comment

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

lgtm

@jakubdyszkiewicz jakubdyszkiewicz merged commit 08ffede into master Jul 1, 2021
@jakubdyszkiewicz jakubdyszkiewicz deleted the feat/change-kds-limit branch July 1, 2021 14:36
mergify bot pushed a commit that referenced this pull request Jul 1, 2021
Signed-off-by: Jakub Dyszkiewicz <[email protected]>
(cherry picked from commit 08ffede)
jakubdyszkiewicz pushed a commit that referenced this pull request Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants