# Anyone run Cassandra Nodetool repair on a regular basis?

**URL:** <https://community.dynatrace.com/t/anyone-run-cassandra-nodetool-repair-on-a-regular-basis/23056>\
**Category:** Dynatrace Managed\
**Tags:** cassandra, dynatrace-managed, automation\
**Created:** [February 19, 2020, 5:48pm UTC](https://community.dynatrace.com/t/anyone-run-cassandra-nodetool-repair-on-a-regular-basis/23056 "2020-02-19T17:48:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![colin\_colehour](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@colin\_colehour](https://community.dynatrace.com/u/colin_colehour)\
**Post date:** [February 19, 2020, 5:48pm UTC](https://community.dynatrace.com/t/anyone-run-cassandra-nodetool-repair-on-a-regular-basis/23056/1 "2020-02-19T17:48:22Z")

</div>

We are looking to add Cassandra nodetool repair scheduled tasks to our managed cluster and was wondering if anyone else was currently doing this. What schedule do you use for your cluster nodes? Does it run on each cluster node at the same time?

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [February 19, 2020, 6:31pm UTC](https://community.dynatrace.com/t/anyone-run-cassandra-nodetool-repair-on-a-regular-basis/23056/2 "2020-02-19T18:31:25Z")

</div>

Colin my friend,

That blog post might be interesting for you:

> **[Should you use incremental repair?](https://thelastpickle.com/blog/2017/12/14/should-you-use-incremental-repair.html)**
>
> After seeing a lot of questions surrounding incremental repair on the mailing list and after observing several outages caused by it, we figured it would...

Repair in Apache Cassandra is a maintenance operation that restores data consistency throughout a cluster. It is advised to run repair operations at leasts every `gc_grace_seconds` to ensure that tombstones will get replicated consistently to avoid zombie records if you perform DELETE statements on your tables.

That also is useful:

[https://stackoverflow.com/questions/37921042/cassandra-nodetool-repair-best-practices](https://stackoverflow.com/questions/37921042/cassandra-nodetool-repair-best-practices)

And DataStax recommendations :

> **[When to run anti-entropy repair](https://docs.datastax.com/en/archived/cassandra/2.2/cassandra/operations/opsRepairNodesWhen.html)**
>
> When should anti-entropy repair be run on nodes.

---

<div class="post-metadata">

**Author:** ![colin\_colehour](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@colin\_colehour](https://community.dynatrace.com/u/colin_colehour)\
**Post date:** [February 19, 2020, 6:47pm UTC](https://community.dynatrace.com/t/anyone-run-cassandra-nodetool-repair-on-a-regular-basis/23056/3 "2020-02-19T18:47:11Z")

</div>

Radoslaw, Hey Buddy! Is the default behavior of nodetool repair a full repair with the version of Cassandra in Dynatrace Managed? How would I check what the value of gc\_grace\_seconds is set to?

Colin

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [February 19, 2020, 7:14pm UTC](https://community.dynatrace.com/t/anyone-run-cassandra-nodetool-repair-on-a-regular-basis/23056/4 "2020-02-19T19:14:12Z")

</div>

I believe we use default. The default value of gc\_grace\_seconds is 864000 seconds (10 days).

I’ll try to double check tomorrow.

The nodetool script provided in the installation is just a wrapper for Cassandra nodetool. By default if node is not specified it runs on all nodes.

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [February 24, 2020, 12:36pm UTC](https://community.dynatrace.com/t/anyone-run-cassandra-nodetool-repair-on-a-regular-basis/23056/5 "2020-02-24T12:36:37Z")

</div>

For some tables it’s 3d. Adding additional constraint that you have a large volume of data and the repair can take longer time - I’d say that it’s be better to run repair only after 3d of node down or disconnected from the cluster.
