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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Qaiser Abbasi
December 13, 2018
Business
840
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
匠技研工業 採用紹介資料
takumiengineering
0
170
PMよ、エゴイストになれ!
suh1101
0
180
会社紹介資料/Idein株式会社
ideininc
0
1.1k
事業領域
daisan123
0
470
PM Kansai#5 Sponsor Session
y0suke4mano
0
210
Claude Design/Codex入門:創造性とデザイン品質を、同じ箱で綱引きさせない
forest8810
0
230
顧客理解レースでAIの一歩先を行く / Know customers better than AI
hirokiyamamoto14
PRO
1
450
BLUEDGE(ブルーエッジ)物流向けオーダーメイドSaaSサービス 2026年8月版
bluedge_llc
PRO
1
150
なんとかする力 〜 Android エンジニアからマネージャー、さらにその先へ? 〜
m_coder
2
450
malna-recruiting-pitch
malna
0
26k
TableCheck Inc. - Company Profile
tablecheckac
0
520
FABRIC TOKYO会社紹介資料 / We are hiring(2026年9月3日更新)
yuichirom
39
420k
Featured
See All Featured
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
270
Optimising Largest Contentful Paint
csswizardry
37
3.9k
Practical Orchestrator
shlominoach
191
12k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6.2k
Leo the Paperboy
mayatellez
8
2.2k
We Have a Design System, Now What?
morganepeng
55
8.3k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
680
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
230
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
320
The Curse of the Amulet
leimatthew05
2
14k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
240
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
310
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]