Merge "Revert "Raise number of nailgun uWSGI workers and sockets""

This commit is contained in:
Jenkins 2014-11-15 18:46:41 +00:00 committed by Gerrit Code Review
commit 4c080377d5
3 changed files with 2 additions and 5 deletions

View File

@ -81,6 +81,4 @@ $gem_source = 'http://localhost/gems/',
sysctl::value{'net.ipv4.neigh.default.gc_thresh2': value => '1024'}
sysctl::value{'net.ipv4.neigh.default.gc_thresh3': value => '2048'}
#Increase max connections for sockets for Nailgun uWSGI
sysctl::value{'net.core.somaxconn': value => '4096'}
}

View File

@ -7,10 +7,10 @@
class nailgun::uwsgi(
) {
if $::physicalprocessorcount > 4 {
if $::physicalprocessorcount > 8 {
$physicalprocessorcount = 8
} else {
$physicalprocessorcount = $::physicalprocessorcount * 2
$physicalprocessorcount = $::physicalprocessorcount
}
package { ['uwsgi', 'uwsgi-plugin-common', 'uwsgi-plugin-python']:

View File

@ -11,6 +11,5 @@ uwsgi:
virtualenv: <%= @venv %>
module: nailgun.wsgi
buffer-size: 49180
listen: 4096
pidfile: /tmp/nailgun.pid
logto: /var/log/nailgun/app.log