specify additional erlangFlags
/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 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.
from what I understood by this comment: https://github.com/apache/couchdb-docker/issues/106#issuecomment-421175854:
the ERL_FLAGS environment variable is not specific to Kubernetes; the Erlang VM will respect it anywhere. The Kube-specific bit was the automated translation of Helm chart YAML entries into ERL_FLAGS
and documentation here: https://github.com/apache/couchdb-docker?tab=readme-ov-file#configuring-couchdb
Erlang Environment Variables like ERL_FLAGS will be used by Erlang itself.
I think, I might be able to set erlangFlags in values.yaml file like this:
erlangFlags:
name: couchdb
setcookie: monster99
smp: enable
+P: 134217727
+Q: 134217727