Gehel has uploaded a new change for review.

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

Change subject: elasticsearch - mount elasticsearch data partition with noatime
......................................................................

elasticsearch - mount elasticsearch data partition with noatime

Our internal documentation specifies that elasticsearch data partition
should be mounted with `noatime`, which make sense. This was not
puppetized yet, so here is the correction.

Note that the cirrus production clusters have a data partition under
/var/lib/elasticsearch, but relforge cluster is mounted under /srv. The
goal is to align all instances to use /srv, but this is going to take
some time.

Change-Id: Ib92ad6fcefcf6b237f0472cc0c8f76537f504969
---
M modules/role/manifests/elasticsearch/cirrus.pp
M modules/role/manifests/elasticsearch/relforge.pp
2 files changed, 16 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/17/318117/1

diff --git a/modules/role/manifests/elasticsearch/cirrus.pp 
b/modules/role/manifests/elasticsearch/cirrus.pp
index 99b4773..48f9272 100644
--- a/modules/role/manifests/elasticsearch/cirrus.pp
+++ b/modules/role/manifests/elasticsearch/cirrus.pp
@@ -4,6 +4,14 @@
 #
 class role::elasticsearch::cirrus {
 
+    mount { '/var/lib/elasticsearch':
+        ensure  => mounted,
+        fstype  => ext4,
+        options => 'defaults,noatime',
+        atboot  => true,
+        device  => '/dev/md2',
+    }
+
     include ::role::elasticsearch::common
 
 }
diff --git a/modules/role/manifests/elasticsearch/relforge.pp 
b/modules/role/manifests/elasticsearch/relforge.pp
index c8ae6f3..47ff388 100644
--- a/modules/role/manifests/elasticsearch/relforge.pp
+++ b/modules/role/manifests/elasticsearch/relforge.pp
@@ -4,6 +4,14 @@
 #
 class role::elasticsearch::relforge {
 
+    mount { '/srv':
+        ensure  => mounted,
+        fstype  => ext4,
+        options => 'defaults,noatime',
+        atboot  => true,
+        device  => '/dev/mapper/relforge1001--vg-data',
+    }
+
     include ::role::elasticsearch::common
     include ::elasticsearch::nagios::check
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib92ad6fcefcf6b237f0472cc0c8f76537f504969
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Gehel <gleder...@wikimedia.org>

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

Reply via email to