Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
How to scale a Logging Infrastructure
Search
Paul Stack
June 03, 2015
Technology
230
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
How to scale a Logging Infrastructure
Logging infrastructure using ELK + Kafka
Paul Stack
June 03, 2015
Transcript
40 slides
How do you scale a logging infrastructure to accept a
billion messages a day? Paul Stack http://twitter.com/stack72 mail:
[email protected]
About Me Infrastructure Engineer for a cool startup :) Reformed
ASP.NET / C# Developer DevOps Extremist Conference Junkie
Background Project was to replace the legacy ‘logging solution’
Iteration 0: A Developer created a single box with the
ELK all in 1 jar
Time to make it production ready now
None
Iteration 1: Using Redis as the input mechanism for LogStash
None
None
Enter Apache Kafka
“Kafka is a distributed publish- subscribe messaging system that is
designed to be fast, scalable, and durable” Source: Cloudera Blog
Introduction to Kafka • Kafka is made up of ‘topics’,
‘producers’, ‘consumers’ and ‘brokers’ • Communication is via TCP • Backed by Zookeeper
Kafka Topics Source: http://kafka.apache.org/documentation.html
Kafka Producers • Producers are responsible to chose what topic
to publish data to • The producer is responsible for choosing a partition to write to • Can be handled round robin or partition functions
Kafka Consumers • Consumption can be done via: • queuing
• pub-sub
Kafka Consumers • Kafka consumer group • Strong ordering
Kafka Consumers • Strong ordering
https://github.com/opentable/puppet-exhibitor
None
Iteration 2 Introduction of Kafka
None
None
Iteration 3 Further ‘Improvements’ to the cluster layout
None
The Numbers • Logs kept in ES for 30 days
then archived • 12 billion documents active in ES • ES space was about 25 - 30TB in EBS volumes • Average Doc Size ~ 1.2KB • V-Day 2015: ~750M docs collected without failure
What about metrics and monitoring?
Monitoring - Nagios • Alerts on • ES Cluster •
zK and Kafka Nodes • Logstash / Redis nodes
None
https://github.com/stack72/nagios-elasticsearch
Metrics - Kafka Offset Monitor
https://github.com/opentable/KafkaOffsetMonitor
Metrics - ElasticSearch
None
None
None
Visibility Rocks!
None
So what would I do differently?
Questions?
Paul Stack @stack72
More Decks by Paul Stack
See All by Paul Stack
Infrastructure as Software
stack72
0
120
Mirror, Mirror on the way, what is the vainest metric of them all?
stack72
1
2.4k
Continuously Delivering Infrastructure to the Cloud
stack72
0
260
DevOops 2016
stack72
0
160
The Quest for Infrastructure Management 2.0
stack72
0
180
The Biggest Trick Consultants Ever Pulled was Telling The World Continuous Delivery is Easy
stack72
1
160
The Transition from Product to Infrastructure
stack72
0
100
Continuous Delivery - the missing parts
stack72
0
1.1k
Windows: Having its ass kicked by puppet and powershell
stack72
0
180
Other Decks in Technology
See All in Technology
Webメール開発を大幅に変えたJMAPというゲームチェンジャー
tascript
10
6.4k
ポケモンバトルのAIエージェント
koji_kawamura
0
330
Embulkの次、どう選んだ? 〜DMMの事例に学ぶ、 約8兆レコードのETL基盤リプレイス〜
takaha4k
0
110
Metadata - Section 4 : MODS (Metadata Object Description Schema )
mohab1
0
210
AI時代に問い直す「プロダクションミーティング」の価値 〜チームでサービスの信頼性を高める取り組み〜
mackerelio
0
270
みん強Lightning! データ基盤ひとりでできるかな
endonanana
0
300
PR 生成AIガバナンスの全体像がわかる本
yoshimura_datam
0
140
kubellの最新データ分析環境
kubell_hr
2
360
競馬予想をAIでやってみた話
yoshimura_datam
0
170
AWS DevOps Agentの構造から読み解く運用 AI エージェントの設計原則/aws-devops-agent-design-principles
tomoki10
0
340
AI時代の開発組織における、QAの体制とロールの再設計
sansantech
PRO
0
140
OSSとミニPCと私
anatofuz
1
140
Featured
See All Featured
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Exploring anti-patterns in Rails
aemeredith
4
590
Building the Perfect Custom Keyboard
takai
2
980
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
690
For a Future-Friendly Web
brad_frost
184
11k
Producing Creativity
orderedlist
PRO
348
41k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
580
Visualization
eitanlees
153
17k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
480
Faster Mobile Websites
deanohume
310
32k
Building AI with AI
inesmontani
PRO
1
1.4k
Context Engineering - Making Every Token Count
addyosmani
9
1.3k