[DOC] Update math in PQ size example #16411
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Corrected PQ multiplication factor values for JSON documents and the example.
PREVIEW: https://logstash_bk_16411.docs-preview.app.elstc.co/guide/en/logstash/master/persistent-queues.html
Release notes
[rn:skip]
What does this PR do?
Corrects the math in a number of places in the documentation at https://www.elastic.co/guide/en/logstash/8.15/persistent-queues.html.
Why is it important/What is the impact to the user?
The numbers listed on the page did not align with the values when plugged into a calculator. This could lead to confusion when trying to replicate the math.
202/11 = 18.3636363636
637/6751 = 0.09435639165
792/58901 = 0.01344629123
1000 events per second * 1KB = 1000 KB per second
1000 KB *60 seconds per minute * 60 minutes per hour = 3,600,000 KB pr hour
3,600,000 / 1024 / 1024 = 3.4332275391 GB per hour
Round up as we are dealing with disk space to 3.5GB per hour.
3.5GB per hour * 12 hours * 1.10 default multiplication factor = 46.2 GB
Checklist
Author's Checklist
How to test this PR locally
Redo the math yourself.
Related issues
N/A
Use cases
User trying to determine how much disk space is needed for PQ and doing the calculations based on the documentation.
Screenshots
Logs
N/A