mongodb london 2013: high performance, scalable mongodb in a bare metal cloud presented by jonathan...

39
High Performance, Scalable MongoDB in the SoftLayer Bare Metal Cloud Jonathan Wisler, General Manager EMEA @jpwisler

Upload: mongodb

Post on 11-Jun-2015

310 views

Category:

Technology


4 download

DESCRIPTION

In this presentation we will discuss the various cloud computing models and their impacts on performance and scalability for databases. We will compare MongoDB performance in each of them and look at a new way to rapidly deploy a Cloud Subscription version of MongoDB into a Bare Metal cloud.

TRANSCRIPT

Page 1: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

High Performance, Scalable MongoDB in the

SoftLayer Bare Metal Cloud

Jonathan Wisler, General Manager EMEA @jpwisler

Page 2: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

Marketing term!Reference architecture!

Operations model !Capacity on demand!

Consumption-based pricing!Self-service provisioning!

Accessible via API!!!

Cloud Computing!

Page 3: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer
Page 4: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

Internet Scale!

Unpredictable traffic patterns!Unconstrained user base!Global potential!Network-sensitive!Leading-edge technology stack!

Page 5: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

Source: go-globe.com

Page 6: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

Source: EMC

Page 7: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

Source: eweek

Page 8: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

Source: Kjaer Global

Page 9: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer
Page 10: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer
Page 11: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer
Page 12: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

Common Story

•  Start on Amazon/other virtual cloud •  Need to scale •  Hit performance and cost ceiling •  Panic, pay or move (all three?)

Page 13: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

Virtual Cloud Issues Size constraints Disk configuration IO issues

Manual setup Network configuration Network costs Variability in performance Variability in reliability Management complexity

Page 14: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

Tool Selection

New wisdom? Abstract everything – worrying about the machine is old school; we’re past that now

Reject this hypothesis Picking the right tool for the job will always matter

Page 15: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer
Page 16: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer
Page 17: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

Performance Data 8GB / .5MB docs 200 iterations 6:1 r:w AWS M1 Large 7.5GiB memory 850GB volume SoftLayer Small 8GB memory 2x500GB volume

0

300

600

900

1200

12

48

16

32

SL

AWS

threads

ops/sec

Page 18: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

Performance Data 32GB / .5MB docs 200 iterations 6:1 r:w AWS M1 Large 30GiB memory 100GB volume 64GB volume SoftLayer Medium SAS 36GB memory 2x64GB SSD volume 4x300GB SAS volume SoftLayer Medium SSD 36GB memory 2x64GB SSD volume 4x400GB SSD volume

ops/sec

threads

0

1500

3000

4500

6000

12

48

1632

64128

SL SSD

AWS

SL SAS

Page 19: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

0

1250

2500

3750

5000

12

48

1632

64128

SL

AWS

threads

ops/sec

Performance Data 64GB / .5MB docs 200 iterations 6:1 r:w AWS M1 Large 68GiB memory 200GB volume 64GB volume SoftLayer Large 128GB memory 2x64GB SSD volume 6x400GB SSD volume

Page 20: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

Common network

API

Hybrid architectures

Bare Metal Public Cloud Private Cloud

Base Compute

Page 21: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

8x CPU Servers

ORACLE RAC CLUSTER

Dedicated SAN

2x CPU Servers Local Storage

MONGODB REPLICA SET

vs

Architecture Matters

Page 22: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

API!

Page 23: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

High Performance Network!•  2,000 gigabits of connectivity!•  Multiple Tier 1 carriers!•  Native IPv6 support!•  Network-within-network architecture!•  Maximum accessibility, security and control!

Page 24: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

Case Study:

Page 25: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

PROPRIETARY  TECH,    300  BRANDS,  16  MARKETS,  2  BILLION  REQUESTS  A  DAY  

Page 26: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

MAKE  FAST  DECISIONS    &  MAKE  SMART  DECISIONS    

BID  REQUEST  FROM  RTB  PARTNER  

O.ms   IDENTIFY  ALL  CAMPAIGNS  THAT  

USER  IS  ELIGIBLE  FOR  

PUBLISHER  CHECKED  FOR  BRAND  SAFETY  &  QUALITY  BY  CAMPAIGN  

LEARNING  ENGINE  CALCULATES  CLICK,  

CONVERSION  PROBABILITIES  BASED  

ON  MILLIONS  OF  PARAMETERS  

PRICING  &  PACING  ENGINE  DETERMINES  OPTIMAL  BID  PRICE  PER  CAMPAIGN  

CAMPAIGN  SELECTED  BASED  ON  THE  

INTERSECTION  OF  PEAK  PROBABILITY  &  WIN  LIKELIHOOD  

CREATIVE  OPTIMISATION  

IDENTIFIES  THE  BEST  AD  &  ELEMENTS  FOR  

THE  USER  

25.ms  

95%  OF  BIDS  COMPLETED  

Page 27: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

Bare Metal Cloud

Single tenant Build to your specs

You have control and management

Page 28: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

Bare Metal Cloud Customizable : tuned for DB Available in a few hours : automated Single Tenant : eliminate variability Month-to-month billing : pay as you go But…Still Complex

Manual DB Install & Config Variable deployment practices Best Practices disputable Support sold annually

Page 29: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

Bare Metal Cloud Customizable : tuned for DB Available in a few hours : automated Single Tenant : eliminate variability Month-to-month billing : pay as you go But…Still Complex

Manual DB Install & Config Variable deployment practices Best Practices disputable Support sold annually

SoftLayer Bare Metal Cloud

Partnered With 10Gen To Solve

Page 30: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

Bare Metal Servers for Better Performance Your big data solution can now have the power of bare metal and the ease of the cloud. Our servers (ranging from entry-level quad-core servers to sixteen core powerhouses) provide a higher level of performance than virtualized solutions are capable of delivering.

Full Access and Control You get the total access and control of your complete MongoDB solution, including total utilization of your hardware, total say in where your servers and replica sets are deployed, and the ability to further customize it to any specification or requirement.

Global Private Network Our private network connects all 13 of our international datacenters. Lower latency, consistent performance.

Easy Design and Provisioning Our configuration tool makes it easy to design and deploy complete customized MongoDB architectures.

SoftLayer MongoDB Servers

Page 31: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

SoftLayer MongoDB Servers

+ 10Gen MongoDB Cloud Subscription

Page 32: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

Solution Designer & Control Portal

Amsterdam

Page 33: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

Solution Designer & Control Portal

San Jose Amsterdam

Amsterdam

Page 34: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

Singapore San Jose Amsterdam

Solution Designer & Control Portal

San Jose Amsterdam

Amsterdam

Page 35: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

CentOS 6 64 bit 10Gen has indicated that they have found the best performance and ability to support MongoDB is found on CentOS.

Separate Journal Volume SoftLayer has elected under the advice of 10Gen to have a separate SSD volume mounted for the journal. This is available on the higher end engineered servers and prevents journaling from interfering with r/w operations on the data mount.

Disk configuration Preferring 15k SAS drives for cost-performance balance but offering both SSD and SATA options as needed.

RAID configuration Data volume mounts are configured with RAID10 for all 4+ drive configurations and RAID1 for 2 drive configurations according to 10Gen’s recommended RAID configuration.

MMS Preinstalled MMS is 10Gen’s monitoring service that is provided free of charge for all MongoDB instances. It is considered a best practice to install MMS, which is why all SoftLayer engineered servers are pre-configured with the MMS agent installed.

Best Practices

Page 36: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

SSD Read Ahead SSD drives have excellent seek times allowing for shrinking the Read Ahead to 16 blocks while spinning disks might require slight buffering so these have been set to 32 blocks

Noatime Adding the noatime option eliminates the need for the system to make writes to the file system for files which are simply being read -- or in other words, this means faster file access and less disk wear.

NUMA off in BIOS Linux, NUMA and MongoDB tend not to work well together.

Ulimit We have set the ulimit to 64000 for open files and 32000 for user processes to prevent failures due to a loss of available file handles or user processes

EXT4 We have selected ext4 over ext3. We have found ext3 to be very slow in allocating files (or removing them) as well as access within large files is also poor.

Best Practices

Page 37: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

13 data centers 16 network POPs +100,000 physical servers 20Gb fiber interconnects

SoftLayer

Page 38: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

Source: Hostcabi.net!

Source: Hostcabi.net!

Source: Hostcabi.net!

Top 100,000 Sites!By Hosting Provider!

Page 39: MongoDB London 2013: High Performance, Scalable MongoDB in a Bare Metal Cloud presented by Jonathan Wisler, General Manager EMEA, Softlayer

softlayer.com/bigdata!

@jpwisler!

More information: