Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
How to reindex 1B documents in 1 hour?
Search
Qaiser Abbasi
December 13, 2018
Business
830
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
How to reindex 1B documents in 1 hour?
Talk given at
www.meetup.com/Elasticsearch-Berlin/
Qaiser Abbasi
December 13, 2018
More Decks by Qaiser Abbasi
See All by Qaiser Abbasi
Java User Group Frankfurt – CDI BeanTesting
qabbasi
0
72
Testing-Darwinismus
qabbasi
0
80
Other Decks in Business
See All in Business
事業部でのAI推進とAIネイティブレベルの話
fotoyuma
0
420
<DevLOVE関西>関係性が育つ前にフィードバックを届ける ~関係性が育つのを待てないとき、どう渡すのか~
emi0726
4
210
いままで会ってきた「仕事ができる人」― 共通していた5つの特徴とAI時代の活かし方
yamadagenki
0
360
株式会社Saleshub 事業概要資料
saleshubinc
1
120
「人を育てる」ことは「待ちこがれる」ことである
kawanotron
0
290
堅牢でスケーラブルな働き方を構築する技術
ikuodanaka
3
1.3k
顧客の信頼を感じるのは、どんなときだろう? / When do you feel a customer's trust?
tanaken0515
0
600
株式会社ジグザグ_新規投資家向け資料_2026年7月
zig_zag
0
1.7k
株式会社ナビタイムジャパン 会社紹介資料2026
navitimejapan
PRO
1
600
キャシュモグループ会社紹介|未経験から財務・経営のプロを目指す
cashmo
1
130
Playwright × AI Agent でE2Eテストはどう変わるか AI駆動テストの可能性と実用検証の結果 _0721
findy_eventslides
2
340
AWS Summit Taipei 2026: Decomposing Ontology and Agentic AI - Using Amazon Bedrock to Bring Living Water to Manufacturing ERP
dwchiang
0
470
Featured
See All Featured
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
490
GitHub's CSS Performance
jonrohan
1033
470k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
550
Statistics for Hackers
jakevdp
799
230k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.6k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
3
1.1k
It's Worth the Effort
3n
188
29k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
300
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
170
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.1k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
4.4k
Practical Orchestrator
shlominoach
191
12k
Transcript
Rene Treffer, Qaiser Abbasi How to reindex 1B documents in
1 hour?
Search @ SoundCloud
Powered by ElasticSearch
Typical search document
Clusters of 30 nodes
Clusters of 30 nodes data size * replication = 120%
* total memory
Cluster 2 Cluster 3 Cluster 1 Cluster 2 Cluster 3
Cluster 1 Multiple clusters per use-case
Problems?
Lead time of features and bugfixes Problems?
Indexing
Indexing 1. Extract
Indexing 1. Extract 2. Build ES documents
Indexing 1. Extract 2. Build ES documents 3. Load into
ES
Indexing 1. Extract 2. Build ES documents 3. Load into
ES 0. Live updates
Indexing 1. Extract 2. Build ES documents 3. Load into
ES 0. Live updates Kafka Kafka +
Kafka historic current compaction Cluster 1 Cluster 2 shipper 1
shipper 2 indexer
Kafka for ES documents 1. Enable compaction 2. Use fast
compression 3. Use enough partitions 4. Use SSDs + 10GBit
ES cluster lifecycle Reindex Live Maintenance
Reindex settings 1. Shards 2. Replication settings 3. Async Translog
4. Refresh Interval
Finish reindexing 1. Merge into one segment*** 2. Set #
replicas
Throughput ≈ 600K OP/s ≈ 30 Mins
4X faster for 95% ≈ 40ms for 50%
4X Reindexing in 1 Sprint
Summary • Solved initial problem • Enablement in daily life
Future work
Q & A
Sounds interesting? Come and talk to us!
THANK YOU
[email protected]
[email protected]