2013-08-28 19:24:34 -04:00
[[setup-dir-layout]]
== Directory Layout
The directory layout of an installation is as follows:
2014-06-16 06:52:23 -04:00
[cols="<h,<,<m,<m",options="header",]
2013-08-28 19:24:34 -04:00
|=======================================================================
2014-06-16 06:52:23 -04:00
| Type | Description | Default Location | Setting
| home | Home of elasticsearch installation. | | path.home
2013-08-28 19:24:34 -04:00
2014-06-16 06:52:23 -04:00
| bin | Binary scripts including `elasticsearch` to start a node. | {path.home}/bin | | conf | Configuration files including `elasticsearch.yml` | {path.home}/config | path.conf
2013-08-28 19:24:34 -04:00
2014-06-16 06:52:23 -04:00
| data | The location of the data files of each index / shard allocated
on the node. Can hold multiple locations. | {path.home}/data| path.data
2013-08-28 19:24:34 -04:00
2014-06-16 06:52:23 -04:00
| logs | Log files location. | {path.home}/logs | path.logs
2013-08-28 19:24:34 -04:00
2014-06-16 06:52:23 -04:00
| plugins | Plugin files location. Each plugin will be contained in a subdirectory. | {path.home}/plugins | path.plugins
2015-05-13 20:03:50 -04:00
2015-08-15 10:20:06 -04:00
| 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
| script | Location of script files. | {path.conf}/scripts | path.script
2015-05-13 20:03:50 -04:00
2013-08-28 19:24:34 -04:00
|=======================================================================
2015-04-24 04:53:03 -04:00
Multiple `data` paths may be specified, in order to spread data across
multiple disks or locations, but all of the files from a single shard will be
written to the same path. This can be configured as follows:
2013-08-28 19:24:34 -04:00
2015-04-24 04:53:03 -04:00
---------------------------------
path.data: /mnt/first,/mnt/second
---------------------------------
2013-08-28 19:24:34 -04:00
2015-04-24 04:53:03 -04:00
Or in an array format:
2013-08-28 19:24:34 -04:00
2015-04-24 04:53:03 -04:00
----------------------------------------
path.data: ["/mnt/first", "/mnt/second"]
----------------------------------------
2014-06-16 06:52:23 -04:00
2015-04-24 04:53:03 -04:00
TIP: To stripe shards across multiple disks, please use a RAID driver
instead.
2014-06-16 06:52:23 -04:00
[float]
2014-08-18 07:19:30 -04:00
[[default-paths]]
2014-06-16 06:52:23 -04:00
=== Default Paths
2014-11-02 18:36:06 -05:00
Below are the default paths that elasticsearch will use, if not explicitly changed.
2014-06-16 06:52:23 -04:00
2014-08-18 07:38:28 -04:00
[float]
2014-06-16 06:52:23 -04:00
==== deb and rpm
[cols="<h,<,<m,<m",options="header",]
|=======================================================================
| Type | Description | Location Debian/Ubuntu | Location RHEL/CentOS
| home | Home of elasticsearch installation. | /usr/share/elasticsearch | /usr/share/elasticsearch
| bin | Binary scripts including `elasticsearch` to start a node. | /usr/share/elasticsearch/bin | /usr/share/elasticsearch/bin
| conf | Configuration files `elasticsearch.yml` and `logging.yml`. | /etc/elasticsearch | /etc/elasticsearch
| conf | Environment variables including heap size, file descriptors. | /etc/default/elasticseach | /etc/sysconfig/elasticsearch
| data | The location of the data files of each index / shard allocated
on the node. | /var/lib/elasticsearch/data | /var/lib/elasticsearch
| logs | Log files location | /var/log/elasticsearch | /var/log/elasticsearch
| plugins | Plugin files location. Each plugin will be contained in a subdirectory. | /usr/share/elasticsearch/plugins | /usr/share/elasticsearch/plugins
2015-08-15 10:20:06 -04:00
| repo | Shared file system repository locations. d| Not configured d| Not configured
| script | Location of script files. | /etc/elasticsearch/scripts | /etc/elasticsearch/scripts
2014-06-16 06:52:23 -04:00
|=======================================================================
2014-08-18 07:38:28 -04:00
[float]
2014-06-16 06:52:23 -04:00
==== zip and tar.gz
[cols="<h,<,<m",options="header",]
|=======================================================================
| Type | Description | Location
| home | Home of elasticsearch installation | {extract.path}
| bin | Binary scripts including `elasticsearch` to start a node | {extract.path}/bin
| conf | Configuration files `elasticsearch.yml` and `logging.yml` | {extract.path}/config
| conf | Environment variables including heap size, file descriptors | {extract.path}/config
| data | The location of the data files of each index / shard allocated
on the node | {extract.path}/data
| logs | Log files location | {extract.path}/logs
| plugins | Plugin files location. Each plugin will be contained in a subdirectory | {extract.path}/plugins
2015-08-15 10:20:06 -04:00
| repo | Shared file system repository locations. d| Not configured
| script | Location of script files. | {extract.path}/config/scripts
2014-06-16 06:52:23 -04:00
|=======================================================================