Response time of Java percolate API is unstable

Hi,

We're now in performance test and seeing some unexpected result.

We use Java percolate API

client.preparePercolate().setIndices(index).setDocumentType(projectName).setSource(log).execute().actionGet();

LOGGER.info(duration+"ms for percolation, es time
"+response.getTookInMillis()+" ms for log "+ log);

and registered one simple rule, input log varies.

sometimes response.getTookInMillis() is more than 2000ms meaning it took
more than 2 seconds to percolate single log.
sometimes response.getTookInMillis() is less than 10ms which we expect it
to be.

Ping responses within 1 ms, network has nothing to do with that
fluctuation, and we want percolation response time to be stable and fast.

Is there any possible reason?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAL3_U42_om18Z3XMjw1qE0g-%2BuPDSsC4-de5f0RHEFKcEMb3Qg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.