feat(helm): support custom vm.args via RELEASE_VM_ARGS#3735
Merged
Conversation
Adds an opt-in `vmArgs` value rendered into a ConfigMap, mounted at /etc/logflare/vm.args, and wired via RELEASE_VM_ARGS. Defaults to a set including `+Q 1048576`, which caps the BEAM's preallocated port table — needed on Kubernetes, where containerd runs pods with nofile=infinity and the VM would otherwise size the table from that (~2GB RSS at boot). Mounted with subPath so it coexists with the cert-files mount under /etc/logflare. A checksum/vm-args pod annotation rolls the Deployment when the args change. Set vmArgs to "" to fall back to the image's baked-in vm.args. Adds helm-unittest coverage.
Ziinc
approved these changes
Jul 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on
feat/helm(#3719). Adds custom Erlang VM args support to the chart — gap found comparing against Chase'slogflare-k8s/initsetup ino11y-team-tools.Why
Chase's setup sets
RELEASE_VM_ARGSwith+Q 1048576, and flags that on Kubernetes it's effectively required: containerd commonly runs pods withnofile=infinity, and without+Qthe BEAM sizes its preallocated port table from that limit → ~2GB RSS at boot.What
vmArgsvalue (default includes+Q 1048576). When set, it's rendered into a{{fullname}}-vm-argsConfigMap, mounted at/etc/logflare/vm.args(subPath, so it coexists with the cert-files mount under/etc/logflare), and wired viaRELEASE_VM_ARGS. SetvmArgs: ""to use the image's baked-in args.checksum/vm-argspod annotation rolls the Deployment when the args change.RELEASE_VM_ARGS, mount).