GithubHelp home page GithubHelp logo

isabella232 / ulimit-release Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rabbitmq/ulimit-release

0.0 0.0 0.0 20 KB

BOSH Release to increase max open files for co-located jobs

License: Apache License 2.0

HTML 8.07% Shell 23.50% C 68.43%

ulimit-release's Introduction

ulimit release

A BOSH release which mimics the function of ulimit

0. Usage

Upload release to director.

Set properties in manifest:

properties:
  nofile:
    soft: 16384
    hard: 16384

Inner workings & Bugs

Only works for the ulimit property "open files".

Creates /etc/security/limits.d/62-ulimit.conf.

Dynamically adjust monit's "Max open files".

This runs as a pre-start script.

Fixes: Accept error: accept tcp [::]:80: accept4: too many open files.

Defaults to 16384/16384 soft/hard limit for all users.

This was tested on Ubuntu and CentOS stemcells.

This release has 2 components:

  1. A pre-start executable (pivotal_prlimit, a small C program which uses prlimit(2)) which modifies the ulimit of the running monit process. monit, as it forks sub-processes (i.e. as it starts jobs), will pass along the updated ulimits (max number of open files). This makes sure the ulimit is set on initial deployment.

  2. A template which creates /etc/security/limits.d/62-ulimit.conf which sets the ulimit on reboot (pre-start scripts are not run on reboot).

ulimit-release's People

Contributors

cunnie avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.