# Connection to ES on a remote single server too slow

**URL:** <https://discuss.elastic.co/t/connection-to-es-on-a-remote-single-server-too-slow/213189>\
**Category:** Elasticsearch\
**Created:** [December 27, 2019, 12:43pm UTC](https://discuss.elastic.co/t/connection-to-es-on-a-remote-single-server-too-slow/213189 "2019-12-27T12:43:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![weiwei107](https://avatars.discourse-cdn.com/v4/letter/w/dc4da7/32.png) [@weiwei107](https://discuss.elastic.co/u/weiwei107)\
**Post date:** [December 27, 2019, 12:43pm UTC](https://discuss.elastic.co/t/connection-to-es-on-a-remote-single-server-too-slow/213189/1 "2019-12-27T12:43:45Z")

</div>

The connection with ES is Ok locally. Then we put the ES on a single server of Aliyun. The search speed becomes very slow. Everything else is the same except the difference between local and remote.

The ES version is 5.6.1. We use transport client java API in our project. The bandwith of the server is 1mb/s.

---

<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:** [December 27, 2019, 1:01pm UTC](https://discuss.elastic.co/t/connection-to-es-on-a-remote-single-server-too-slow/213189/2 "2019-12-27T13:01:09Z")

</div>

Hi @weiwei107

Unfortunately, I think there isn't much you can do here. The only thing I see that might help if you're limited by your bandwidth and not latency would be to turn on tcp compressing. See the docs [here] ([https://www.elastic.co/guide/en/elasticsearch/reference/5.6/modules-transport.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/modules-transport.html)), `transport.tcp.compress` is the setting you could try to set to `true`.  
That should reduce the bandwidth quite a bit assuming the data transferred is compressible.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 27, 2019, 1:02pm UTC](https://discuss.elastic.co/t/connection-to-es-on-a-remote-single-server-too-slow/213189/3 "2019-12-27T13:02:31Z")

</div>

1mb/s ?

That's not a lot. Are you sure it's that value?

---

<div class="post-metadata">

**Author:** ![weiwei107](https://avatars.discourse-cdn.com/v4/letter/w/dc4da7/32.png) [@weiwei107](https://discuss.elastic.co/u/weiwei107)\
**Post date:** [December 27, 2019, 1:05pm UTC](https://discuss.elastic.co/t/connection-to-es-on-a-remote-single-server-too-slow/213189/4 "2019-12-27T13:05:13Z")

</div>

yes, it is 1Mbps.

---

<div class="post-metadata">

**Author:** ![weiwei107](https://avatars.discourse-cdn.com/v4/letter/w/dc4da7/32.png) [@weiwei107](https://discuss.elastic.co/u/weiwei107)\
**Post date:** [December 27, 2019, 1:11pm UTC](https://discuss.elastic.co/t/connection-to-es-on-a-remote-single-server-too-slow/213189/5 "2019-12-27T13:11:02Z")

</div>

Thanks a lot.

Actually I am trying this to solve a problem which we have been struggling to handle but failed: [https://discuss.elastic.co/t/nosuchfileexception-of-the-translog-ckp-file/212802/2](https://discuss.elastic.co/t/nosuchfileexception-of-the-translog-ckp-file/212802/2).

Could you please take a look?

---

<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 24, 2020, 1:11pm UTC](https://discuss.elastic.co/t/connection-to-es-on-a-remote-single-server-too-slow/213189/6 "2020-01-24T13:11:09Z")

</div>

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