# How to update max\_snapshot\_bytes\_per\_sec setting for an existing repository?

**URL:** <https://discuss.elastic.co/t/how-to-update-max-snapshot-bytes-per-sec-setting-for-an-existing-repository/204797>\
**Category:** Elasticsearch\
**Created:** [October 23, 2019, 7:14am UTC](https://discuss.elastic.co/t/how-to-update-max-snapshot-bytes-per-sec-setting-for-an-existing-repository/204797 "2019-10-23T07:14:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajiv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajiv/32/47644_2.png) [@Rajiv](https://discuss.elastic.co/u/Rajiv)\
**Post date:** [October 23, 2019, 7:14am UTC](https://discuss.elastic.co/t/how-to-update-max-snapshot-bytes-per-sec-setting-for-an-existing-repository/204797/1 "2019-10-23T07:14:27Z")

</div>

Hello:

Is there a way to update the max\_snapshot\_bytes\_per\_sec setting on a repository without deleting and recreating it?

We have an S3 repo configured with a bunch of snapshots. As the daily data volume has grown the time it takes to complete the snapshot has increased. We would like to bump up the max\_snapshot\_bytes\_per\_sec setting on the repo. However, updating the repo results in this error:

```
> "type": "illegal_state_exception",
> "reason": "trying to modify or unregister repository that is currently used "

```

Is there a way to update this setting without creating a new repo?

---

<div class="post-metadata">

**Author:** ![Rajiv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajiv/32/47644_2.png) [@Rajiv](https://discuss.elastic.co/u/Rajiv)\
**Post date:** [October 24, 2019, 4:05pm UTC](https://discuss.elastic.co/t/how-to-update-max-snapshot-bytes-per-sec-setting-for-an-existing-repository/204797/2 "2019-10-24T16:05:17Z")

</div>

This appears to be a known limitation of Elasticsearch. [See #18785](https://github.com/elastic/elasticsearch/issues/18785)

Based on the issue description, I waited for the running snapshots to finish (using `GET _snapshot/_status`) and then deleted the repository and added it back again with the new settings. The repo was live with new settings and all our existing snapshots were available.

---

<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:** [November 21, 2019, 4:06pm UTC](https://discuss.elastic.co/t/how-to-update-max-snapshot-bytes-per-sec-setting-for-an-existing-repository/204797/3 "2019-11-21T16:06:49Z")

</div>

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