Debug logs for performance assessment #712
-
I am interested in getting some insights about the performance in query time. Is there a way to configure the library to display logs that can give insights on performance? For a given query, metrics that would be helpful are:
Is any of this even possible? Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, this kind of logging is not currently implemented. It wouldn't be particularly difficult to add timing logs. Basically just find the spots in the code worth timing and make sure to use the loggers provided by elasticsearch and lucene. I don't know of a clean way to track memory usage for just Elastiknn. You can of course use metrics tools already built into the JVM. That would give you memory usage of the entire Elasticsearch server. |
Beta Was this translation helpful? Give feedback.
-
@ezorita if you're interested in trying to add this, there's actually some commented-out code you can start with as an example: There's a developer guide here: https://github.com/alexklibisz/elastiknn/tree/main/development |
Beta Was this translation helpful? Give feedback.
Hi, this kind of logging is not currently implemented. It wouldn't be particularly difficult to add timing logs. Basically just find the spots in the code worth timing and make sure to use the loggers provided by elasticsearch and lucene.
I don't know of a clean way to track memory usage for just Elastiknn. You can of course use metrics tools already built into the JVM. That would give you memory usage of the entire Elasticsearch server.