puppet: Add a knob to adjust conntrack max size.

This commit is contained in:
Alex Vandiver 2024-01-08 16:01:03 -05:00 committed by Tim Abbott
parent 588aec96f9
commit d18de3e0a4
2 changed files with 7 additions and 0 deletions

View File

@ -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'],

View File

@ -0,0 +1,2 @@
# Increase conntrack kernel table size
net.nf_conntrack_max=<%= @conntrack_max %>