dir-layout.asciidoc 4.0 KB

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