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
株式会社WePush 採用候補者様向け会社説明資料
wepush
1
990
どちらも「ユーザーのため」だった —価値の対立を仮説検証に変えて #Scrumfest Osaka 2026
mamedai55
0
470
GOドライブ会社紹介資料
go_drive_corp
2
4.7k
株式会社TableCheck - 会社紹介 Company Profile
tablecheckac
0
9k
セーフィー株式会社(Safie Inc.) 会社紹介資料
safie_recruit
7
460k
スマサテ 会社紹介資料
sumasate
0
2.4k
「受託脳」から「提案脳」へ〜「一緒に悩んで、いいものつくる」を目指して
kuranuki
3
1.6k
「エンジニアのための自己管理入門」のインセプションデッキ/Inception Deck of Self-Management beginner's guide book
ikuodanaka
2
550
Akatsuki AI Technologies Company Deck
akatsuki_ai_technologies
0
120
Recruiting Deck 2607
sd_official
0
100
RECRUIT DECK 株式会社KOBIRA 会社説明資料
kobira_official
PRO
0
6.9k
なぜ勉強会だけでは浸透しないのか ~数百人規模の組織でコーディングエージェントを当たり前にした戦略とその結果~
sigma_sig
0
210
Featured
See All Featured
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Embracing the Ebb and Flow
colly
88
5.1k
Music & Morning Musume
bryan
47
7.3k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.8k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
990
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
300
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
350
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
56k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
580
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
710
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]