]> git.openstreetmap.org Git - chef.git/commitdiff
Increase descriptor limit for promscale
authorTom Hughes <tom@compton.nu>
Sat, 16 Jan 2021 11:16:28 +0000 (11:16 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 16 Jan 2021 11:25:36 +0000 (11:25 +0000)
cookbooks/prometheus/recipes/server.rb

index bbb7fbae5d7bc369e22554f2f1d759bf98b7899c..571714c50047f2486b215aa9466dace98c322e4e 100644 (file)
@@ -105,6 +105,7 @@ systemd_service "promscale" do
   user "prometheus"
   exec_start "/opt/promscale/bin/promscale --db-host /run/postgresql --db-port 5432 --db-user prometheus --db-name promscale --db-connections-max 400"
   # exec_start lazy { "/opt/promscale/bin/promscale --db-host /run/postgresql --db-port #{node[:postgresql][:clusters][database_cluster][:port]} --db-user prometheus --db-name promscale --db-max-connections 400" }
+  limit_nofile 16384
   private_tmp true
   protect_system "strict"
   protect_home true