码迷,mamicode.com
首页 > 其他好文 > 详细

es-translog

时间:2015-04-09 10:30:47      阅读:287      评论:0      收藏:0      [点我收藏+]

标签:

translog(事务日志)
flush

Each shard has a transaction log or write ahead log associated with it.
It allows to guarantee that when an index/delete operation occurs,
it is applied atomically, while not "committing" the internal Lucene index for each request.
A flush ("commit") still happens based on several parameters:

index.translog.flush_threshold_ops
After how many operations to flush. Defaults to unlimited.
index.translog.flush_threshold_size
Once the translog hits this size, a flush will happen. Defaults to 512mb.
index.translog.flush_threshold_period
The period with no flush happening to force a flush. Defaults to 30m.
index.translog.interval
How often to check if a flush is needed, randomized between the interval value and 2x the interval value. Defaults to 5s.
index.gateway.local.sync
How often the translog is fsynced to disk. Defaults to 5s.

es-translog

标签:

原文地址:http://www.cnblogs.com/water-sky/p/4408857.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!