Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/nginx/manifests/params.pp

Issue 9316104: Reduced the number of nginx worker processes to match the number ofCPU cores and removed unused va… (Closed)
Patch Set: Created Feb. 6, 2013, 8:38 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « modules/filterserver/manifests/init.pp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 class nginx::params { 1 class nginx::params {
2 $worker_processes = 2
3 $worker_connections = 1024
4 $multi_accept = off 2 $multi_accept = off
5 $worker_rlimit_nofile = 30000 3 $worker_rlimit_nofile = 30000
6 $sendfile = on 4 $sendfile = on
7 $keepalive_timeout = 15 5 $keepalive_timeout = 15
8 $tcp_nodelay = on 6 $tcp_nodelay = on
9 $gzip = on 7 $gzip = on
10 8
11 $user = $::operatingsystem ? { 9 $user = $::operatingsystem ? {
12 /(?i-mx:debian|ubuntu)/ => 'www-data', 10 /(?i-mx:debian|ubuntu)/ => 'www-data',
13 /(?i-mx:fedora|rhel|redhat|centos|scientific|suse|opensuse)/ => 'nginx', 11 /(?i-mx:fedora|rhel|redhat|centos|scientific|suse|opensuse)/ => 'nginx',
14 } 12 }
15 13
16 $group = $::operatingsystem ? { 14 $group = $::operatingsystem ? {
17 /(?i-mx:debian|ubuntu)/ => 'www-data', 15 /(?i-mx:debian|ubuntu)/ => 'www-data',
18 /(?i-mx:fedora|rhel|redhat|centos|scientific|suse|opensuse)/ => 'www', 16 /(?i-mx:fedora|rhel|redhat|centos|scientific|suse|opensuse)/ => 'www',
19 } 17 }
20 } 18 }
OLDNEW
« no previous file with comments | « modules/filterserver/manifests/init.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld