# Are there any cron jobs I can perform daily to keep my cluster healthy?

**URL:** <https://discuss.elastic.co/t/are-there-any-cron-jobs-i-can-perform-daily-to-keep-my-cluster-healthy/323150>\
**Category:** Elasticsearch\
**Created:** [January 13, 2023, 3:44pm UTC](https://discuss.elastic.co/t/are-there-any-cron-jobs-i-can-perform-daily-to-keep-my-cluster-healthy/323150 "2023-01-13T15:44:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SemperFi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/semperfi/32/115920_2.png) [@SemperFi](https://discuss.elastic.co/u/SemperFi)\
**Post date:** [January 13, 2023, 3:44pm UTC](https://discuss.elastic.co/t/are-there-any-cron-jobs-i-can-perform-daily-to-keep-my-cluster-healthy/323150/1 "2023-01-13T15:44:42Z")

</div>

I've got a very basic Elasticsearch cluster set up on my server to support search for a Xenforo forum. My technical knowledge is good enough to be dangerous.

Lately Elasticsearch is crashing about once a week and I'm wondering if there are any cron jobs I can set up to pre-emptively keep the service going. I suppose I could just stop and start eleasticsearch once a day but are there any other ideas and what would the jobs look like to add to my cronjob.

---

<div class="post-metadata">

**Author:** ![Ayush\_Mathur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayush_mathur/32/77134_2.png) [@Ayush\_Mathur](https://discuss.elastic.co/u/Ayush_Mathur)\
**Post date:** [January 13, 2023, 4:05pm UTC](https://discuss.elastic.co/t/are-there-any-cron-jobs-i-can-perform-daily-to-keep-my-cluster-healthy/323150/2 "2023-01-13T16:05:28Z")

</div>

Welcome to the community @SemperFi and thank you for reaching out.  
Can you please provide some context about your cluster like how many nodes, RAM/CPU assigned to ES, data volume, index/shard count and size (on an average) ? Also, would be great if you can share ES logs when the cluster goes down or crashes. Is it only a single node or all the nodes are crashing ?

---

<div class="post-metadata">

**Author:** ![SemperFi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/semperfi/32/115920_2.png) [@SemperFi](https://discuss.elastic.co/u/SemperFi)\
**Post date:** [January 13, 2023, 4:33pm UTC](https://discuss.elastic.co/t/are-there-any-cron-jobs-i-can-perform-daily-to-keep-my-cluster-healthy/323150/3 "2023-01-13T16:33:47Z")

</div>

How do I determine what I assigned to the cluster. It's on a dedicated server with 16G RAM and 8 cores. It's running alongside all the apache webserver sites so it's not a very sophisticated cluster.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 18, 2023, 11:16pm UTC](https://discuss.elastic.co/t/are-there-any-cron-jobs-i-can-perform-daily-to-keep-my-cluster-healthy/323150/4 "2023-01-18T23:16:18Z")

</div>

Welcome to our community! 😃

What is the output from the [`_cluster/stats?pretty&human` API](https://www.elastic.co/guide/en/elasticsearch/reference/8.4/cluster-stats.html)?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 15, 2023, 11:16pm UTC](https://discuss.elastic.co/t/are-there-any-cron-jobs-i-can-perform-daily-to-keep-my-cluster-healthy/323150/5 "2023-02-15T23:16:42Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
