Tune kernel parameters with Moonshine.
Ruby HTML
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
moonshine
spec
templates
LICENSE
README.rdoc

README.rdoc

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