dir-layout.asciidoc 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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/elasticseach | /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. | conf | Environment variables including heap size, file descriptors | {extract.path}/config
  57. | data | The location of the data files of each index / shard allocated
  58. on the node | {extract.path}/data
  59. | logs | Log files location | {extract.path}/logs
  60. | plugins | Plugin files location. Each plugin will be contained in a subdirectory | {extract.path}/plugins
  61. | repo | Shared file system repository locations. d| Not configured
  62. | script | Location of script files. | {extract.path}/config/scripts
  63. |=======================================================================