Expected behavior for many concurrent create index requests

Pretty much as the question states. What is the expected behavior when many concurrent identical create index requests are made to the elasticsearch cluster?

If you are using the same document id for all, the last request will overwrite all the previous ones.
If you are not providing any id, you will have as many "duplicated" documents as the number of requests.

I was saying for creating an index not inserting a document. Is creating an index something that is only handled by certain nodes and/or threadsafe?

Only the current master node processes that operation and decides where to allocate the shards and other things. Then it propagates the updated cluster state to all the other nodes.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.