可以指定多个数据路径,以便跨多个磁盘或位置传播数据,但是来自单个分片的所有文件都将写入同一路径。官网解读:
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: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:
--------------------------------- path.data: /mnt/first,/mnt/second ---------------------------------
Or in an array format:
----------------------------------path.data: ["/mnt/first", "/mnt/second"] -----------------------------
[Tip]To stripe shards across multiple disks, please use a RAID driver instead. https://www.elastic.co/guide/e ... .html
5 个回复
chzhty001
赞同来自:
yayg2008
赞同来自:
2,磁盘选择是shard级别,一旦shard分配,新数据就只会写到这个盘;如果有新的index,shard会分配到另外盘。
chzhty001
赞同来自:
laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net
赞同来自:
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: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:
--------------------------------- path.data: /mnt/first,/mnt/second ---------------------------------
Or in an array format:
----------------------------------path.data: ["/mnt/first", "/mnt/second"] -----------------------------
[Tip]To stripe shards across multiple disks, please use a RAID driver instead.
https://www.elastic.co/guide/e ... .html
chzhty001
赞同来自: