Mark Bergsma has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/70819


Change subject: Prepare the bits cache manifests for the new eqiad servers
......................................................................

Prepare the bits cache manifests for the new eqiad servers

Change-Id: Ic08c9d71773e19b26f3bc37807356ef1c56d0c4f
---
M manifests/role/cache.pp
1 file changed, 7 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/19/70819/1

diff --git a/manifests/role/cache.pp b/manifests/role/cache.pp
index 85d40b2..9363478 100644
--- a/manifests/role/cache.pp
+++ b/manifests/role/cache.pp
@@ -840,6 +840,12 @@
                        }
                }
                $cluster_options = merge($common_cluster_options, 
$realm_cluster_options)
+               
+               if regsubst($::memorytotal, "^([0-9]+)\.[0-9]* GB$", "\1") > 96 
{
+                       $memory_storage_size = 32
+               } else {
+                       $memory_storage_size = 2
+               }
 
                system_role { "role::cache::bits": description => "bits Varnish 
cache server" }
 
@@ -853,7 +859,7 @@
                        vcl => "bits",
                        port => 80,
                        admin_port => 6082,
-                       storage => "-s malloc,2G",
+                       storage => "-s malloc,${memory_storage_size}G",
                        directors => $varnish_directors[$cluster_tier],
                        director_type => "random",
                        vcl_config => {

-- 
To view, visit https://gerrit.wikimedia.org/r/70819
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic08c9d71773e19b26f3bc37807356ef1c56d0c4f
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Mark Bergsma <m...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to