]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/recipes/default.rb
Preload libtcmalloc for renderd
[chef.git] / 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%"