-
Notifications
You must be signed in to change notification settings - Fork 285
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 open file limit in the VM / inside containers #713
Comments
I'm unable to run a container with |
This bug is really about the limit inside containers scheduled by kubernetes. For running containers directly via $ nerdctl run --rm alpine sh -c "ulimit -n"
1024
$ nerdctl run --ulimit nofile=4096:4096 --rm alpine sh -c "ulimit -n"
4096
$ nerdctl run --ulimit nofile=8192:8192 --rm alpine sh -c "ulimit -n"
8192 |
Trying rancher-desktop and hit these errors with OOTB Helm charts for these applications .. ElasticSEarch
Neo4J
RabbitMQ
|
Same issue here while I install tidb by helm with [2022/01/10 15:23:41.864 +00:00] [FATAL] [server.rs:1102] ["the maximum number of open file descriptors is too small, got 1024, expect greater or equal to 82920"] What should I do? Apple M1 Max |
Since nobody indicated which platform they are using, I'm just assuming macOS (or Linux) now. If you are on Windows, this will not work: Create an provision:
- mode: system
script: |
#!/bin/sh
cat <<'EOF' > /etc/security/limits.d/rancher-desktop.conf
* soft nofile 82920
* hard nofile 82920
EOF Stop and restart Rancher Desktop, and you should have updated limits in your containers. I've verified this with RabbitMQ; after the restart the container started up automatically. I've also checked the |
Thx @jandubois this workarround works for Elasticsearch, too @stephenpope |
I thought for Elastic you also had to increase the
to the provisioning script if you need to update the count for Elastic. |
Tested with RD |
Hi all, Same issue but in Windows... It will be really appreciate any help... Bests |
I got it working on windows creating a file at
The just close and start the rancher desktop again. |
Report on user-slack: https://rancher-users.slack.com/archives/C0200L1N1MM/p1633033996169800
Default setting for
ulimit -n
is 1024, same as in most distros. Should we increase it?The text was updated successfully, but these errors were encountered: