Skip to content

railsmachine/moonshine_sysctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Tune kernel parameters with Moonshine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published