Created
December 3, 2009 14:29
-
-
Save jsierles/248193 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name "cf-stream" | |
| description "CF Streaming API" | |
| recipes "rails::apps" | |
| default_attributes :active_groups => {:app => {:enabled => true}}, | |
| :active_applications => { "campfire" => { "env" => "production" }}, | |
| :rails => {:web_server => "nginx", :app_server => "thin"}, | |
| :sysctl => { | |
| :settings => { | |
| # General gigabit tuning: | |
| "net.core.rmem_max" => "16777216", | |
| "net.core.wmem_max" => "16777216", | |
| "net.ipv4.tcp_rmem" => "4096 87380 16777216", | |
| "net.ipv4.tcp_wmem" => "4096 65536 16777216", | |
| "net.ipv4.tcp_syncookies" => 1, | |
| # this gives the kernel more memory for tcp | |
| # which you need with many (100k+) open socket connections | |
| "net.ipv4.tcp_mem" => "50576 64768 98152", | |
| "net.core.netdev_max_backlog" => "2500" | |
| } | |
| } | |
| override_attributes :nginx => {:worker_processes => 12, :worker_connections => 2048} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment