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

Increase ulimit -n for apiserver. #6353

Merged
merged 1 commit into from
Apr 2, 2015

Conversation

fgrzadkowski
Copy link
Contributor

This fixes #6351 ("too many open files" error for large clusters)

@wojtek-t @satnam6502

@@ -38,6 +38,9 @@ DAEMON_USER=kube-apiserver
#
do_start()
{
# Raise the file descriptor limit - we expect to open a lot of sockets!
ulimit -n 65536
Copy link
Member

Choose a reason for hiding this comment

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

Since we increate the limit to 1.000.000 for etcd anyway (as for everything that is running inside Docker containers), maybe it makes sense to change it to 1.000.000 here too?

Copy link
Contributor

Choose a reason for hiding this comment

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

why 65536 specifically (I've only played with ulimit lightly, so this might be a dumb question)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I copy & pasted this from kube-proxy configuration. I guess it's just because it's 2^16

Copy link
Contributor

Choose a reason for hiding this comment

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

I mean yeah 2^16 :)
Was hoping for some knowledge about system limits, or what machine size you're targeting with that number.

@wojtek-t wojtek-t added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 2, 2015
@wojtek-t
Copy link
Member

wojtek-t commented Apr 2, 2015

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"too many open files" error in a large cluster
5 participants