エンジニアリング

ElasticsearchとSSDのTRIMの関係

TRIM?

ElasticElasticsearch :

recurring-elasticsearch-slowness

2016/9/262016/10/32016/10/10?

2016/09/26Monday
2016/10/03Monday
2016/10/10Monday

OS 調2 SSD RAID-0 Ubuntu 16.04 Ubuntu Server 16.04 LTS cron.weekly fstrim

vagrant@ubuntu1604vbox:/etc/cron.weekly$ ls
fstrim  man-db

TRIM

Wikipedia :

trim ATA TRIMSCSI UNMAP使 OS (SSD)

SSD (NAND) 3 SSD :

  1. 1
  2. /
  3. SSD !

SSD IO OS

OS GC SSD OS TRIM OS 2 :

  • GC OS
  • GC

SSD SSD fstrim crontab Ubuntu

2016/10/17 fstrim ccronjob :

elasticsearch-performance-after-trim

TRIM 10 PMCTRIM 1 TRIM

ten-rally-benchmark-iterations-notrim

CentOS-7 fstrim.service systemd LVM 使/etc/lvm/lvm.conf issue_discards 1 dm-crypt Linux 使lvm/dm-crypt TRIM ArchLinux wiki

SSD TRIM Amazon Instances Instance Store-Backed Linux AMI

Elasticsearch IO SSD TRIM TRIM 調 !