elasticsearch.j2 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. ################################
  2. # Elasticsearch
  3. ################################
  4. # Elasticsearch home directory
  5. #ES_HOME=/usr/share/elasticsearch
  6. # Elasticsearch configuration directory
  7. #CONF_DIR=/etc/elasticsearch
  8. # Elasticsearch configuration file
  9. #CONF_FILE=$CONF_DIR/elasticsearch.yml
  10. # Elasticsearch data directory
  11. #DATA_DIR=/var/lib/elasticsearch
  12. # Elasticsearch logs directory
  13. #LOG_DIR=/var/log/elasticsearch
  14. # Elasticsearch work directory
  15. #WORK_DIR=/tmp/elasticsearch
  16. # Elasticsearch PID directory
  17. #PID_DIR=/var/run/elasticsearch
  18. # Heap size defaults to 256m min, 1g max
  19. # Set ES_HEAP_SIZE to 50% of available RAM, but no more than 31g
  20. ES_HEAP_SIZE=2g
  21. # Heap new generation
  22. #ES_HEAP_NEWSIZE=
  23. # Maximum direct memory
  24. #ES_DIRECT_SIZE=
  25. # Additional Java OPTS
  26. #ES_JAVA_OPTS=
  27. # Configure restart on package upgrade (true, every other setting will lead to not restarting)
  28. #ES_RESTART_ON_UPGRADE=true
  29. # Path to the GC log file
  30. #ES_GC_LOG_FILE=/var/log/elasticsearch/gc.log
  31. ################################
  32. # Elasticsearch service
  33. ################################
  34. # SysV init.d
  35. #
  36. # When executing the init script, this user will be used to run the elasticsearch service.
  37. # The default value is 'elasticsearch' and is declared in the init.d file.
  38. # Note that this setting is only used by the init script. If changed, make sure that
  39. # the configured user can read and write into the data, work, plugins and log directories.
  40. # For systemd service, the user is usually configured in file /usr/lib/systemd/system/elasticsearch.service
  41. #ES_USER=elasticsearch
  42. #ES_GROUP=elasticsearch
  43. ################################
  44. # System properties
  45. ################################
  46. # Specifies the maximum file descriptor number that can be opened by this process
  47. # When using Systemd, this setting is ignored and the LimitNOFILE defined in
  48. # /usr/lib/systemd/system/elasticsearch.service takes precedence
  49. #MAX_OPEN_FILES=65535
  50. # The maximum number of bytes of memory that may be locked into RAM
  51. # Set to "unlimited" if you use the 'bootstrap.mlockall: true' option
  52. # in elasticsearch.yml (ES_HEAP_SIZE must also be set).
  53. # When using Systemd, the LimitMEMLOCK property must be set
  54. # in /usr/lib/systemd/system/elasticsearch.service
  55. #MAX_LOCKED_MEMORY=unlimited
  56. # Maximum number of VMA (Virtual Memory Areas) a process can own
  57. # When using Systemd, this setting is ignored and the 'vm.max_map_count'
  58. # property is set at boot time in /usr/lib/sysctl.d/elasticsearch.conf
  59. #MAX_MAP_COUNT=262144