# Curator need to add include\_global\_state in snapshot job?

**URL:** <https://discuss.elastic.co/t/curator-need-to-add-include-global-state-in-snapshot-job/89682>\
**Category:** Elasticsearch\
**Created:** [June 16, 2017, 9:21am UTC](https://discuss.elastic.co/t/curator-need-to-add-include-global-state-in-snapshot-job/89682 "2017-06-16T09:21:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Narmatha](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@Narmatha](https://discuss.elastic.co/u/Narmatha)\
**Post date:** [June 16, 2017, 9:21am UTC](https://discuss.elastic.co/t/curator-need-to-add-include-global-state-in-snapshot-job/89682/1 "2017-06-16T09:21:28Z")

</div>

Hi,

I am using curator 4.2.6 to do the snapshot of my ES cluster . And in the snapshot action file i had seen flag `include_global_state :True` . It seems to store the ES cluster state .  
Questions:  
What this actually mean ? Is it that important to have when creating a snapshot ? Because i went through this [ES documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html) where they had mentioned `setting include_global_state to false it’s possible to prevent the cluster global state to be stored as part of the snapshot. By default, the entire snapshot will fail if one or more indices participating in the snapshot don’t have all primary shards available. This behaviour can be changed by setting partial to true.`

It means if i keep `include_global_state :True` in my curator action file and if one or more indices participating in the snapshot don’t have all primary shards available then my snapshot will fail right.

Correct me If i am wrong?

Thanks

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [June 16, 2017, 9:45am UTC](https://discuss.elastic.co/t/curator-need-to-add-include-global-state-in-snapshot-job/89682/2 "2017-06-16T09:45:41Z")

</div>

You've conflated two settings.

> setting `include_global_state` to false it’s possible to prevent the cluster global state to be stored as part of the snapshot.

This is the end of the description for `include_global_state`.

What comes next:

> By default, the entire snapshot will fail if one or more indices participating in the snapshot don’t have all primary shards available. This behaviour can be changed by setting `partial` to `true`.

These sentences describe the `partial` setting.

Including the global state is good for full cluster restores. It doesn't hurt to include it. The default for _restoring,_ however, is `include_global_state: False`. If only restoring a single index, it could be bad to overwrite the global state, so that's why that's the default.

---

<div class="post-metadata">

**Author:** ![Narmatha](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@Narmatha](https://discuss.elastic.co/u/Narmatha)\
**Post date:** [June 16, 2017, 10:03am UTC](https://discuss.elastic.co/t/curator-need-to-add-include-global-state-in-snapshot-job/89682/3 "2017-06-16T10:03:18Z")

</div>

Thanks @theuntergeek

Now i got clarity . By default partial setting will be `partial:False` in snapshot curator action file . IS it good practice to keep this to`True` in the action file because i don't want my curator job to fail.

Thanks

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [June 16, 2017, 10:44am UTC](https://discuss.elastic.co/t/curator-need-to-add-include-global-state-in-snapshot-job/89682/4 "2017-06-16T10:44:16Z")

</div>

You probably _do_ want your Curator job to fail if it's partial. Otherwise you might miss a serious issue with your cluster. A partial snapshot means something is possibly very wrong with your cluster, as it means shards are missing or unresponsive.

---

<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:** [July 14, 2017, 10:44am UTC](https://discuss.elastic.co/t/curator-need-to-add-include-global-state-in-snapshot-job/89682/5 "2017-07-14T10:44:20Z")

</div>

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