Filippo Giunchedi has uploaded a new change for review.

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

Change subject: install-server: add swift cache partition
......................................................................

install-server: add swift cache partition

Shrink root and partitions holding container databases, a fourth partition will
be raid1 and used to provide ssd block caching via bcache.

Root shrinks from 50GB to 30GB, our current utilization is ~27% (i.e. 15G).

Container database partition changes from 90G min to 60G min (120G max),
rationale being that some machines have 256G SSD and some 150G SSD, yet the
same weight in swift. This should accomodate growth on larger SSD while
allowing decent caching on small SSD. Container partition utilization is on
average ~20G (was ~16G beginning of June) so it isn't expected to grow fast
(we'll likely run out of storage space first anyway).

Another option would be to raid1 the two SSDs and switch to lvm to host root,
swap and the cache. That however seems overkill, the bits we really care about
are the partitions holding container databases (sdn3/sdm3) and those will need
to live off raid/lvm anyway.

Note that if caching turns out later to be ineffective, we can drop the fourth
partition in place and grow sdn3/sdm3 back.

Change-Id: Ifc4ff408611868c405d64e605b040072494f7de6
---
M modules/install-server/files/autoinstall/partman/ms-be-eqiad.cfg
1 file changed, 8 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/32/174932/1

diff --git a/modules/install-server/files/autoinstall/partman/ms-be-eqiad.cfg 
b/modules/install-server/files/autoinstall/partman/ms-be-eqiad.cfg
index 6597b9d..f63ebd9 100644
--- a/modules/install-server/files/autoinstall/partman/ms-be-eqiad.cfg
+++ b/modules/install-server/files/autoinstall/partman/ms-be-eqiad.cfg
@@ -22,16 +22,19 @@
 # Define physical partitions
 d-i    partman-auto/expert_recipe      string  \
                multiraid ::    \
-                       60000   8000    60000   raid            \
+                       30000   8000    30000   raid            \
                                $primary{ } method{ raid }      \
                        .                                       \
                        1000    1000    1000    raid            \
                                $primary{ } method{ raid }      \
                        .                                       \
-                       100     500     -1      xfs             \
+                       60000   500     120000  xfs             \
                                $primary{ } method{ format }    \
                                format{ } use_filesystem{ }     \
                                filesystem{ xfs }               \
+                       . \
+                       30000   10000   -1      raid            \
+                               $primary{ } method{ raid }      \
                        .
 
 # Parameters are:
@@ -43,6 +46,9 @@
                .                                       \
                1       2       0       swap    -       \
                        /dev/sdm2#/dev/sdn2             \
+               . \
+               1       2       0       none    -       \
+                       /dev/sdm4#/dev/sdn4             \
                .
 
 d-i    partman-md/confirm              boolean true

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifc4ff408611868c405d64e605b040072494f7de6
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to