Merge pull request #747 from Ensighten/add_events_accept_mutex_delay
Add events accept mutex delay
This commit is contained in:
commit
f13fdc02a0
3 changed files with 24 additions and 0 deletions
|
@ -43,6 +43,8 @@ class nginx::config(
|
||||||
### END Module/App Configuration ###
|
### END Module/App Configuration ###
|
||||||
|
|
||||||
### START Nginx Configuration ###
|
### START Nginx Configuration ###
|
||||||
|
$accept_mutex = 'on',
|
||||||
|
$accept_mutex_delay = '500ms',
|
||||||
$client_body_buffer_size = '128k',
|
$client_body_buffer_size = '128k',
|
||||||
$client_max_body_size = '10m',
|
$client_max_body_size = '10m',
|
||||||
$events_use = false,
|
$events_use = false,
|
||||||
|
|
|
@ -124,6 +124,24 @@ describe 'nginx::config' do
|
||||||
:value => false,
|
:value => false,
|
||||||
:notmatch => /pid/,
|
:notmatch => /pid/,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
:title => 'should set accept_mutex on',
|
||||||
|
:attr => 'accept_mutex',
|
||||||
|
:value => 'on',
|
||||||
|
:match => ' accept_mutex on;',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
:title => 'should set accept_mutex off',
|
||||||
|
:attr => 'accept_mutex',
|
||||||
|
:value => 'off',
|
||||||
|
:match => ' accept_mutex off;',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
:title => 'should set accept_mutex_delay',
|
||||||
|
:attr => 'accept_mutex_delay',
|
||||||
|
:value => '500s',
|
||||||
|
:match => ' accept_mutex_delay 500s;',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
:title => 'should set worker_connections',
|
:title => 'should set worker_connections',
|
||||||
:attr => 'worker_connections',
|
:attr => 'worker_connections',
|
||||||
|
|
|
@ -22,6 +22,10 @@ error_log <%= @nginx_error_log %> <%= @nginx_error_log_severity %>;
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
events {
|
events {
|
||||||
|
accept_mutex <%= @accept_mutex %>;
|
||||||
|
<%- if @accept_mutex_delay -%>
|
||||||
|
accept_mutex_delay <%= @accept_mutex_delay %>;
|
||||||
|
<%- end -%>
|
||||||
worker_connections <%= @worker_connections -%>;
|
worker_connections <%= @worker_connections -%>;
|
||||||
<%- if @multi_accept == 'on' -%>
|
<%- if @multi_accept == 'on' -%>
|
||||||
multi_accept on;
|
multi_accept on;
|
||||||
|
|
Loading…
Reference in a new issue