From 6af029fd9bf2418cc096886bebe786d3dae5db0e Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 5 Feb 2024 11:01:01 +0200 Subject: [PATCH] docs/Troubleshooting.md: clarify the section about GOGC tuning This is a follow-up for 487a94565b7999e33b4f6fe622da27e0a7b914c8 --- docs/Troubleshooting.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/Troubleshooting.md b/docs/Troubleshooting.md index 86fe9ec3b3..a2f307d1d9 100644 --- a/docs/Troubleshooting.md +++ b/docs/Troubleshooting.md @@ -296,11 +296,11 @@ There are the following most commons reasons for slow data ingestion in Victoria which exceeds the interval between ingested samples for the same time series (aka `scrape_interval`). See [this comment](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/3976#issuecomment-1476883183) for more details. -1. If you see constant and abnormally high CPU usage of VictoriaMetrics component, try checking `CPU spent on GC` panel - on the corresponding Grafana dasbhoard in `Resource usage` section. If percentage of CPU time spent on garbage collection - is high, then CPU usage of the component can be reduced in cost of memory by changing [GOGC](https://tip.golang.org/doc/gc-guide#GOGC) to higher values. - To change GOGC try setting `GOGC` environment variable to `100` or higher values. By default, VictoriaMetrics components - configured to run with `GOGC=30`. Please note, the higher is GOGC value, the higher will be memory consumption of the component. +1. If you see constant and abnormally high CPU usage of VictoriaMetrics component, check `CPU spent on GC` panel + on the corresponding [Grafana dasbhoard](https://grafana.com/orgs/victoriametrics) in `Resource usage` section. If percentage of CPU time spent on garbage collection + is high, then CPU usage of the component can be reduced at the cost of higher memory usage by changing [GOGC](https://tip.golang.org/doc/gc-guide#GOGC) environment variable + to higher values. By default VictoriaMetrics components use `GOGC=30`. Try running VictoriaMetrics components with `GOGC=100` and see whether this helps reducing CPU usage. + Note that higher `GOGC` values may increase memory usage. ## Slow queries