force merge原理 + ES寫入數據的過程 - reindex - include_type_name


-1.https://www.elastic.co/guide/en/elasticsearch/reference/7.2/removal-of-types.html  include_type_name

0.概念

The force merge API allows to force merging of one or more indices through an API.

Force merge should only be called against read-only indices. Running force merge against a read-write index can cause very large segments to be produced

Lucene每次會選取一些小的segments 進而merge到一個大的segment

 

1.命令

curl -X POST "192.168.1.111:9200/mytest/_forcemerge?pretty"
參考:https://www.elastic.co/guide/en/elasticsearch/reference/6.8/indices-forcemerge.html

 

https://blog.csdn.net/sinat_16658263/article/details/90444038

2.原理

2.4ES寫入數據的過程:

客戶端選擇一個node發送請求過去,這個node就是coordinating node (協調節點)
coordinating node,對document進行路由,將請求轉發給對應的node
實際上的node上的primary shard處理請求,然后將數據同步到replica node
coordinating node,如果發現primary node和所有的replica node都搞定之后,就會返回請求到客戶端
————————————————

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM