2014年8月16日 星期六

[elasticsearch]store level compression / index 的壓縮


elasticsearch 內的 store 模組是用來管理 index 如何被儲存。

index (file ) 可以被儲存在 memory中(no persistence),也可以被儲存在硬碟上(預設)。
當然,in memory的 index有著極高的效能,但是其索引大小也就被限制在硬體memory的大小上。

store level compression 基於store 的壓縮

index內的 "_source" 是可以被壓縮的。可是基於document的壓縮並沒有很好的效果。(註:_source就是input 進 search engine 索引的 raw data 的storage。)

elasticsearch提供以 "block" 為單位的壓縮方式,可以在 elasticsearch.yml 內設置 "index.store.compress.stored:true"  啟用 block compression。





沒有留言:

張貼留言