dir-layout.asciidoc 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. | repo | Shared file system repository locations. Can hold multiple locations. A file system repository can be placed in to any subdirectory of any directory specified here. | empty | path.repo
  14. |=======================================================================
  15. Multiple `data` paths may be specified, in order to spread data across
  16. multiple disks or locations, but all of the files from a single shard will be
  17. written to the same path. This can be configured as follows:
  18. ---------------------------------
  19. path.data: /mnt/first,/mnt/second
  20. ---------------------------------
  21. Or in an array format:
  22. ----------------------------------------
  23. path.data: ["/mnt/first", "/mnt/second"]
  24. ----------------------------------------
  25. TIP: To stripe shards across multiple disks, please use a RAID driver
  26. instead.
  27. [float]
  28. [[default-paths]]
  29. === Default Paths
  30. Below are the default paths that elasticsearch will use, if not explicitly changed.
  31. [float]
  32. ==== deb and rpm
  33. [cols="<h,<,<m,<m",options="header",]
  34. |=======================================================================
  35. | Type | Description | Location Debian/Ubuntu | Location RHEL/CentOS
  36. | home | Home of elasticsearch installation. | /usr/share/elasticsearch | /usr/share/elasticsearch
  37. | bin | Binary scripts including `elasticsearch` to start a node. | /usr/share/elasticsearch/bin | /usr/share/elasticsearch/bin
  38. | conf | Configuration files `elasticsearch.yml` and `logging.yml`. | /etc/elasticsearch | /etc/elasticsearch
  39. | conf | Environment variables including heap size, file descriptors. | /etc/default/elasticseach | /etc/sysconfig/elasticsearch
  40. | data | The location of the data files of each index / shard allocated
  41. on the node. | /var/lib/elasticsearch/data | /var/lib/elasticsearch
  42. | logs | Log files location | /var/log/elasticsearch | /var/log/elasticsearch
  43. | plugins | Plugin files location. Each plugin will be contained in a subdirectory. | /usr/share/elasticsearch/plugins | /usr/share/elasticsearch/plugins
  44. |=======================================================================
  45. [float]
  46. ==== zip and tar.gz
  47. [cols="<h,<,<m",options="header",]
  48. |=======================================================================
  49. | Type | Description | Location
  50. | home | Home of elasticsearch installation | {extract.path}
  51. | bin | Binary scripts including `elasticsearch` to start a node | {extract.path}/bin
  52. | conf | Configuration files `elasticsearch.yml` and `logging.yml` | {extract.path}/config
  53. | conf | Environment variables including heap size, file descriptors | {extract.path}/config
  54. | data | The location of the data files of each index / shard allocated
  55. on the node | {extract.path}/data
  56. | logs | Log files location | {extract.path}/logs
  57. | plugins | Plugin files location. Each plugin will be contained in a subdirectory | {extract.path}/plugins
  58. |=======================================================================