I am "new" to Solr (using version 8.7). I am trying to benchmark the solution, one of my tests is to send the same query several times to the same solr node on the same collection to ensure the relevance of the response times and estimate the potential differences we can observe.
My problem is that sometimes the first time the query is sent the response time is longer than the following times. An example of response times for the same query sent 10 times (in ms) : 31380, 405, 423, 412, 364, 381, 383, 378, 369, 266 (this query uses sort and fq, with {!cache=false}). At first I thought that it could be due to host resolution, but I still have the issue after changing the target host to the IP address of the machine. I have no other process running on the machine, it is dedicated to solr benchmark, so it is not a problem with CPU or RAM in my opinion. I am using SolrCloud with 2 nodes but the collection I am sending requests on only has 1 shard with 1 replica, so I don't think it is due to a communication between nodes...
Recommended things I tried :
disable caches (filterCache, queryResultCache and documentCache, even a custom cache named "perSegFilter" that was there by default..) in solrconfig, first by adding enabled="false" then by commenting out the blocs (then reloading the collection etc... Even restarting the cluster), I keep checking solr caches metrics to see if they are used but they are not ;
use {!cache=false} everywhere I can in the query ;
disable cold searcher.
After searching for a long time on solr documentation and forums, I am running out of ideas.. If anyone even encountered this problem, or if someone has an idea or an explanation of how it works (maybe it is not a problem) that would help me greatly.
Thank you for your time