From 60d30854263245f1c8b42dccd6bfc453811dfde8 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 20 Dec 2023 19:31:21 +0000 Subject: [PATCH] Preload libtcmalloc for renderd --- cookbooks/tile/recipes/default.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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%" -- 2.39.5