Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tune kernel parameters with Moonshine.
Fetching latest commit...
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib Quote mode
moonshine Initial commit
spec ensure YAML loads the dotted keys correctly
templates Initial commit
LICENSE add MIT license
README.rdoc Add copyright info.


Moonshine Sysctl

A plugin for Moonshine

Tune kernel parameters with Moonshine.


  • script/plugin install 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:

  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 (C) 2014, Rails Machine

Something went wrong with that request. Please try again.