mirror of https://github.com/zulip/zulip.git
puppet: Add a knob to adjust conntrack max size.
This commit is contained in:
parent
588aec96f9
commit
d18de3e0a4
|
@ -3,6 +3,11 @@ class zulip_ops::profile::prod_app_frontend {
|
|||
include zulip_ops::app_frontend
|
||||
include zulip::hooks::zulip_notify
|
||||
|
||||
$conntrack_max = zulipconf('application_server', 'conntrack_max', 262144)
|
||||
zulip::sysctl { 'conntrack':
|
||||
content => template('zulip/sysctl.d/40-conntrack.conf.erb'),
|
||||
}
|
||||
|
||||
file { '/etc/nginx/sites-available/zulip':
|
||||
ensure => file,
|
||||
require => Package['nginx-full'],
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
# Increase conntrack kernel table size
|
||||
net.nf_conntrack_max=<%= @conntrack_max %>
|
Loading…
Reference in New Issue