Marvel index configuration
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:
To view the default settings used by Marvel, run:
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
, andmarvel.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" : "_none_" }, ... }
For large Marvel clusters, consider increasing the number of shards to no more than the number of hosts in your cluster for optimal performance. For example, for a four-node...