You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docker version docker version (e.g. Docker 17.0.05 ):
20.10.7
Are you using OpenFaaS on Kubernetes or faasd?
faasd
Operating System and version (e.g. Linux, Windows, MacOS):
Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
Code example or link to GitHub repo or gist to reproduce problem:
Here is a simple python flask function example just to check the ulimits:
when I run it with "ulimit -n 2000" for example, I get an error (not permitted), but when I run it with a number lower than 1024 it works. For example "ulimit -n 100; ulimit -n", output is : 100, and it works. But I want to make the limits higher.
Perhaps you'd like to follow our patching guide to building faasd and hack on the source code to insert whatever ulimit you prefer for all your containers?
My actions before raising this issue
Expected Behaviour
Increase the limit of open files in an openfaas function
Current Behaviour
Limit is stuck at 1024
Are you a GitHub Sponsor (Yes/No?)
No
Check at: https://github.com/sponsors/openfaas
List All Possible Solutions and Workarounds
Increasing the Limit on the whole system.
Building the image with higher limits.
Which Solution Do You Recommend?
Set an Enviroment variable in the yaml file to increase open files limit for a function?
Steps to Reproduce (for bugs)
Context
I am trying to run locust tests with openfaas. Locust tests tend to open alot of files while running.
Your Environment
faas-cli version
):CLI:
commit: 72816d486cf76c3089b915dfb0b66b85cf096634
version: 0.13.13
Gateway
uri: http://127.0.0.1:8080
version: 0.21.0
sha: 539f0a2c946ee6096ef2b6ab26f81295eed49d54
Provider
name: faasd
orchestration: containerd
version: 0.13.0
sha: 12ada59
docker version
(e.g. Docker 17.0.05 ):20.10.7
faasd
Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
Here is a simple python flask function example just to check the ulimits:
when I run it with "ulimit -n 2000" for example, I get an error (not permitted), but when I run it with a number lower than 1024 it works. For example "ulimit -n 100; ulimit -n", output is : 100, and it works. But I want to make the limits higher.
Next steps
You may join Slack for community support.
The text was updated successfully, but these errors were encountered: