ElasticSearch高级客户端响应越来越延迟?

时间:2019-05-05 09:56:33

标签: elasticsearch

我正在使用高级客户端版本6.3版本。每当我遇到请求时,我都会很快得到响应,有时会延迟。我没有看到相同请求的标准加载时间:

   SearchResponse Duration = 10065MS
   SearchResponse Duration = 150001MS
   SearchResponse Duration = 15065MS
   SearchResponse Duration = 4134MS

                Every-time I am seeing different load time. Below is the code snippet

我正在使用NestedQueryBuilder构建查询。

    public static SearchResponse elasticSearchQuery(SearchRequest queryRequest) {
                 try (RestHighLevelClient restHighLevelClient = 
        //here building the client
        buildRestHighLevelClient(env)) {
                 SearchResponse searchResponse = restHighLevelClient.search(queryRequest);
                 return searchResponse;
                 }
                }
    ```

Needs to get response quickly and load-time should same.

0 个答案:

没有答案