From 860431223d5e1ada6bc6549c2cfa30dea4d23182 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 9 Sep 2020 19:20:38 +0100 Subject: [PATCH] Spin up memcached on the web frontends --- cookbooks/web/recipes/frontend.rb | 3 +++ roles/web-frontend.rb | 3 +++ 2 files changed, 6 insertions(+) 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 }, -- 2.39.5