mirror of
https://github.com/hanzoai/metrics.git
synced 2026-10-30 20:03:39 +00: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