将ElasticSearch Transport Client与Amazon ElasticSearch Service(AES)结合使用 [英] Using ElasticSearch Transport Client with Amazon ElasticSearch Service ( AES )

查看:117
本文介绍了将ElasticSearch Transport Client与Amazon ElasticSearch Service(AES)结合使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们计划将Elasticsearch集群移至Amazon ElasticSearch Service(AES)。我们当前的代码库使用本机Java传输客户端与ElasticSearch集群进行交互,但是根据AES文档,它不支持TCP传输。

We are planning to move our Elasticsearch cluster to Amazon ElasticSearch Service ( AES ). Our current code base use native Java transport client to interact with ElasticSearch cluster but as per the AES documentation, it does not support the TCP transport.

The service supports HTTP on port 80, but does not support TCP transport.

想知道几件事:


  1. 想知道是否仍然如此。我之所以这样问是因为开发人员指南版本看起来有点旧,版本为开发人员指南(API版本 2015-01-01 )。

  1. Wanted to know if this is still the case. I am asking this because the developer guide version looks a bit old, versioned "Developer Guide (API Version 2015-01-01)".

如果对于第1项,答案是肯定的。需要进行何种工作才能移植当前逻辑以开始使用REST API而不是传输客户端。

If the answer is yes for Item 1, what kind of effort would be required to port the current logic to start using REST API's instead of transport client.

本地传输客户端与REST API的性能会有显着差异。我认为使用本地客户端会更高效。

Will there be a significant difference in the performance of native transport client vs REST API's. I assume using native client is more efficient.


推荐答案


  1. 是的,这

  1. Yes, this is still the case

从传输客户端到高级REST客户端的迁移应该很简单如其目标所述

The migration from the Transport client to the High-Level REST client is supposed to be straightforward as stated in their objectives.

TCP级别比OSI堆栈中的HTTP级别低3个级别,因此必然会增加开销。它可能可以忽略不计,但是您需要对其进行彻底的测试以确保。

The TCP level is three levels below the HTTP one in the OSI stack, so there will necessarily be an added overhead. It might be negligible, but you'll need to test it thoroughly to make sure.

没有4,但我要添加一个:您可能要先阅读以下内容: https://code972.com/blog/2017/12/111-why-you- shouldnt-use-aws-elasticsearch-service 您应该考虑改用Elastic Cloud,它比AES更强大,更灵活且限制更少。

There was no 4, but I'm adding one: You might want to read this first: https://code972.com/blog/2017/12/111-why-you-shouldnt-use-aws-elasticsearch-service You should consider going to Elastic Cloud instead, which is much more powerful, flexible and less restrictive than AES.

这篇关于将ElasticSearch Transport Client与Amazon ElasticSearch Service(AES)结合使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆