Skip to content

Notes on Elasticsearch

Anthony Fok edited this page Jun 10, 2021 · 2 revisions

Adding volume for data persistence?

From #115

Local exploration

foka@debian:~/OpenDRR/opendrr-api$ docker exec -it opendrr-api_elasticsearch-opendrr_1 /bin/bash
[root@afcf31ef2a42 elasticsearch]# pwd
/usr/share/elasticsearch
[root@afcf31ef2a42 elasticsearch]# du -csh *
16K	LICENSE.txt
524K	NOTICE.txt
8.0K	README.asciidoc
20M	bin
36K	config
12G	data
288M	jdk
35M	lib
50M	logs
163M	modules
4.0K	plugins
13G	total
[root@afcf31ef2a42 elasticsearch]# du -csh /usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/*/*/*
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/_state/retention-leases-41.st
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/_state/state-0.st
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_0.cfe
115M	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_0.cfs
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_0.si
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_1.cfe
115M	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_1.cfs
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_1.si
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_2.cfe
116M	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_2.cfs
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_2.si
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_3.cfe
116M	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_3.cfs
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_3.si
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_4.cfe
112M	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_4.cfs
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_4.si
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_5.cfe
40M	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_5.cfs
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_5.si
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_6.cfe
113M	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_6.cfs
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_6.si
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_7.cfe
108M	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_7.cfs
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_7.si
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_8.cfe
102M	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_8.cfs
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_8.si
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_9.cfe
85M	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_9.cfs
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_9.si
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_a.cfe
77M	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_a.cfs
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_a.si
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_b.cfe
832K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_b.cfs
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_b.si
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_c.cfe
90M	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_c.cfs
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_c.si
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_d.cfe
108M	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_d.cfs
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_d.si
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_e.cfe
18M	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_e.cfs
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/_e.si
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/segments_5
0	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/index/write.lock
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/translog/translog-22.tlog
4.0K	/usr/share/elasticsearch/data/nodes/0/indices/646u2c7RS5GsFQL_-UXCsQ/0/translog/translog.ckp
1.3G	total
[root@afcf31ef2a42 elasticsearch]# 

_0.cfe, _0.cfs, _0.si, etc., they are index file formats used in Apache Lucene, on which Elasticsearch is based. For more information, see, for example: