From: Tom Hughes Date: Wed, 9 Sep 2020 18:20:38 +0000 (+0100) Subject: Spin up memcached on the web frontends X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/860431223d5e1ada6bc6549c2cfa30dea4d23182 Spin up memcached on the web frontends --- diff --git a/cookbooks/web/recipes/frontend.rb b/cookbooks/web/recipes/frontend.rb index cb712d458..8104304d9 100644 --- a/cookbooks/web/recipes/frontend.rb +++ b/cookbooks/web/recipes/frontend.rb @@ -17,6 +17,9 @@ # limitations under the License. # +node.default[:memcached][:ip_address] = node.internal_ipaddress + +include_recipe "memcached" include_recipe "apache" include_recipe "web::rails" include_recipe "web::cgimap" diff --git a/roles/web-frontend.rb b/roles/web-frontend.rb index 3ecca30ff..2a316491a 100644 --- a/roles/web-frontend.rb +++ b/roles/web-frontend.rb @@ -21,6 +21,9 @@ default_attributes( ] } }, + :memcached => { + :memory_limit => 4096 + }, :passenger => { :max_pool_size => 50 },