[Elasticsearch] Elasticsearch document is routed to shard


Insert picture description here

1. Data routing (routing)

What does it mean to route document to shard?

Data routing (routing): The data of an index will be divided into multiple pieces, and each piece is in a shard; therefore, a document can only exist in one shard. When creating a document, es needs to determine which shard to place the document on the index. This process is called document routing (data routing).

2. Routing Algorithm

shard = hash

Guess you like

Origin blog.csdn.net/qq_21383435/article/details/108904952