cloudy with a chance of scale

24
CLOUDY WITH A CHANCE OF SCALE MITCH PIRTLE ELASTICSEARCH MEETUP CAPITALONE LABS, ARLINGTON VA DECEMBER 2016

Upload: mitch-pirtle

Post on 11-Jan-2017

102 views

Category:

Technology


6 download

TRANSCRIPT

Page 1: Cloudy with a chance of scale

C L O U D Y W I T H A C H A N C E O F S C A L E

M I T C H P I R T L E E L A S T I C S E A R C H M E E T U P C A P I TA L O N E L A B S , A R L I N G T O N VA D E C E M B E R 2 0 1 6

Page 2: Cloudy with a chance of scale

A B O U T M E

• FOSS founder/contributor

• Startupper

• Technology Fellow, Capital One

• Skate punk

• Musician

• Football coach

Page 3: Cloudy with a chance of scale

A B O U T Y O U

• Just a user

• In production by hand

• Fully automated in production

• I should be giving this talk

Page 4: Cloudy with a chance of scale

A B O U T T H I S S E S S I O N

• ES from an Ops perspective

• The good, bad and truncated

• What to expect

Page 5: Cloudy with a chance of scale

H O W I T A L L S TA R T E D

Page 6: Cloudy with a chance of scale

– M E , T H E E A R LY- O N C L U E L E S S V E R S I O N

“All I want is a web crawler, this can’t be too hard to setup.”

Page 7: Cloudy with a chance of scale

– M E , T H E E A R LY- O N C L U E L E S S V E R S I O N

“All I want is a web crawler, this can’t be too hard to setup.”

Page 8: Cloudy with a chance of scale

F E S S U P !

• Fess: http://fess.codelibs.org/

• FOSS

• Simple web UI for setup

• Multiple sources

• Multiple types

• Supports threads, throttling

• ES as persistence store

Page 9: Cloudy with a chance of scale

S C E N A R I O S .

Page 10: Cloudy with a chance of scale

L O C A L S E T U P

• Fess comes as a self-contained package

• All you need is a java runtime and you’re good

Page 11: Cloudy with a chance of scale

I ’ M T H I N K I N G B I G G E R T H A N T H AT.S C R E W L O C A L H O S T,

Page 12: Cloudy with a chance of scale
Page 13: Cloudy with a chance of scale

W H Y P U B L I C C L O U D

• Horizontal scale

• Access to integrated services - storage, load balancing, etc

• Opportunity to automate. All. The. Things.

Page 14: Cloudy with a chance of scale

S I N G L E I N S TA N C E .

• Quick to setup, uses embedded Elasticsearch + plugins

• Quick to duplicate

• Easy to maintain

Page 15: Cloudy with a chance of scale

S I N G L E I N S TA N C E : I S S U E S

• Single point of failure

• Zero scale opportunity

• Fully manual effort

• Good golly filesystem access is SLOW

Page 16: Cloudy with a chance of scale

C L U S T E R E D S E R V I C E .

• Horizontal scale

• Easier to expand

Page 17: Cloudy with a chance of scale

C L U S T E R E D S E R V I C E : I S S U E S

• Needs separate instance of Elasticsearch, requires plugin installation (version specific)

• Even harder to setup: Shards or replicas? Master or data or both, or neither?

• Even harder to automate

• Requires additional tooling for operations (logs, events)

Page 18: Cloudy with a chance of scale

H O W D O I D O T H I S ?

• ElasticSearch Cluster: Configuration & Best Practices (http://www.xmsxmx.com/elasticsearch-cluster-configuration-best-practices/)

Page 19: Cloudy with a chance of scale

A M A Z O N E L A S T I C S E R V I C E

• No setup

• Simple scale

• Fully automated

• Advanced configuration by default

Page 20: Cloudy with a chance of scale

A M A Z O N E L A S T I C S E R V I C E : I S S U E S

• No custom plugins (no Fess!)

• Service limits (number of nodes per cluster, etc)

• Lack of customization options

Page 21: Cloudy with a chance of scale

T H E L I N K S

• https://aws.amazon.com/elasticsearch-service/

• http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/aes-limits.html

Page 22: Cloudy with a chance of scale
Page 23: Cloudy with a chance of scale

S T U M P T H E S P E A K E RM Y FA V O R I T E G A M E

Page 24: Cloudy with a chance of scale

T H A N K Y O U V E R Y G R A Z I E .

• @mitchitized

[email protected]

• github.com/spacemonkey

• about.me/mitchitized

• www.slideshare.net/spacemonkeylabs