7. 2006
IDC estimates 161 Exabytes of
data on the Internet
That is 161 MM 1T drives
8. 2009
988 Exabytes of data
6x growth in 4 years
Almost 1B 1T drives
A zetabyte 21 zeroes
Source http://www.emc.com/collateral/analyst-reports/expanding-digital-idc-white-paper.pdf
27. Example
0600 – Wake up
0601 – Checked Hacker News
0605 – Shower
0630 – Breakfast
0630 – Checked Hacker News
0700 – Left for work
0730 – Arrived at work
Etc…
28. Think about how you’d
store something like this if
you were building a
backend system
54. 500 ms for entire request
15 ms on the wire getting there.
200 ms to auth
50 ms looking up account
50 ms looking up other stuff
15 ms on the wire getting back.
170 ms rendering in the browser
55. 500 ms for entire request
15 ms on the wire getting there.
200 ms to auth
50 ms looking up account
50 ms looking up other stuff
15 ms on the wire getting back.
170 ms rendering in the browser
73. Low Volume, High Frequency
5,6,5,6
Things observed infrequently
Almost always changes
Low storage overhead
Bulk operations are easy
Usually uninteresting
75. High Volume, Low Frequency
5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,7,7
Constantly observed
But doesn’t change much
Optimizations!
Detect and record only level changes
Requires caching
76. High Volume, High Frequency
34,4,7,345,6,4,2,54,67,5,6,55,74,5,3,2,5,6745…
77. High Volume, High Frequency
34,4,7,345,6,4,2,54,67,5,6,55,74,5,3,2,5,6745…
78. Numeric vs String
Most will be numeric
Some are strings
Usually low frequency
Special handling
79. Numeric vs String
High frequency strings are
a sign you’re doing
something wrong or need a
different system.
80. Gauges
Current value of something
Operation: snapshot
Speedometer
Thermometer
CPU utilization
81. Counter
Exists as a set of operations
– Operation: increment
– Operation: decrement
Read by selecting over time and
summing
Example: hits on a website
Different than unique hits
83. Timer
How long something takes
Statistics (mean, median,
min, max, percentiles)
How many times it has
happened
Rate at which it is
happened
Uses a sliding window
99. Does this measurement matter?
You don’t care about it when it changes
You aren’t doing anything with it
You can’t figure out what actions to take
from it
(it’s meaningless)