@Kostya Malich, Firstly, apologies for a delayed response.
Based on my comprehension of your scenario, I understand that , the vm.max_map_count parameter controls the maximum number of memory map areas a process may have, and Elasticsearch leverages a mmapfs directory by default to store its indices.
In Azure Web Apps, direct access to system-level configurations like vm.max_map_count is restricted as the underlying infrastructure is managed by Azure. Based on your requirement, to have more control on the host system, you may want to consider using Azure VM /or Azure Elasticsearch Service.
Check out these docs for more info:
Linux apps in App Service run in their own containers. You have root access to the container but no access to the host operating system. Likewise, for apps running in Windows containers, you have administrative access to the container but no access to the host operating system.
- Operating system functionality in Azure App Service
- Configure a custom container for Azure App Service
Similar discussion threads:
- set-vm-max-map-count-for-sonarqube-elastisearch-in-azure-container-apps
- https://github.com/Azure/azure-quickstart-templates/issues/7481
- elastic-cloud-elasticsearch-an-azure-native/ba-p/3939094
If the answer helped (pointed, you in the right direction) > please click Accept Answer - it will help users to find the answers quickly.