Elasticsearch¶
Architecture¶
ノードの種類:
- Master node ... クラスタで1台だけ
- Master-eligible node ... マスター候補。マスターが故障したら、この中から新たなマスターが選ばれる。
- Data node
- Coordinating node
- Coordinating only node
参考:
Kubernetes¶
スタートガイド:
参考:
Releases¶
v6.0¶
Breaking Changes: https://www.elastic.co/guide/en/elasticsearch/reference/6.0/breaking-changes-6.0.html
- 複数のmapping typesを持つindexは作れなくなった。
Mapping¶
JSONとかでデータを入れると良い感じにマッピングしてくれる印象。
Kibanaとか。
参考:
データ型¶
https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-types.html
数値型¶
https://www.elastic.co/guide/en/elasticsearch/reference/current/number.html
- 整数型: byte, short, integer, long
- 実数型:
scaled_float,half_float,float,double
運用¶
ヒープダンプでDiskを消費する¶
ElasticsearchのデフォルトのJVM起動引数に -XX:+HeapDumpOnOutOfMemoryError がついているそうで、メモリの少ない環境で動かしていると、Elasticsearchを起動したディレクトリに数GBサイズの java_pidXXXX.hprof ファイルが吐かれるようだ。
参考: