小编典典

Elasticsearch:如何查询连接数?

elasticsearch

我如何询问我的Elasticsearch服务器目前有多少个连接打开?

这和插座数一样吗?(我也不知道如何获得这些数字)

这与客户端的数量不同,对,因为每个客户端都可以打开多个连接?

虽然我确实发现您可以在Elasticsearch客户端上为每个客户端指定一个maxSockets,但找不到任何信息:https
://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/
configuration.html


阅读 5318

收藏
2020-06-22

共1个答案

小编典典

请求层使用RESTful API,因此在处理任何请求后,连接不会保持打开状态。

因此,如果您要评估Elasticsearch正在处理的并发请求数(无论是查询,索引还是批量),则可能要监视每个节点上的thread_pool:

https://www.elastic.co/guide/zh-CN/elasticsearch/reference/current/cluster-
nodes-
stats.html

还是在寻找发现层中的更多信息?

2020-06-22