]> git.openstreetmap.org Git - chef.git/commitdiff
Preload libtcmalloc for renderd
authorTom Hughes <tom@compton.nu>
Wed, 20 Dec 2023 19:31:21 +0000 (19:31 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 20 Dec 2023 19:31:34 +0000 (19:31 +0000)
cookbooks/tile/recipes/default.rb

index 961d71ea21cfe19f8bba44f123b7a69136d2ae6c..ce3ffcb9cff7e04d760b7528633c20646c683ee1 100644 (file)
@@ -100,12 +100,16 @@ tile_directories = node[:tile][:styles].collect do |_, style|
   style[:tile_directories].collect { |directory| directory[:name] }
 end.flatten.sort.uniq
 
-package "renderd"
+package %w[
+  renderd
+  libgoogle-perftools4
+]
 
 systemd_service "renderd" do
   dropin "chef"
   after "postgresql.service"
   wants "postgresql.service"
+  environment "LD_PRELOAD" => "libtcmalloc.so.4"
   limit_nofile 4096
   memory_high "80%"
   memory_max "90%"