Automatically increase resource limits
Open
@lw is already working on this.
Since Jan 2, 2013.
- Dominant language
- Python
- Stars
- 1k
- Forks
- 412
- Avg merge
- 6d 10h
- Merged PRs (30d)
- 3
Description
Some system resources may be limited, like the maximum number of open file descriptors. This particular limit could be easily reached by services like RWS that keep many open connections to make long-polling HTTP requests. It's possible to increase this limit up to a certain hard limit by calling ulimit -n <value> before executing RWS. Yet, RWS could change this limit itself, by making
import resource
soft, hard = resource.getrlimit(resource.RLIMIT_NOFILE)
resource.setrlimit(resource.RLIMIT_NOFILE, (hard, hard))
Is this code really equivalent to the ulimit call? Does it make sense to execute it at startup?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.