Open kkmr opened 3 months ago
@kkmr we do provide memory usage details part of _knn/stats https://opensearch.org/docs/latest/search-plugins/knn/api/#usage. This usage is based on graph sizes and not on RSS
We also have Circuit breakers in place to limit the number of graphs that can be in memory. If Circuit breaker(CB) is hit, we evict cache based on LRU. You should be able to see status of CB from stats https://opensearch.org/docs/latest/search-plugins/knn/api/#stats
Today, it is up to the customer to provision appropriate number of nodes so that the cluster/domain has sufficient memory to handle their load. If customer under provisions the nodes, there is a potential for the nodes to OOM. We should consider adding the following functionality: