The sequence in which the same set of documents are provided to the percentiles aggregation can lead to minor variations in results.
The insertion sequence can be affected by:
- Primary and replica shards having different physical arrangements of content on disk (Lucene merge operations are non-deterministic)
- The sequence of merging results from multiple shards (again, a non-deterministic order)