# Using elasticsearch with remote storage

**URL:** <https://discuss.elastic.co/t/using-elasticsearch-with-remote-storage/303631>\
**Category:** Elasticsearch\
**Created:** [April 29, 2022, 7:23pm UTC](https://discuss.elastic.co/t/using-elasticsearch-with-remote-storage/303631 "2022-04-29T19:23:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Hsia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james_hsia/32/100356_2.png) [@James\_Hsia](https://discuss.elastic.co/u/James_Hsia)\
**Post date:** [April 29, 2022, 7:23pm UTC](https://discuss.elastic.co/t/using-elasticsearch-with-remote-storage/303631/1 "2022-04-29T19:23:40Z")

</div>

We have an AKS cluster in the US running an Elasticsearch pod (version 7.16.0) tied to an Azure File Share storage account in Europe. We are getting continuous issues in the Elasticsearch logs similar to the below upon a clean startup, and the pod is basically unresponsive (e.g. create index also times out):

```auto
{"type": "server", "timestamp": "2022-04-29T15:50:22,390Z", "level": "WARN", "component": "o.e.g.PersistedClusterStateService", "cluster.name": "search-123", "node.name": "search-123-es-master-0", "message": "writing cluster state took [15422ms] which is above the warn threshold of [10s]; wrote full state with [1] indices" }

{"type": "server", "timestamp": "2022-04-29T15:51:00,933Z", "level": "ERROR", "component": "o.e.x.m.e.l.LocalExporter", "cluster.name": "search-123", "node.name": "search-123-es-master-0", "message": "failed to set monitoring template [.monitoring-alerts-7]", "cluster.uuid": "lIkSuRkeRoucLcK7W3tvBw", "node.id": "vBeM0YOUSLOQR4wi7eyRIg" , 
"stacktrace": ["**org.elasticsearch.cluster.metadata.ProcessClusterEventTimeoutException: failed to process cluster event (create-index-template [.monitoring-alerts-7], cause [api]) within 30s**",
"at org.elasticsearch.cluster.service.MasterService$Batcher.lambda$onTimeout$0(MasterService.java:158) [elasticsearch-7.16.0.jar:7.16.0]",
"at java.util.ArrayList.forEach(ArrayList.java:1511) [?:?]",
"at org.elasticsearch.cluster.service.MasterService$Batcher.lambda$onTimeout$1(MasterService.java:157) [elasticsearch-7.16.0.jar:7.16.0]",
"at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:712) [elasticsearch-7.16.0.jar:7.16.0]",
"at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]",
"at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]",
"at java.lang.Thread.run(Thread.java:833) [?:?]"] }

```

Is this due to the fact we're using remote storage for Elasticsearch? Is this not valid?

Other notes are that we are using a single node cluster, we've tried the workaround for Azure File Share ([SMB workaround](https://www.elastic.co/guide/en/elasticsearch/plugins/current/store-smb-usage.html)), and we've tried upgrading to Azure's premium storage for better latency.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 29, 2022, 10:02pm UTC](https://discuss.elastic.co/t/using-elasticsearch-with-remote-storage/303631/2 "2022-04-29T22:02:13Z")

</div>

Welcome to our community! 😃

> [@James\_Hsia](#):
>
> Is this due to the fact we're using remote storage for Elasticsearch? Is this not valid?

Yes, and yes. This is not supported and likely to cause a bunch of issues.

---

<div class="post-metadata">

**Author:** ![James\_Hsia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james_hsia/32/100356_2.png) [@James\_Hsia](https://discuss.elastic.co/u/James_Hsia)\
**Post date:** [May 2, 2022, 3:21pm UTC](https://discuss.elastic.co/t/using-elasticsearch-with-remote-storage/303631/3 "2022-05-02T15:21:13Z")

</div>

Thanks @warkolm for the welcome and quick response! We will look into alternative configurations.

---

<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:** [May 30, 2022, 3:22pm UTC](https://discuss.elastic.co/t/using-elasticsearch-with-remote-storage/303631/4 "2022-05-30T15:22:15Z")

</div>

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