Giter Club home page Giter Club logo

moonshine_sysctl's Introduction

Moonshine Sysctl

A plugin for Moonshine

Tune kernel parameters with Moonshine.

Instructions

  • script/plugin install git://github.com/railsmachine/moonshine_sysctl.git

  • Include the plugin and recipe(s) in your Moonshine manifest

    plugin :sysctl
    recipe :sysctl
    
  • Drop some configuration into the :sysctl key on your Moonshine config.

For example, to tune the TCP stack like so:

net.ipv4.tcp_tw_reuse = 1
net.ipv4.ip_local_port_range = 10000 65023
net.ipv4.tcp_max_syn_backlog = 10240
net.ipv4.tcp_max_tw_buckets = 400000
net.ipv4.tcp_max_orphans = 60000
net.ipv4.tcp_synack_retries = 3
net.ipv4.tcp_syncookies = 1
net.core.somaxconn = 10000

You’d add the following to your config/moonshine.yml:

:sysctl:
  net.ipv4.tcp_tw_reuse: 1
  net.ipv4.ip_local_port_range: 10000 65023
  net.ipv4.tcp_max_syn_backlog: 10240
  net.ipv4.tcp_max_tw_buckets: 400000
  net.ipv4.tcp_max_orphans: 60000
  net.ipv4.tcp_synack_retries: 3
  net.ipv4.tcp_syncookies: 1
  net.core.somaxconn: 10000

Unless otherwise specified, all content copyright © 2014, Rails Machine

moonshine_sysctl's People

Contributors

bryantraywick avatar jnewland avatar tgraham avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

tgraham

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.