mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-17 08:36:55 +03:00
Previously, if user defined value for `memory.allowedBytes` flag exceeded system memory limit, remaining memory could take negative value. It results into incorrect memory auto-detect calculations for various components. Such as vmstorage unique timeseries limit and parts size. This commit adds negative value check. And also logs system memory limit at start-up of vm components. Fixes https://github.com/VictoriaMetrics/VictoriaMetrics/issues/10083