# Snapshot running very slowly after upgrade from 5.x to 6.x

**URL:** <https://discuss.elastic.co/t/snapshot-running-very-slowly-after-upgrade-from-5-x-to-6-x/216782>\
**Category:** Elasticsearch\
**Created:** [January 28, 2020, 8:50am UTC](https://discuss.elastic.co/t/snapshot-running-very-slowly-after-upgrade-from-5-x-to-6-x/216782 "2020-01-28T08:50:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rschirin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rschirin/32/45283_2.png) [@rschirin](https://discuss.elastic.co/u/rschirin)\
**Post date:** [January 28, 2020, 8:50am UTC](https://discuss.elastic.co/t/snapshot-running-very-slowly-after-upgrade-from-5-x-to-6-x/216782/1 "2020-01-28T08:50:28Z")

</div>

Hi,  
I have upgraded my cluster from old version 5.x to 6.8.5 and every night I have a Python script that, using `elasticsearch` library, creates snapshot of several indices. the amount should be more or less 200 GB.  
Before the upgrade, this procedure took 2-3 hours. now it takes 10 hours. is there anything that I can control?

---

<div class="post-metadata">

**Author:** ![Armin\_Braun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/armin_braun/32/20092_2.png) [@Armin\_Braun](https://discuss.elastic.co/u/Armin_Braun)\
**Post date:** [January 28, 2020, 9:10am UTC](https://discuss.elastic.co/t/snapshot-running-very-slowly-after-upgrade-from-5-x-to-6-x/216782/2 "2020-01-28T09:10:40Z")

</div>

Hi @rschirin

what repository are you using for those snapshots?

What value are you using for the `max_snapshot_bytes_per_sec` setting on your repository? Unless it's already close to what your network can deal with I'd try increasing this value.

---

<div class="post-metadata">

**Author:** ![rschirin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rschirin/32/45283_2.png) [@rschirin](https://discuss.elastic.co/u/rschirin)\
**Post date:** [January 28, 2020, 9:56am UTC](https://discuss.elastic.co/t/snapshot-running-very-slowly-after-upgrade-from-5-x-to-6-x/216782/3 "2020-01-28T09:56:05Z")

</div>

I'm using a FS disk (hosted on SAN technology) and `max_snapshot_bytes_per_sec` is configured to the default value.  
I was trying to change it but I discovered that I have to recreate the repository. what a bad news ☹

---

<div class="post-metadata">

**Author:** ![Armin\_Braun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/armin_braun/32/20092_2.png) [@Armin\_Braun](https://discuss.elastic.co/u/Armin_Braun)\
**Post date:** [January 28, 2020, 10:00am UTC](https://discuss.elastic.co/t/snapshot-running-very-slowly-after-upgrade-from-5-x-to-6-x/216782/4 "2020-01-28T10:00:05Z")

</div>

@rschirin

> [@rschirin](#):
>
> I was trying to change it but I discovered that I have to recreate the repository. what a bad news ☹

I don't think this should be an issue at all. You can just recreate the repository in ES, it won't affect its contents on disk. Note that removing and re-adding a repository from the ES cluster doesn't do anything to files on disk.

---

<div class="post-metadata">

**Author:** ![rschirin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rschirin/32/45283_2.png) [@rschirin](https://discuss.elastic.co/u/rschirin)\
**Post date:** [January 28, 2020, 10:15am UTC](https://discuss.elastic.co/t/snapshot-running-very-slowly-after-upgrade-from-5-x-to-6-x/216782/5 "2020-01-28T10:15:13Z")

</div>

so, if I delete the repository and then recreate it I should be able to see again snapshot created with the old version of repository?

---

<div class="post-metadata">

**Author:** ![Armin\_Braun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/armin_braun/32/20092_2.png) [@Armin\_Braun](https://discuss.elastic.co/u/Armin_Braun)\
**Post date:** [January 28, 2020, 10:32am UTC](https://discuss.elastic.co/t/snapshot-running-very-slowly-after-upgrade-from-5-x-to-6-x/216782/6 "2020-01-28T10:32:19Z")

</div>

> [@rschirin](#):
>
> so, if I delete the repository and then recreate it I should be able to see again snapshot created with the old version of repository?

Yes, that should work just fine. There is no state about the contents of the repository stored in ES itself, all the metadata about what snapshots exist etc. is stored in the repository. So if you create a new repository pointing at the same path it will have all the snapshots in it.

---

<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 25, 2020, 10:32am UTC](https://discuss.elastic.co/t/snapshot-running-very-slowly-after-upgrade-from-5-x-to-6-x/216782/7 "2020-02-25T10:32:23Z")

</div>

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