Open Search configuration #179
-
Hi, In the OpenSearch documentation, it is mentioned under important setting, to set the vm.max_map_count=262144. In a docker environment, this must be set on the host machine. In Kubernetes, I assume it must be set on the node. Is this setting obsolete with the operator or do I have other possibilities to apply this setting? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @Mezzenine. The cluster CRD has the field |
Beta Was this translation helpful? Give feedback.
-
What @swoehrl-mw said is absolutely the right path. However, if you run into permissions issues of init containers having access to alter scale set host attributes like vm.max_map_count, you can automate that change as part of the scale set itself. I have done this in my terraform build and apply it to every scale set that will run OS.
You can find details on how to customize your node configuration for Azure AKS here: https://learn.microsoft.com/en-us/azure/aks/custom-node-configuration |
Beta Was this translation helpful? Give feedback.
-
I am building a OpenSearch cluster in GKE Autopilot mode, I have set VMMaxmapcount "true" and build custom base image for init-helper and specified in cluster spec. I am seeing a permission issue for creating resources using init-helper container as it requires privileged access. My google admin team is suggesting to deploy using daemonset to overcome this issue. I see OpenSearch operator is using statefulset for deployment. May I know which part of the code I need to change to do daemonset deployment. Or is there an workaround to configure init-container sysctl commands in the spec. let me know if you need any further information. Please help. Thanks |
Beta Was this translation helpful? Give feedback.
Hi @Mezzenine. The cluster CRD has the field
spec.general.setVMMaxMapCount
, if it is set totrue
then the operator will add an init container to the opensearch pods to setvm.max_map_count
as the documentation describes.Hope this helps.