translog.asciidoc 1.2 KB

12345678910111213141516171819202122232425262728
  1. [[index-modules-translog]]
  2. == Translog
  3. Each shard has a transaction log or write ahead log associated with it.
  4. It allows to guarantee that when an index/delete operation occurs, it is
  5. applied atomically, while not "committing" the internal Lucene index for
  6. each request. A flush ("commit") still happens based on several
  7. parameters:
  8. [cols="<,<",options="header",]
  9. |=======================================================================
  10. |Setting |Description
  11. |index.translog.flush_threshold_ops |After how many operations to flush.
  12. Defaults to `5000`.
  13. |index.translog.flush_threshold_size |Once the translog hits this size,
  14. a flush will happen. Defaults to `200mb`.
  15. |index.translog.flush_threshold_period |The period with no flush
  16. happening to force a flush. Defaults to `30m`.
  17. |index.translog.interval |How often to check if a flush is needed, randomized
  18. between the interval value and 2x the interval value. Defaults to `5s`.
  19. |=======================================================================
  20. Note: these parameters can be updated at runtime using the Index
  21. Settings Update API (for example, these number can be increased when
  22. executing bulk updates to support higher TPS)