wiki'd

by JoKeru

ElasticSearch Tunning for LogStash

[cc lang='bash']
# create ext4 fs on /dev/sdb1
\$ mkfs.ext4 /dev/sdb1
# enable writeback mode, this mode will typically provide the best ext4 performance
\$ tune2fs -o journal_data_writeback /dev/sdb1
# delete has_journal option
\$ tune2fs -O \^has_journal /dev/sdb1
# required fsck
\$ e2fsck -f /dev/sdb1
# check fs options
\$ dumpe2fs /dev/sdb1 | less
# add to fstab
\$ echo "/dev/sdb1 /var/lib/elasticsearch ext4 defaults,data=writeback,noatime 0 0" >> /etc/fstab
# mount
\$ mkdir /var/lib/elasticsearch
\$ mount /var/lib/elasticsearch
[/cc]

https://github.com/jordansissel/experiments/tree/master/elasticsearch/disk

https://github.com/logstash/logstash/wiki/Elasticsearch-Storage-Optimization

Comments