codecentric AG 17.12.2014 Seite 1
Essential Elasticsearch
Performance Tips
codecentric AG
BULKING
17.12.2014 Seite 2
Why doesn‘t anyone bulk?!?
codecentric AG
INDEXING SPEED
17.12.2014 Seite 3
Change your configuration during important events
codecentric AG
MAPPING
17.12.2014 Seite 4
Y‘all need to think more abour your mappings
codecentric AG
FILTERS AND CACHES
17.12.2014 Seite 5
Filters instead of Queries as often as possible
codecentric AG
FILTERS ORDERING
17.12.2014 Seite 6
What comes first? The Chicken or the Egg?The Query or the Filter?
codecentric AG
QUERIES
17.12.2014 Seite 7
So much room for optimizations!
codecentric AG
AGGREGATIONS
17.12.2014 Seite 8
Aggregations are expensive!
codecentric AG
DOC VALUES
17.12.2014 Seite 9
Store field data on disk instead of on the heap
codecentric AG
UPDATES
17.12.2014 Seite 10
There‘s no such thing as an update
codecentric AG
IDENTIFIER
17.12.2014 Seite 11
Use friendly IDs !
codecentric AG
SHARDING
17.12.2014 Seite 12
Choose a sharding strategy!
codecentric AG
ROUTING
17.12.2014 Seite 13
Avoid distibuted searches by routing
codecentric AG
CLIENTS
17.12.2014 Seite 14
Use the right client!
codecentric AG
SERVER CONFIGURATION
17.12.2014 Seite 15
There are plenty of essential configurations
codecentric AG
FINAL WORDS
17.12.2014 Seite 16
Tuning: Measure, don‘t guess!
codecentric AG
FINAL WORDS
17.12.2014 Seite 17
One change at a time!
codecentric AG
CHRISTIAN UHL
[email protected]
@CHRISUHLCC
HTTPS://BLOG.CODECENTRIC.DE/
QUESTIONS?
17.12.2014 Seite 18
codecentric AG
• HTTPS://WWW.FLICKR.COM/PHOTOS/TURATTI/6322618398/
• HTTPS://WWW.FLICKR.COM/PHOTOS/BILLDPIX/15294289120/
• HTTPS://WWW.FLICKR.COM/PHOTOS/63541243@N04/14214457280/
• HTTPS://WWW.FLICKR.COM/PHOTOS/AMORTIZE/527435776/
• HTTPS://WWW.FLICKR.COM/PHOTOS/JAREDZIMMERMAN/1392753867/
• HTTPS://WWW.FLICKR.COM/PHOTOS/JONSEIDMAN1988/6155279037/
• HTTPS://WWW.FLICKR.COM/PHOTOS/FORNAL/424716302/
• HTTPS://WWW.FLICKR.COM/PHOTOS/EDYSON/107902861
• HTTPS://WWW.FLICKR.COM/PHOTOS/JMCPHOTOS/2131206015/
• HTTPS://WWW.FLICKR.COM/PHOTOS/AUTOWITCH/4271929/
• HTTPS://WWW.FLICKR.COM/PHOTOS/MRMUSKRAT/3637703614/
• HTTPS://WWW.FLICKR.COM/PHOTOS/PHOTOLIBRARIAN/7578139852/
BILDNACHWEISE
17.12.2014 Seite 19