Filippo Giunchedi has submitted this change and it was merged.

Change subject: Add a daily incremental repair job
......................................................................


Add a daily incremental repair job

Cassandra 2.1 adds a new incremental repair mode, which should make daily
repairs fairly fast. Lets see if the impact with -par is okay. If I understand
the docs right it sounds like it would be a win over repairing each node
sequentially, especially in combination with incremental repairs.

See the docs for background:
http://www.datastax.com/documentation/cassandra/2.1/cassandra/operations/ops_repair_nodes_c.html

Change-Id: Ifc5d3826229ca6aa7cfd9bd3a680e97c9abc05e4
---
M manifests/init.pp
1 file changed, 10 insertions(+), 0 deletions(-)

Approvals:
  Filippo Giunchedi: Verified; Looks good to me, approved



diff --git a/manifests/init.pp b/manifests/init.pp
index 683fdcb..06d29ef 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -346,6 +346,16 @@
         ensure => 'absent',
     }
 
+    # Cron for daily incremental repairs
+    # 
http://www.datastax.com/documentation/cassandra/2.1/cassandra/operations/ops_repair_nodes_c.html
+    cron { 'daily incremental repairs':
+        # Only keep last day's repair output for simplicity.
+        command => "/usr/bin/nodetool repair -par -inc > 
/var/log/cassandra/repair.log 2>&1",
+        user    => 'cassandra',
+        hour    => '04',
+        minute  => '45',
+    }
+
     service { 'cassandra':
         ensure     => 'running',
         enable     => true,

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ifc5d3826229ca6aa7cfd9bd3a680e97c9abc05e4
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet/cassandra
Gerrit-Branch: master
Gerrit-Owner: GWicke <gwi...@wikimedia.org>
Gerrit-Reviewer: Alexandros Kosiaris <akosia...@wikimedia.org>
Gerrit-Reviewer: Dzahn <dz...@wikimedia.org>
Gerrit-Reviewer: Filippo Giunchedi <fgiunch...@wikimedia.org>
Gerrit-Reviewer: GWicke <gwi...@wikimedia.org>
Gerrit-Reviewer: Mobrovac <mobro...@wikimedia.org>
Gerrit-Reviewer: Rush <r...@wikimedia.org>
Gerrit-Reviewer: Springle <sprin...@wikimedia.org>

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

Reply via email to