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
Learning Elastic Stack 6.0

You're reading from  Learning Elastic Stack 6.0

Product type Book
Published in Dec 2017
Publisher Packt
ISBN-13 9781787281868
Pages 434 pages
Edition 1st Edition
Languages
Authors (2):
Pranav Shukla Pranav Shukla
Profile icon Pranav Shukla
Sharath Kumar M N Sharath Kumar M N
Profile icon Sharath Kumar M N
View More author details

Table of Contents (19) Chapters

Title Page
Credits
Disclaimer
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
1. Introducing Elastic Stack 2. Getting Started with Elasticsearch 3. Searching-What is Relevant 4. Analytics with Elasticsearch 5. Analyzing Log Data 6. Building Data Pipelines with Logstash 7. Visualizing data with Kibana 8. Elastic X-Pack 9. Running Elastic Stack in Production 10. Building a Sensor Data Analytics Application 11. Monitoring Server Infrastructure

Modeling time series data


Often, we have a need to store time series data in Elasticsearch. Typically, one would create a single index to hold all documents. This typical approach of one big index to hold all documents has its own limitations, especially for the following reasons:

  • Scaling the index with an unpredictable volume over time
  • Changing the mapping over time
  • Automatically deleting older documents

Let's look at how each problem manifests itself when we choose a single monolithic index.

Scaling the index with unpredictable volume over time

One of the most difficult choices when creating an Elasticsearch cluster and its indices is deciding how many primary shards should be created and how many replica shards should be created.

Let's understand how the number of shards becomes important in the following sub sections:

  • Unit of parallelism in Elasticsearch:
    • The effect of the number of shards on the relevance score
    • The effect of the number of shards on the accuracy of aggregations

Unit of parallelism...

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}