Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Monitoring Elasticsearch

You're reading from  Monitoring Elasticsearch

Product type Book
Published in Jul 2016
Publisher Packt
ISBN-13 9781784397807
Pages 180 pages
Edition 1st Edition
Languages
Authors (3):
Dan Noble Dan Noble
Profile icon Dan Noble
Pulkit Agrawal Pulkit Agrawal
Mahmoud Lababidi Mahmoud Lababidi
View More author details

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" : "_none_"
        },
        ...
    }
    
  2. 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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}