]> git.openstreetmap.org Git - chef.git/commitdiff
Bump file limits of Nginx and Squid processes from 64k ro 96k
authorJon Burgess <jburgess777@gmail.com>
Wed, 1 Aug 2018 21:42:32 +0000 (22:42 +0100)
committerJon Burgess <jburgess777@gmail.com>
Wed, 1 Aug 2018 21:42:32 +0000 (22:42 +0100)
cookbooks/nginx/templates/default/nginx.conf.erb
cookbooks/squid/recipes/default.rb
cookbooks/squid/templates/default/squid.conf.erb

index b4254568581010946e24cc2051f759b3e3abaaa8..429716d04150bfce44404c1f6f12084b93d7de8d 100644 (file)
@@ -3,7 +3,7 @@
 user  www-data;
 worker_processes auto;
 worker_cpu_affinity auto;
 user  www-data;
 worker_processes auto;
 worker_cpu_affinity auto;
-worker_rlimit_nofile 65536;
+worker_rlimit_nofile 98304;
 
 error_log  /var/log/nginx/error.log warn;
 pid        /var/run/nginx.pid;
 
 error_log  /var/log/nginx/error.log warn;
 pid        /var/run/nginx.pid;
index 5e07a4bdfb127777ee1670f0dbc76e4f8f98998c..e26ffe2dd9724d9da0b1da9b433b066c46971dd5 100644 (file)
@@ -86,7 +86,7 @@ systemd_service "squid" do
   description "Squid caching proxy"
   after ["network.target", "nss-lookup.target"]
   type "forking"
   description "Squid caching proxy"
   after ["network.target", "nss-lookup.target"]
   type "forking"
-  limit_nofile 65536
+  limit_nofile 98304
   exec_start_pre "/usr/sbin/squid -N -z"
   exec_start "/usr/sbin/squid -Y"
   exec_reload "/usr/sbin/squid -k reconfigure"
   exec_start_pre "/usr/sbin/squid -N -z"
   exec_start "/usr/sbin/squid -Y"
   exec_reload "/usr/sbin/squid -k reconfigure"
index 659b3c8cb43034bcb1ccfa333128674d895a61b0..918c7b5314d5fed1a35f1bd2de1345f4addd47ba 100644 (file)
@@ -3,7 +3,7 @@
 #FIXME - configurable
 cache_mem  <%= node[:squid][:cache_mem] %>
 
 #FIXME - configurable
 cache_mem  <%= node[:squid][:cache_mem] %>
 
-max_filedescriptors 65536
+max_filedescriptors 98304
 
 #used by squidclient / munin
 http_port 3128
 
 #used by squidclient / munin
 http_port 3128