dir-layout.asciidoc 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. [[setup-dir-layout]]
  2. == Directory Layout
  3. The directory layout of an installation is as follows:
  4. [cols="<,<,<,<",options="header",]
  5. |=======================================================================
  6. |Type |Description |Default Location |Setting
  7. |*home* |Home of elasticsearch installation | | `path.home`
  8. |*bin* |Binary scripts including `elasticsearch` to start a node | `{path.home}/bin` |
  9. |*conf* |Configuration files including `elasticsearch.yml` |`{path.home}/config` |`path.conf`
  10. |*data* |The location of the data files of each index / shard allocated
  11. on the node. Can hold multiple locations. |`{path.home}/data`|`path.data`
  12. |*work* |Temporal files that are used by different nodes. |`{path.home}/work` |`path.work`
  13. |*logs* |Log files location |`{path.home}/logs` |`path.logs`
  14. |*plugins* |Plugin files location. Each plugin will be contained in a subdirectory. |`{path.home}/plugins` |`path.plugins`
  15. |=======================================================================
  16. The multiple data locations allows to stripe it. The striping is simple,
  17. placing whole files in one of the locations, and deciding where to place
  18. the file based on the value of the `index.store.distributor` setting:
  19. * `least_used` (default) always selects the directory with the most
  20. available space +
  21. * `random` selects directories at random. The probability of selecting
  22. a particular directory is proportional to amount of available space in
  23. this directory.
  24. Note, there are no multiple copies of the same data, in that, its
  25. similar to RAID 0. Though simple, it should provide a good solution for
  26. people that don't want to mess with RAID. Here is how it is configured:
  27. ---------------------------------
  28. path.data: /mnt/first,/mnt/second
  29. ---------------------------------
  30. Or the in an array format:
  31. ----------------------------------------
  32. path.data: ["/mnt/first", "/mnt/second"]
  33. ----------------------------------------