# \[ES v6.7.2\] Speed up snapshot restore from GCS Snapshot Repository

**URL:** <https://discuss.elastic.co/t/es-v6-7-2-speed-up-snapshot-restore-from-gcs-snapshot-repository/293343>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [January 3, 2022, 11:26am UTC](https://discuss.elastic.co/t/es-v6-7-2-speed-up-snapshot-restore-from-gcs-snapshot-repository/293343 "2022-01-03T11:26:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akshay\_KN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akshay_kn/32/76976_2.png) [@Akshay\_KN](https://discuss.elastic.co/u/Akshay_KN)\
**Post date:** [January 3, 2022, 11:26am UTC](https://discuss.elastic.co/t/es-v6-7-2-speed-up-snapshot-restore-from-gcs-snapshot-repository/293343/1 "2022-01-03T11:26:11Z")

</div>

Hello Team,

We are trying to speed up our snapshot restoration speed in our ES cluster hosted on GCP Compute instances.

**TL;DR** :

- Current Performance: 50 MBps per data node
- Infra Capable of 500 MBps
- We want to improve our restore speed up to the maximum disk throughput (no throttling from infrastructure).

**Infra Details** :

- 5 Master | 7 Data | 2 Co-ordinator Nodes
- Each node has 16core/32gb config (heap size: 16gb)
- Each Data instance supports max 25k disk IOPS (500 MBps Throughput)

Current Restore Performance: 3 Gbps on the whole cluster (50 MBps per node).

We are currently getting 10% of the total disk write throughput. We are looking for options to improve it.

**What we have already tried:**

- cluster.routing.allocation.node\_concurrent\_recoveries: 30
- cluster.routing.allocation.node\_initial\_primaries\_recoveries: 30
- indices.recovery.max\_bytes\_per\_sec: 20gb
- indices.recovery.max\_concurrent\_file\_chunks: 5
- thread\_pool.bulk.queue\_size: 2000
- thread\_pool.bulk.size: 16
- thread\_pool.index.queue\_size: 2000
- thread\_pool.index.size: 16
- thread\_pool.snapshot.core: 10
- thread\_pool.snapshot.max: 50
- transport.connections\_per\_node.recovery: 10

Tested the restoration speed on the below ES versions

- `6.8.12` - No improvement in the speed.
- `7.10.2` - Massive improvement in the speed. 28Gbps speed for 7 data node cluster.

We are unable to figure out the config that is throttling the network performance.

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [January 3, 2022, 4:04pm UTC](https://discuss.elastic.co/t/es-v6-7-2-speed-up-snapshot-restore-from-gcs-snapshot-repository/293343/2 "2022-01-03T16:04:41Z")

</div>

> [@Akshay\_KN](#):
>
> - `7.10.2` - Massive improvement in the speed. 28Gbps speed for 7 data node cluster.

This is the best solution IMO: upgrade to a newer version. 6.7 is nearly 3 years old and well over a year past [EOL](https://www.elastic.co/support/eol), so it's no longer supported and you're missing out on several years of performance improvements by using such an ancient version.

> [@Akshay\_KN](#):
>
> **What we have already tried:**

You should restore these values back to the defaults. The values you suggest can make performance worse and can even lead to cluster instability. Increasing `indices.recovery.max_bytes_per_sec` is acceptable but the value you use should not exceed your actual disk throughput.

I forget the details of snapshotting in such old versions but in newer versions the repository setting `max_restore_bytes_per_sec` defaults to `40mb` so it might help to increase this too. Even if it does help, you should still upgrade as a matter of some urgency.

---

<div class="post-metadata">

**Author:** ![Akshay\_KN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akshay_kn/32/76976_2.png) [@Akshay\_KN](https://discuss.elastic.co/u/Akshay_KN)\
**Post date:** [January 5, 2022, 5:19am UTC](https://discuss.elastic.co/t/es-v6-7-2-speed-up-snapshot-restore-from-gcs-snapshot-repository/293343/3 "2022-01-05T05:19:58Z")

</div>

Thank you for the updates.

We will restore the values back to the defaults.

---

<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 2, 2022, 5:20am UTC](https://discuss.elastic.co/t/es-v6-7-2-speed-up-snapshot-restore-from-gcs-snapshot-repository/293343/4 "2022-02-02T05:20:40Z")

</div>

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