July 2016
Intermediate to advanced
180 pages
3h 16m
English
This section covers how to configure the number of shards, replicas, and various other index settings used by Marvel. By default, each Marvel index uses one shard and one replica:
curl -XGET "http://elasticsearch-marvel-01:9200/_template/marvel?pretty"
This will return a large JSON object. The settings that are important are marvel.order, marvel.template, and marvel.settings:
{ "marvel" : { "order" : 0, "template" : ".marvel*", "settings" : { "index.mapper.dynamic" : "true", "index.marvel.index_format" : "6", "index.analysis.analyzer.default.type" : "standard", "index.number_of_replicas" : "1", "index.number_of_shards" : "1", "index.analysis.analyzer.default.stopwords" ...
Read now
Unlock full access