dir-layout.asciidoc 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. |=======================================================================
  15. The multiple data locations allows to stripe it. The striping is simple,
  16. placing whole files in one of the locations, and deciding where to place
  17. the file based on the value of the `index.store.distributor` setting:
  18. * `least_used` (default) always selects the directory with the most
  19. available space +
  20. * `random` selects directories at random. The probability of selecting
  21. a particular directory is proportional to amount of available space in
  22. this directory.
  23. Note, there are no multiple copies of the same data, in that, its
  24. similar to RAID 0. Though simple, it should provide a good solution for
  25. people that don't want to mess with RAID. Here is how it is configured:
  26. ---------------------------------
  27. path.data: /mnt/first,/mnt/second
  28. ---------------------------------
  29. Or the in an array format:
  30. ----------------------------------------
  31. path.data: ["/mnt/first", "/mnt/second"]
  32. ---------------------------------