apache / apache/couchdb-helm

specify additional erlangFlags

Open
#184 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Mustache
Stars
55
Forks
68
PR merge metrics
No merged PRs in 30d

Description

/opt/couchdb/etc/vm.args. There is already provision to specify a couple of erlangFlags [here](https://github.com/apache/couchdb-helm/blob/a1dfd8b8a7e365ae1820b7ee1d57a05ca0fd18c5/couchdb/values.yaml#L213), but if I want to specify some emulator flags, from [here](https://www.erlang.org/doc/apps/erts/erl_cmd.html#emulator-flags), there is no guideline how it can be done. Let's say I would like to add these flags. How do I add them to the vm.args file?
- "-kernel inet_dist_listen_min 9100"
- "-kernel inet_dist_listen_max 9100"
- "-kernel error_logger silent"
- "-sasl sasl_error_logger false"
- "+K true"
- "+A 16"
- "+Bd -noinput"
- "+Q 134217727"
- "+P 134217727"
- "-smp enable"
- "-ssl session_lifetime 300"

Be ready for followup questions, and please respond in a timely manner. If we can't reproduce a bug or think a feature already exists, we might close your issue. If we're wrong, PLEASE feel free to reopen it and explain why.
--> sure.

**Describe the solution you'd like**
Be able to specify all the flags and options available [here ](https://www.erlang.org/doc/apps/erts/erl_cmd.html) in the `values.yaml` file under `erlangFlags` section.

**Describe alternatives you've considered**
An alternative is to use initContainer to overwrite the existing vm.args file post provision. To be able to modify vm.args flags via values.yaml file will be more convenient and ideal.

![Image](https://github.com/user-attachments/assets/c54c040f-ede8-4cab-bdb0-84db525aea0a)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with couchdb/values.yaml at the existing erlangFlags setting and trace the chart template that renders /opt/couchdb/etc/vm.args. Compare the current supported arguments with the Erlang erl_cmd options linked in the issue; done means the requested flags can be supplied through values.yaml and appear correctly in the rendered vm.args.

Written by the indexing model from the issue text.

Assessment

Tech stack
erlang, helm, kubernetes
Domain
devops, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.