sysconfig-file.asciidoc 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. [horizontal]
  2. `JAVA_HOME`::
  3. Set a custom Java path to be used.
  4. `MAX_OPEN_FILES`::
  5. Maximum number of open files, defaults to `65536`.
  6. `MAX_LOCKED_MEMORY`::
  7. Maximum locked memory size. Set to `unlimited` if you use the
  8. `bootstrap.memory_lock` option in elasticsearch.yml.
  9. `MAX_MAP_COUNT`::
  10. Maximum number of memory map areas a process may have. If you use `mmapfs`
  11. as index store type, make sure this is set to a high value. For more
  12. information, check the
  13. https://github.com/torvalds/linux/blob/master/Documentation/sysctl/vm.txt[linux kernel documentation]
  14. about `max_map_count`. This is set via `sysctl` before starting
  15. elasticsearch. Defaults to `262144`.
  16. `LOG_DIR`::
  17. Log directory, defaults to `/var/log/elasticsearch`.
  18. `DATA_DIR`::
  19. Data directory, defaults to `/var/lib/elasticsearch`.
  20. `CONF_DIR`::
  21. Configuration file directory (which needs to include `elasticsearch.yml`
  22. and `log4j2.properties` files), defaults to `/etc/elasticsearch`.
  23. `ES_JAVA_OPTS`::
  24. Any additional JVM system properties you may want to apply.
  25. `RESTART_ON_UPGRADE`::
  26. Configure restart on package upgrade, defaults to `false`. This means you
  27. will have to restart your elasticsearch instance after installing a
  28. package manually. The reason for this is to ensure, that upgrades in a
  29. cluster do not result in a continuous shard reallocation resulting in high
  30. network traffic and reducing the response times of your cluster.