VictoriaMetrics: VictoriaMetrics doesn't respect memory limit inside LXC container

HI! I try limit cache of vm with value 8, and got: panic: FATAL: -memory.allowedPercent must be in the range [10...200]; got 8.000000 In my case VictoriaMetrics’s instances running in lxc container’s, and lxc containers are limited with lxc.cgroup.memory.limit_in_bytes, and I’m afraid that VictoriaMetrics get down (and what will really happend in this case?), if VictoriaMetrics exceed limit. But host server have a lot of RAM (256Gb), and limit even 10% it’s too much (container is allowed to use more less). Can you remove the restriction or make it not relative, but absolute in gb/mb?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16

Commits related to this issue

Most upvoted comments

Try building VictoriaMetrics from the latest commit and verifying whether it properly determines memory limit inside LXC container.

# curl http://localhost:8428/metrics 2>/dev/null | grep ‘vm_app_version|vm_allowed_memory_bytes’ vm_app_version{version=“victoria-metrics-20190701-111523-heads-master-0-gc7034fc”} 1 vm_allowed_memory_bytes 3006477107

Looks good! Thank you