Add note to clarify at-least-one guarantee statement

Fixes #7029
This commit is contained in:
DeDe Morton 2017-05-04 13:00:40 -07:00
parent b709eb5c68
commit 31b2a36346

View file

@ -25,6 +25,9 @@ Redis or Apache Kafka.
a normal shutdown as well as when Logstash is terminated abnormally. If Logstash a normal shutdown as well as when Logstash is terminated abnormally. If Logstash
is restarted while events are in-flight, Logstash will attempt to deliver is restarted while events are in-flight, Logstash will attempt to deliver
messages stored in the persistent queue until delivery succeeds at least once. messages stored in the persistent queue until delivery succeeds at least once.
+
NOTE: You must set `queue.checkpoint.writes: 1` explicitly to guarantee
maximum durability for all input events. See <<durability-persistent-queues>>.
[[persistent-queues-limitations]] [[persistent-queues-limitations]]
==== Limitations of Persistent Queues ==== Limitations of Persistent Queues
@ -148,7 +151,7 @@ The following settings are available to let you tune durability:
* `queue.checkpoint.acks`: Logstash will checkpoint after this many events are acknowledged. This configuration controls the durability at the processing (filter + output) * `queue.checkpoint.acks`: Logstash will checkpoint after this many events are acknowledged. This configuration controls the durability at the processing (filter + output)
part of Logstash. part of Logstash.
Disk writes have a resource cost. Tuning the above values higher or lower will trade durability for performance. For instance, if you want to the strongest durability for all input events, you can set `queue.checkpoint.writes: 1`. Disk writes have a resource cost. Tuning the above values higher or lower will trade durability for performance. For instance, if you want the strongest durability for all input events, you can set `queue.checkpoint.writes: 1`.
The process of checkpointing is atomic, which means any update to the file is saved if successful. The process of checkpointing is atomic, which means any update to the file is saved if successful.