Yu Ma
Yu Ma

Reputation: 1

elasticSearch vector retrieval(ES KNN) has no slow logs

The knn queries in the ES client are extremely slow. Although I have enabled the slow log configuration, no slow logs for knn queries are being generated.

Below is the slow log configuration

    PUT /myindex/_settings
    {    
    "index.search.slowlog.threshold.query.warn": "5s",
    "index.search.slowlog.threshold.query.info": "10ms",
    "index.search.slowlog.threshold.query.debug": "1s",
    "index.search.slowlog.threshold.query.trace": "400ms",
    "index.search.slowlog.threshold.fetch.warn": "2s",
    "index.search.slowlog.threshold.fetch.info": "10ms",
    "index.search.slowlog.threshold.fetch.debug": "500ms",
    "index.search.slowlog.threshold.fetch.trace": "200ms",
    "index.indexing.slowlog.threshold.index.warn": "5s",
    "index.indexing.slowlog.threshold.index.info": "2s",
    "index.indexing.slowlog.threshold.index.debug": "1s",
    "index.indexing.slowlog.threshold.index.trace": "400ms",
    "index.indexing.slowlog.source": "3000" 
    }

I attempted to adjust the time threshold; however, it had no effect. The took value returned by Elasticsearch is over 10 seconds, but there is no slow log output. Meanwhile, the slow logs for other queries function properly.

Upvotes: 0

Views: 19

Answers (0)

Related Questions