如何询问我的 Elasticsearch 服务器现在有多少个连接?
这与插座数量相同吗? (我也不知道如何获得这些数字)
这与客户端的数量不同,对吧,因为每个客户端可能打开多个连接?
找不到任何相关信息,但我确实发现您可以在 Elasticsearch 客户端为每个客户端指定 maxSockets:https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/configuration.html https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/configuration.html
请求层使用 RESTful API,因此在处理任何请求后连接不会保持打开状态。
因此,如果您尝试衡量 Elasticsearch 正在处理多少并发请求(无论是查询、索引还是批量),您可能需要监控每个节点上的 thread_pool:
https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html
或者您正在寻找有关发现层的更多信息?
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)