Riak to the Rescue Migrating Big Data - GOTO...

112
Riak to the Rescue Migrating Big Data

Transcript of Riak to the Rescue Migrating Big Data - GOTO...

Page 1: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Riak to the Rescue Migrating Big Data

Page 2: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Big Data.

Page 3: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Buzzwords.

Page 4: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Don’t believe the

Hype.

Page 5: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Who am I?Support

Development SysAdmin

Managing Operations

Page 6: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Operations8 Ops Engineers 4 Offices

Page 7: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Operations650 physical 200 virtual 3 data centres

Page 8: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Contact

• Based in Berlin

• twitter: @geidies

[email protected]

• http://underthehood.meltwater.com/

Page 9: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Migrating Big Data

• Meltwater

• Social Media Data Volumes

• Try and Fail

• Analyse and Succeed

• Things to Learn

Page 10: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Meltwater

Page 11: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

MeltwaterNews Monitoring

Page 12: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Paper-ClipRead News

Cut and Glue Telefax

Page 13: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Meltwater NewsCrawl the Web

Match new Articles Morning Report

Analytics UI

Page 14: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

ProductsPR !

m|news m|press

Marketing !

m|buzz / engage icerocket

Page 15: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

SaaSSubscription model

24,000 clients

Page 16: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 17: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

riak

• Open Source

• Dynamo Paper

• Erlang

Page 18: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

2.0OMG, OMG!!

Page 19: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

thanks, basho.

Page 20: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Meltwater Buzz

Page 21: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

m|news m|buzz

20 D/s - 8400 S/s 600 D/s - ??

Page 22: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Interesting Shtuff By Joan Doe - 2014/05/06 !Something amazing happened yesterday. It was more interesting than what happened the day before, but maybe it won’t change the events that are about to come tomorrow. !What does Lorem ipsum dolor really mean? we know it is not real latin. But it looks pretty good, since the characters are evenly distributed. I once tried translating it, and it really doesn’t make any sense. Talking here is amazing. Wow, Denmark - it’s actually really cool being in Aarhus. You should have a chat with me after the talk if you have further questions. Please don’t hesitate to say hi. If you’re in Berlin, come stop by the meltwater office for a chat about big data, a cup of coffee, a game of table tennis of foosball. You can find us at Rotherstraße 22 in Friedrichshain.

Page 23: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 24: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Social Media

• 140 Characters

• Pages Long

Page 25: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Social Media

• Metadata

• Location

• Followers

• Threads

Page 26: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Social Media

• Extracted Metadata

• sentiment

• named entities

• intent

• Editorial vs. Opinion vs. Both

Page 27: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

m|buzz version 1

• Buzzgain

• php, MySQL, SolR

Page 28: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 29: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Attention!

Page 30: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Your Use CaseResearch Evaluate

Test

Page 31: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

m|buzz version 2Scalability, Features,

Buzzwords!

Page 32: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 33: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 34: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

– Jamie Zawinski

“Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now

they have two problems.”

Page 35: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 36: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Requirements

• Fail-Safety

• High Availability

• A Lot of Unstructured Data

• Near-Real-Time Indexing

• Time-Based Ordering instead of Relevancy

Page 37: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

m|buzz version 2

• Hadoop Ecosystem

• Apache Projects

Page 38: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

m|buzz version 2

fetcher

fetcher

fetcher

HBase

HDFS

Katta

API

M-R hourly daily

Page 39: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

It’s a trap!

• buzzwords

• commodity hardware

• scale

Page 40: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

/opt/software

Page 41: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

• Build upon lucene

• Master -> Worker -> Client

• communication through zookeeper

• multiple index copies

• copied from HDFS -> local disk

Page 42: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

• OK in theory.

• Out Of Memory

• Garbage Collection Hell

• version 0.62 - odd bugs.

Page 43: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 44: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 45: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

0.20.5

Page 46: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 47: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 48: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

keyspace

region!

key n -> key o

split

region!

key a -> key c

Page 49: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

-ROOT- .META.

Page 50: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Fail-Safety

Page 51: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Fail-SafetyDoes NOT mean High Availability

!

Data on a Single Node

Page 52: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Minutes.55,000 posts / minute

Page 53: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Funny RegionsOverlapping

Gaps Negative Length

Page 54: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Funny RegionsREGION => {NAME => 'buzz_data,

1333073443000_62gfsHBsE5vNSz168ByvP5tDPu0A,1333173530871', STARTKEY => '1333073443000_62gfsHBsE5vNSz168ByvP5tDPu0A',

ENDKEY => '1326306499000_evKK670FSV9MAas2CMZAr41wLm0A', ENCODED => 128988498, TABLE => {{NAME => 'buzz_data', FAMILIES => [{NAME =>

'fm_contents',VERSIONS => '1', COMPRESSION => 'LZO', TTL => '2147483647', BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'}, {NAME =>

'fm_input_info', VERSIONS=> '1', COMPRESSION => 'LZO', TTL => '2147483647', BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'}, {NAME => 'fm_metadata', VERSIONS => '1', COMPRESSION => 'LZO', TTL => '2147483647',

BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'}, {NAME => 'fm_output_info', VERSIONS => '1', COMPRESSION => 'LZO', TTL => '2147483647',

BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'}]}}

Page 55: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

HBase

• .META. corruption

• Data Unavailability

• Slow Start of Regions

• Full Cluster Restarts Slow

• Hotspots

Page 56: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Good News!NameNode never crashed.

Great.

Page 57: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Changes……do you speak it?

Page 58: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 59: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

HBase

HDFS

KattaM-R hourly dailyra

bbitM

Q

m|buzz version 2.5

fetcher

fetcher

fetcher

API

fetcher

fetcher

fetcher enrichment

HBase

HDFS

KattaM-R hourly daily

couchbase

MapR  Distribu-on

Page 60: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 61: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 62: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

• Message Queue System

• Erlang

• Redundant Setup, fail-safe and high-available

• Write to Exchange -> Distribute to Multiple Queues

Page 63: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

HBase

HDFS

KattaM-R hourly dailyra

bbitM

Q

m|buzz version 2.5

fetcher

fetcher

fetcher

API

fetcher

fetcher

fetcher enrichment

HBase

HDFS

KattaM-R hourly daily

couchbase

MapR  Distribu-on

Page 64: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 65: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 66: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

First Read WinsParallel Reads:

couchbase vanilla HBase MapR HBase

Page 67: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

couchbase scales!

…to four weeks of data. 2.2B entries

TTL

Page 68: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Are we there yet?

Page 69: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 70: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

OptionsPro Con

custom WAL works safely doesn’t scale (easily)

MySQL cluster A lot of experience hitting limit of scaling

commercial Object storage commercial support up-front investment

riak

Page 71: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Requirements

✓High Availability

✓ Data Safety

✓ Scalability

? Range Scans or TTL to limit data

Page 72: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

riakKey-Value model

Objects in Buckets

Page 73: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 74: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 75: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 76: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

– riak documentation

“While there are mechanisms such as Vector Clocks to help deal with these issues, if your application

requires the kind of strong consistency found in ACID systems, Riak may not be a good fit.”

Page 77: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

rabb

itMQ

m|buzz version 2.6

fetcher

fetcher

fetcher

API

fetcher

fetcher

fetcher enrichment

HBase

HDFS

KattaM-R

couchbase

riak

elas

ticse

arch

Page 78: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Commodity Hardware

• HP DL360 G1

• 4c CPU

• 32GB RAM

• 1x 2TB 7.2k spinner

• …37 of those.

Page 79: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Configuration

• levelDB

• erlang VM

• Map-Reduce

Page 80: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Future-ProofSetting the ring-size to…

!

2048.

Page 81: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

– riak mailing list

“2048 is definitely the upper bound of what we recommend, but with the right amount of

machines, this can work.”

Page 82: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

– riak mailing list re-niced

“Are you guys insane? We didn’t even know that was possible!!”

Page 83: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Numbers

• 37 nodes

• 55,000 writes per minute

• 350,000 reads per minute

• 1.8TB data per node

Page 84: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Hey, wait.A good three weeks?

Page 85: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Let’s do it.parallel reads

gather numbers stability speed

Page 86: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

riak is slow.but consistent,

and massively parallel.

Page 87: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

riak is slow.riak is not as fast as a memory-only

key-value store.

Page 88: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

stability over speed.

Page 89: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

stability

• availability during

• node failures

• upgrades

• configuration updates

Page 90: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Search

Page 91: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

rabb

itMQ

m|buzz version 3

fetcher

fetcher

fetcher

API

fetcher

fetcher

fetcher enrichment

couchbase

riak

elas

ticse

arch

Page 92: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Naming Things

Page 93: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

rabb

itMQ

m|buzz version 3

fetcher

fetcher

fetcher

API

fetcher

fetcher

fetcher enrichment

couchbase

riak

elas

ticse

archES/R

Page 94: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Putting it live

Page 95: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Still live

• 58,000,000,000 key-value pairs written

• 365,000,000,000 reads

• 3.5ms mean (8ms 95th, 35ms 99th, 2s 100)

Page 96: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Monitoring

• Input “valves”

• throughput of any intermediate processing step

• output valves

• distribution of data across cluster

• handovers of data within the cluster

Page 97: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

DashboardsAnd APIs.

Page 98: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 99: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 100: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 101: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 102: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 103: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

necessary but not sufficient

dashboard API

fool-safe performance configuration good documentation

Page 104: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe
Page 105: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Summary

Page 106: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

BuzzwordsBe amazed.

Doubt. Evaluate.

Page 107: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

HardwareThere is no such thing as

“too much RAM”

Page 108: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

ScaleYou’ll need it.

Page 109: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Configuration Managementwho’s the master of puppet?

Page 110: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Monitoringlooks exciting even when things work.

Page 111: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Time.Operational Stability beats Features

when it comes to Big A Lot of Data.

Page 112: Riak to the Rescue Migrating Big Data - GOTO Bloggotocon.com/dl/goto-aar-2014/slides/SebastianGei... · Riak to the Rescue Migrating Big Data. Big Data. Buzzwords. Don’t believe

Thank you.!

!

@geidies - [email protected]

http://underthehood.meltwater.com/

slides w/ notes on github.com/geidies/slides