+ All Categories
Home > Technology > Elasticsearch 5.0

Elasticsearch 5.0

Date post: 15-Apr-2017
Category:
Upload: matias-cascallares
View: 478 times
Download: 0 times
Share this document with a friend
27
1 Elastic 5.0 …so much awesomeness! Matias Cascallares, Solutions Architect [email protected]
Transcript
Page 1: Elasticsearch 5.0

1

Elastic 5.0…so much awesomeness!Matias Cascallares, Solutions [email protected]

Page 2: Elasticsearch 5.0

• Made in Argentina, living in Singapore

• Java / Python / NodeJS

• Working with/in open source for the last 8 years

• Using Elasticsearch since 2014, working for Elastic since 2015

• Meme lover

> whoami

Page 3: Elasticsearch 5.0

3

The Elastic Stack

Page 4: Elasticsearch 5.0

4

It’s Complicated

Page 5: Elasticsearch 5.0

5

5.0

Page 6: Elasticsearch 5.0

6

5.0

Page 7: Elasticsearch 5.0

7

Page 8: Elasticsearch 5.0

8

Store, Index & Analyze

• Resilient; designed for scale-out

• High availability; multitenancy

• Structured & unstructured data

Distributed& Scalable

DeveloperFriendly

Search & Analytics

• Schemaless

• Native JSON

• Client libraries

• Apache Lucene

• Real-time

• Full-text search

• Aggregations

• Geospatial

• Multilingual

Page 9: Elasticsearch 5.0

• Lower memory usage & improved cluster stability(new keyword type)

• Better scoring, faster, reduced hardware demand(Okapi BM25)

• IPv6 type support

Keyword

Text

String

Update To Lucene 6

Page 10: Elasticsearch 5.0

• Half the disk space

• Twice as fast to ingest

• 25% faster to search

• For numeric and geospatial fields only

• Scaled floats

• Technically a BKD Tree implementation

Lucene Demensional Fields

Page 11: Elasticsearch 5.0
Page 12: Elasticsearch 5.0

Some Benchmarks

Page 13: Elasticsearch 5.0

Some Benchmarks

Page 14: Elasticsearch 5.0

New Scripting Language: Painless

Page 15: Elasticsearch 5.0

• Aggregation and suggestion results are cached on shard level for instant returns after the first query.

• Combined with a new query rewrite, typical Kibana dashboards that use “last X days” type of queries will improve dramatically.

Shard Request Cache

Page 16: Elasticsearch 5.0

Rollover API

• Indices not based on time, but on size of the data.

• Even if your data sizes are not consistent per day, Elasticsearch will use constant index/shard sizes.

• Set up rules around automatic rollover to a new index, with aliases.

Page 17: Elasticsearch 5.0

Shrink API

• Reduce resources on immutable data

• Easily reduce the number of shards to free up resources

• Indices can be shrunk to a factor of its original number of shards

Page 18: Elasticsearch 5.0

• Low-level client

• Allows communication through HTTP/S

• Sync and Async semantics

• Connection handling

• Node discovery (sniffer module)

Java REST Client

Page 19: Elasticsearch 5.0

• Define processing pipelines right in the Elasticsearch cluster.

• Depending on use case, can simplify the architecture

• Has Processors for the most common actions.

• Combine it with Logstash when needed for power & flexibility.

Ingest Node

Page 20: Elasticsearch 5.0

Bootstrap Checks

Page 21: Elasticsearch 5.0

Bootstrap Checks

Page 22: Elasticsearch 5.0

Bootstrap Checks

• Detects if it’s running in production or development mode

• When running in production, it will now refuse to start under certain conditions that could seriously impact performance, stability, or data integrity

‒ Heap size (initial vs max)

‒ Memory lock (mlockall)

‒ Virtual memory size

‒ File descriptors

‒ Threads

‒ JVM in server mode

Page 23: Elasticsearch 5.0

More Goodies…

• Dots in field names was supported in 1.x, and was removed in 2.x. 5.0 support dots in field names again!

Page 24: Elasticsearch 5.0

More Goodies…

• New lock method increases small document indexing up to 15-20%

• New fsync method for increased ingestion speed

• refresh=[true|wait_for] for index, update, delete and bulk APIs

• Migration Helper

‒ Cluster checkup before upgrading

‒ Reindex helper for 1.x indices

‒ Deprecation logging

Page 25: Elasticsearch 5.0

Version Compatibility

IDX_v1x IDX_v2x IDX_v5x

ES 1.X

ES 2.X

ES 5.X

Page 26: Elasticsearch 5.0
Page 27: Elasticsearch 5.0

Website: www.elastic.co Products: https://www.elastic.co/products Forums: https://discuss.elastic.co/ Community: https://www.elastic.co/community/meetupsTwitter: @elastic

Thank You.


Recommended