File tree Expand file tree Collapse file tree 4 files changed +8
-2
lines changed
Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 146146# [*worker_connections*]
147147# Specified worker connections number. Default is 1024.
148148#
149+ # [*multi_accept*]
150+ # Activate or deactivate the usage of multi_accept.
151+ # Default is on but it is then commented out in the default nginx template.
152+ #
149153# [*keepalive_timeout*]
150154# Specified keepalive timeout. Default is 65(ms).
151155#
237241class nginx (
238242 $gzip = params_lookup( ' gzip' ),
239243 $worker_connections = params_lookup( ' worker_connections' ),
244+ $multi_accept = params_lookup( ' multi_accept' ),
240245 $keepalive_timeout = params_lookup( ' keepalive_timeout' ),
241246 $server_names_hash_max_size = params_lookup( ' server_names_hash_max_size' ),
242247 $server_names_hash_bucket_size = params_lookup( ' server_names_hash_bucket_size' ),
Original file line number Diff line number Diff line change 1616
1717 $gzip = ' on'
1818 $worker_connections = 1024
19+ $multi_accept = ' on'
1920 $keepalive_timeout = 65
2021 $client_max_body_size = ' 10m'
2122 $server_names_hash_max_size = 512
Original file line number Diff line number Diff line change 9191
9292events {
9393 worker_connections 1024;
94- #
94+ # multi_accept on;
9595}
9696
9797http {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ pid <%= scope.lookupvar('nginx::pid_file')%>;
77
88events {
99 worker_connections <%= scope.lookupvar('nginx::worker_connections')%> ;
10- # <% if scope.lookupvar('nginx::nx_multi_accept ') == 'on' %> multi_accept on;<% end %>
10+ # <% if scope.lookupvar('nginx::multi_accept ') == 'on' %> multi_accept on;<% end %>
1111}
1212
1313http {
You can’t perform that action at this time.
0 commit comments