dir-layout.asciidoc 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. [[setup-dir-layout]]
  2. == Directory Layout
  3. The directory layout of an installation is as follows:
  4. [cols="<h,<,<m,<m",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 | | conf | Configuration files including `elasticsearch.yml` | {path.home}/config | path.conf
  9. | data | The location of the data files of each index / shard allocated
  10. on the node. Can hold multiple locations. | {path.home}/data| path.data
  11. | logs | Log files location. | {path.home}/logs | path.logs
  12. | plugins | Plugin files location. Each plugin will be contained in a subdirectory. | {path.home}/plugins | path.plugins
  13. |=======================================================================
  14. The multiple data locations allows to stripe it. The striping is simple,
  15. placing whole files in one of the locations, and deciding where to place
  16. the file based on the value of the `index.store.distributor` setting:
  17. * `least_used` (default) always selects the directory with the most
  18. available space +
  19. * `random` selects directories at random. The probability of selecting
  20. a particular directory is proportional to amount of available space in
  21. this directory.
  22. Note, there are no multiple copies of the same data, in that, its
  23. similar to RAID 0. Though simple, it should provide a good solution for
  24. people that don't want to mess with RAID. Here is how it is configured:
  25. ---------------------------------
  26. path.data: /mnt/first,/mnt/second
  27. ---------------------------------
  28. Or the in an array format:
  29. ----------------------------------------
  30. path.data: ["/mnt/first", "/mnt/second"]
  31. ----------------------------------------
  32. [float]
  33. [[default-paths]]
  34. === Default Paths
  35. Below are the default paths that elasticsearch will use, if not explictly changed.
  36. [float]
  37. ==== deb and rpm
  38. [cols="<h,<,<m,<m",options="header",]
  39. |=======================================================================
  40. | Type | Description | Location Debian/Ubuntu | Location RHEL/CentOS
  41. | home | Home of elasticsearch installation. | /usr/share/elasticsearch | /usr/share/elasticsearch
  42. | bin | Binary scripts including `elasticsearch` to start a node. | /usr/share/elasticsearch/bin | /usr/share/elasticsearch/bin
  43. | conf | Configuration files `elasticsearch.yml` and `logging.yml`. | /etc/elasticsearch | /etc/elasticsearch
  44. | conf | Environment variables including heap size, file descriptors. | /etc/default/elasticseach | /etc/sysconfig/elasticsearch
  45. | data | The location of the data files of each index / shard allocated
  46. on the node. | /var/lib/elasticsearch/data | /var/lib/elasticsearch
  47. | logs | Log files location | /var/log/elasticsearch | /var/log/elasticsearch
  48. | plugins | Plugin files location. Each plugin will be contained in a subdirectory. | /usr/share/elasticsearch/plugins | /usr/share/elasticsearch/plugins
  49. |=======================================================================
  50. [float]
  51. ==== zip and tar.gz
  52. [cols="<h,<,<m",options="header",]
  53. |=======================================================================
  54. | Type | Description | Location
  55. | home | Home of elasticsearch installation | {extract.path}
  56. | bin | Binary scripts including `elasticsearch` to start a node | {extract.path}/bin
  57. | conf | Configuration files `elasticsearch.yml` and `logging.yml` | {extract.path}/config
  58. | conf | Environment variables including heap size, file descriptors | {extract.path}/config
  59. | data | The location of the data files of each index / shard allocated
  60. on the node | {extract.path}/data
  61. | logs | Log files location | {extract.path}/logs
  62. | plugins | Plugin files location. Each plugin will be contained in a subdirectory | {extract.path}/plugins
  63. |=======================================================================