OBSDOCS-2755: Document when to resize vs scale individual Loki components#114433
OBSDOCS-2755: Document when to resize vs scale individual Loki components#114433johnwilkins wants to merge 4 commits into
Conversation
…ents Adds comprehensive guidance on choosing between changing the LokiStack t-shirt size vs scaling individual component replicas. New Module: modules/loki-sizing-vs-component-scaling.adoc - Explains when to change overall size (log volume changes, proportional scaling) - Explains when to scale individual components (workload-specific optimization) - Provides decision guide table with scenarios and recommendations - Documents component replica override syntax with examples - Warns that replica overrides persist across size changes This addresses the final gap from OBSDOCS-2755. The ticket's other requirements were already covered by OBSDOCS-3312 (baseline sizing) and OBSDOCS-3530 (per-component resource tables). Coverage: ✅ How to estimate initial size (OBSDOCS-3312) ✅ How to calculate data transfer/ingestion rate (OBSDOCS-3312) ✅ When to resize based on metrics (OBSDOCS-3312) ✅ When to scale components vs changing size (THIS PR) Related: https://redhat.atlassian.net/browse/OBSDOCS-2755 Signed-off-by: John Wilkins <jowilkin@redhat.com>
|
@johnwilkins: This pull request references OBSDOCS-2755 which is a valid jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
Changes: 1. Updated Prometheus query to use loki_distributor_bytes_received_total - More accurate: measures at Loki entry point (not collector) - Returns GB/day directly (no conversion needed) - Uses 24h window for better daily average 2. Added KCS article references to Additional Resources - How to estimate LokiStack deployment sizing (7092615) - How to estimate LokiStack storage size (7092616) Old query (collector-side): sum by (component_name) (rate(vector_component_sent_bytes_total...)) Required manual conversion from bytes/sec to GB/day New query (Loki-side): sum(increase(loki_distributor_bytes_received_total[24h])) / 1024^3 Returns GB/day directly, more accurate for sizing decisions Benefits: - Simpler for administrators (no conversion math) - More accurate (measures what Loki actually receives) - Aligned with KCS article guidance - 24h window smooths out daily variations Signed-off-by: John Wilkins <jowilkin@redhat.com>
Vale flagged: "Content other than links cannot be mapped to DITA related-links" Removed "(Red Hat Knowledgebase)" text from KCS article links to comply with DITA conversion requirements. Before: link:...[Title] (Red Hat Knowledgebase) After: link:...[Title] Vale now shows 0 errors, 0 warnings. Signed-off-by: John Wilkins <jowilkin@redhat.com>
|
🤖 Tue Jun 30 22:40:56 - Prow CI generated the docs preview: |
The xref used the wrong context suffix. The section ID expands to calculating-sizing-after-installation_loki-deployment-sizing (the assembly context), not _understanding-loki-sizing (the module name). Error: "Unknown ID or title calculating-sizing-after-installation_understanding-loki-sizing" Fixed: Changed xref to use correct context _loki-deployment-sizing Signed-off-by: John Wilkins <jowilkin@redhat.com>
|
@johnwilkins: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Summary
Completes OBSDOCS-2755 by documenting when to change the LokiStack t-shirt size vs scaling individual component replicas, and improves the sizing calculation method based on KCS article best practices.
Releases: 6.6, 6.5, 6.4
Problem
Administrators needed:
Solution
1. New Module: Sizing vs Component Scaling
Created:
modules/loki-sizing-vs-component-scaling.adocProvides:
2. Improved Sizing Calculation
Updated:
modules/understanding-loki-sizing.adocOld Query (Collector-side):
Required manual conversion from bytes/sec → GB/day
New Query (Loki-side):
Returns GB/day directly, more accurate
Benefits:
3. KCS Article References
Added to Additional Resources:
Ticket Coverage
OBSDOCS-2755 requested four things:
Decision Guide Example
The new guide helps users choose:
Technical Details
Documents
spec.template.<component>.replicasAPI for per-component scaling:Warning included: Overrides persist across size changes.
Related
Signed-off-by: John Wilkins jowilkin@redhat.com