# CCR follower for large index fails

**URL:** <https://discuss.elastic.co/t/ccr-follower-for-large-index-fails/258043>\
**Category:** Elasticsearch\
**Tags:** ccr-cross-cluster-replication\
**Created:** [December 8, 2020, 7:40pm UTC](https://discuss.elastic.co/t/ccr-follower-for-large-index-fails/258043 "2020-12-08T19:40:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![toryohanson](https://avatars.discourse-cdn.com/v4/letter/t/aeb1de/32.png) [@toryohanson](https://discuss.elastic.co/u/toryohanson)\
**Post date:** [December 8, 2020, 7:40pm UTC](https://discuss.elastic.co/t/ccr-follower-for-large-index-fails/258043/1 "2020-12-08T19:40:11Z")

</div>

Hello!  
I'w trying to configure Elasticsearch CCR using manuals at [elastic.co](https://discuss.elastic.co/t/what-can-elastic-siem-be-used-for/244637)

Everything works fine for small indexes.

But, when it comes to indexes large then 2 GB, something strange happens - index following is paused and follower index is red.

After this, I've **deleted follower index** both from Cross Cluster Replication and Index Management tabs in kibana and then run follower creation with Kibana Dev Tools:

```auto
    PUT /my_index_new_ccr/follow?wait_for_active_shards=1
          {
              "remote_cluster": "remote",
              "leader_index" : "my_index"
          }

```

Execution of this command resulted in this error:

```auto
> {
  "error": {
      "root_cause": [
        {
          "type": "snapshot_restore_exception",
          "reason": "[_ccr_remote:_latest_/_latest_] cannot restore index [my_index_new] because an open index with same name already exists in the cluster. Either close or delete the existing index or restore the index under a different name by providing a rename pattern and replacement name"
        }
      ],
      "type": "snapshot_restore_exception",
      "reason": "[_ccr_remote:_latest_/_latest_] cannot restore index [my_index_new] because an open index with same name already exists in the cluster. Either close or delete the existing index or restore the index under a different name by providing a rename pattern and replacement name"
    },
    "status": 500
  }

```

Elasticsearch logs for the same time shows a lot of errors on failed recovery. This string is present in almost all of them:

```auto
> Caused by: org.elasticsearch.ElasticsearchTimeoutException: [internal:admin/ccr/restore/file_chunk/get] timed out after [1m]

```

Here is my configuration:

- Elasticsearch and Kibana versions are 7.5, the same for both local and remote cluster.
- Remote Elasticsearch cluster consists of 4 nodes, 3 of them are both master and data nodes.
- All of the servers are physical nodes with SSD, 1 GigE network channel and have ~50 GB RAM for heap and cache.
- Local cluster consists of 3 master and data nodes.
- Remote index size is 410 gb and 6 primary shards. Follower index creation fail.
- The remote other index - 17 gb, 8 primary shards. Follower index creation fail.

I'm using Elasticsearch trial licence for these tests.

---

<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:** [January 5, 2021, 7:40pm UTC](https://discuss.elastic.co/t/ccr-follower-for-large-index-fails/258043/2 "2021-01-05T19:40:16Z")

</div>

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