path-settings.asciidoc 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. [[path-settings]]
  2. [discrete]
  3. === Path settings
  4. For <<targz,macOS `.tar.gz`>>, <<targz,Linux `.tar.gz`>>, and
  5. <<zip-windows,Windows `.zip`>> installations, {es} writes data and logs to the
  6. respective `data` and `logs` subdirectories of `$ES_HOME` by default.
  7. However, files in `$ES_HOME` risk deletion during an upgrade.
  8. In production, we strongly recommend you set the `path.data` and `path.logs` in
  9. `elasticsearch.yml` to locations outside of `$ES_HOME`.
  10. TIP: <<docker,Docker>>, <<deb,Debian>>, <<rpm,RPM>>, <<brew,macOS Homebrew>>,
  11. and <<windows,Windows `.msi`>> installations write data and log to locations
  12. outside of `$ES_HOME` by default.
  13. Supported `path.data` and `path.logs` values vary by platform:
  14. include::{es-repo-dir}/tab-widgets/code.asciidoc[]
  15. include::{es-repo-dir}/tab-widgets/customize-data-log-path-widget.asciidoc[]
  16. If needed, you can specify multiple paths in `path.data`. {es} stores the node's
  17. data across all provided paths but keeps each shard's data on the same path.
  18. WARNING: {es} does not balance shards across a node's data paths. High disk
  19. usage in a single path can trigger a <<disk-based-shard-allocation,high disk
  20. usage watermark>> for the entire node. If triggered, {es} will not add shards to
  21. the node, even if the node’s other paths have available disk space. If you need
  22. additional disk space, we recommend you add a new node rather than additional
  23. data paths.
  24. include::{es-repo-dir}/tab-widgets/multi-data-path-widget.asciidoc[]