How does Elasticsearch map Integer doc IDs to shards? What algorithm does it use?
I've been digging around but haven't seemed to find the answer.
For context, every document we have has an id that's a row id from postgres. We're seeing skew on our nodes, likely because many rows have been deleted at different id ranges of this table in the past and if it's simply doing a modulo the documents may not evenly distribute.