Elasticsearch: Indicate if global state is present is snapshot

Created on 3 Jan 2017  路  4Comments  路  Source: elastic/elasticsearch

When a snapshot is made with include_global_state, the _status endpoint should indicate if state data is present, maybe with some info about what it has.

:DistributeSnapshoRestore >enhancement help wanted

Most helpful comment

A snapshot usually contains a backup of some indices, but when you take the snapshot with the include_global_state parameter, then other non-index data is included in the backup, such as templates, persistent settings, and other global state. Then when you go to restore the backup, you can specify include_global_state again in the API call, and that state will be restored along with the indices. It would just simply be useful to be able to see a yes/no flag in the _status endpoint indicating the snapshot includes global state.

All 4 comments

Could you give some more information on this? I'm a new contributor.

A snapshot usually contains a backup of some indices, but when you take the snapshot with the include_global_state parameter, then other non-index data is included in the backup, such as templates, persistent settings, and other global state. Then when you go to restore the backup, you can specify include_global_state again in the API call, and that state will be restored along with the indices. It would just simply be useful to be able to see a yes/no flag in the _status endpoint indicating the snapshot includes global state.

Hi @PhaedrusTheGreek, do you know any detailed docs about the global_state data and how it can be useful?

I sent a PR for this issue. @PhaedrusTheGreek May I ask you to take a review. Thanks in advance. 馃槃

Was this page helpful?
0 / 5 - 0 ratings