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:

  1. 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, 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" ...

Get Monitoring Elasticsearch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.