From: Tom Hughes Date: Wed, 20 Dec 2023 19:31:21 +0000 (+0000) Subject: Preload libtcmalloc for renderd X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/60d30854263245f1c8b42dccd6bfc453811dfde8?ds=sidebyside Preload libtcmalloc for renderd --- diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index 961d71ea2..ce3ffcb9c 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -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%"