cms-dev / cms-dev/cms

Automatically increase resource limits

Open
#84 1 comment 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.