translog.asciidoc 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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. `index.translog.flush_threshold_ops`::
  9. After how many operations to flush. Defaults to `unlimited`.
  10. `index.translog.flush_threshold_size`::
  11. Once the translog hits this size, a flush will happen. Defaults to `200mb`.
  12. `index.translog.flush_threshold_period`::
  13. The period with no flush happening to force a flush. Defaults to `30m`.
  14. `index.translog.interval`::
  15. How often to check if a flush is needed, randomized
  16. between the interval value and 2x the interval value. Defaults to `5s`.
  17. `index.gateway.local.sync`::
  18. How often the translog is ++fsync++ed to disk. Defaults to `5s`.
  19. Note: these parameters can be updated at runtime using the Index
  20. Settings Update API (for example, these number can be increased when
  21. executing bulk updates to support higher TPS)