I have the following config:
config:
# most Elasticsearch configuration parameters are possible to set, e.g: node.attr.attr_name: attr_value
#node.roles: ["master", "data", "ingest", "ml"]
node.roles: ["master"]
script.painless.regex.enabled: true
http.cors.enabled: true
http.cors.allow-origin: "*"
#network.host: _site_ Forbidden: Configuration setting is reserved for internal use
#node.name: ${HOSTNAME} Forbidden: Configuration setting is reserved for internal use
bootstrap.memory_lock: true
#xpack.security.transport.ssl.enabled: true Forbidden: Configuration setting is reserved for internal use
cluster.max_shards_per_node: 10000
However, the bootstrap fails:
{"@timestamp":"2025-03-24T06:34:03.467Z", "log.level":"ERROR", "message":"node validation exception\n[1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch. For more information see [https://www.elastic.co/guide/en/elasticsearch/reference/8.17/bootstrap-checks.html]\nbootstrap check failure [1] of [1]: memory locking requested for elasticsearch process but memory is not locked; for more information see [https://www.elastic.co/guide/en/elasticsearch/reference/8.17/bootstrap-checks-memory-lock.html]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.bootstrap.Elasticsearch","elasticsearch.node.name":"khteh-es-es-master-0","elasticsearch.cluster.name":"khteh-es"}