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

fix(kuma-cp) manage and warn on control plane file limits #2057

Merged
merged 3 commits into from
Jun 4, 2021
Merged

fix(kuma-cp) manage and warn on control plane file limits #2057

merged 3 commits into from
Jun 4, 2021

Conversation

jpeach
Copy link
Contributor

@jpeach jpeach commented May 28, 2021

Summary

The control plane needs a file descriptor limit high enough to be able
to accept a useful number of connections from clients. Automatically
raise the soft limit at startup, and log if the limit still seems too low.

Full changelog

  • Automatically raise the open file limit for kuma-cp

Issues resolved

N/A

Documentation

N/A

Testing

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

The control plane needs a file descriptor limit high enough to be able
to accept a useful number of connections from clients. Automatically
raise the soft limit at startup, and log if the limit still seems too low.

Signed-off-by: James Peach <james.peach@konghq.com>
@jpeach jpeach requested a review from a team as a code owner May 28, 2021 06:12
@lobkovilya
Copy link
Contributor

please pay attention to should raise the open file limit failed on CI

@jpeach
Copy link
Contributor Author

jpeach commented May 28, 2021 via email

* Remove debugging log print
* Refactor test to handle already maxed out file limits

Signed-off-by: James Peach <james.peach@konghq.com>
@jpeach
Copy link
Contributor Author

jpeach commented Jun 1, 2021

@jakubdyszkiewicz @lobkovilya I addressed the review feedback, PTAL.

@jpeach jpeach merged commit 8a48194 into kumahq:master Jun 4, 2021
@jpeach jpeach deleted the fix/cp-open-file-limit branch June 4, 2021 06:18
bartsmykla pushed a commit to bartsmykla/kuma that referenced this pull request Jun 7, 2021
The control plane needs a file descriptor limit high enough to be able
to accept a useful number of connections from clients. Automatically
raise the soft limit at startup, and log if the limit still seems too low.

Signed-off-by: James Peach <james.peach@konghq.com>
bartsmykla pushed a commit to bartsmykla/kuma that referenced this pull request Jun 7, 2021
The control plane needs a file descriptor limit high enough to be able
to accept a useful number of connections from clients. Automatically
raise the soft limit at startup, and log if the limit still seems too low.

Signed-off-by: James Peach <james.peach@konghq.com>
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.

None yet

4 participants