Webinar: Enterprise Trends for Database-as-a-Service

38
Enterprise Trends in MongoDB as a Service Chris Biow Principal Technologist & Tech Director MongoDB

Transcript of Webinar: Enterprise Trends for Database-as-a-Service

Page 1: Webinar: Enterprise Trends for Database-as-a-Service

Enterprise Trends inMongoDB as a Service

Chris BiowPrincipal Technologist & Tech DirectorMongoDB

Page 2: Webinar: Enterprise Trends for Database-as-a-Service

Agenda

Page 3: Webinar: Enterprise Trends for Database-as-a-Service

3

Agenda

• About MongoDB• Technical overview• Enterprise architecture• Enterprise cloud background• Ops Manager• Enterprise MongoDB-as-a-Service

Page 4: Webinar: Enterprise Trends for Database-as-a-Service

4

Developer Challenge

I want my MongoDB...

• Now• Easy• Cheap for dev• Seamlessly scale up

for prod

iStock licensed (pixelfit)

Page 5: Webinar: Enterprise Trends for Database-as-a-Service

About MongoDB

Page 6: Webinar: Enterprise Trends for Database-as-a-Service

MongoDB, Inc.

400+ employees 2,000+ customers

Over $311 million in funding13 offices around the world

Page 7: Webinar: Enterprise Trends for Database-as-a-Service

7

THE LARGEST ECOSYSTEM

10,000,000+MongoDB Downloads

250,000+Online Education Registrants

35,000+MongoDB User Group Members

35,000+MongoDB Management Service (MMS) Users

750+Technology and Services Partners

2,000+Customers Across All Industries

Page 8: Webinar: Enterprise Trends for Database-as-a-Service

MongoDB Use Cases

Single View Internet of Things Mobile Real-Time Analytics

Catalog Personalization Content Management

Page 9: Webinar: Enterprise Trends for Database-as-a-Service

9

We Can Help

MongoDB Enterprise AdvancedThe best way to run MongoDB in your data center

MongoDB Management Service (MMS)The easiest way to run MongoDB in the cloud

Production SupportIn production and under control

Development SupportLet's get you running

ConsultingWe solve problems

TrainingGet your teams up to speed.

Page 10: Webinar: Enterprise Trends for Database-as-a-Service

Technical overview

Page 11: Webinar: Enterprise Trends for Database-as-a-Service

11

Documents are Rich Data Structures

{ first_name: 'Paul', surname: 'Miller', cell: '+447557505611' city: 'London', location: [45.123,47.232], Profession: [banking, finance, trader], cars: [ { model: 'Bentley', year: 1973, value: 100000, … }, { model: 'Rolls Royce', year: 1965, value: 330000, … } ]}

Fields can contain an array of sub-documents

Fields

Typed field values

Fields can contain arrays

String

Number

Geo-Coordinates

Page 12: Webinar: Enterprise Trends for Database-as-a-Service

Do More With Your Data

MongoDB

{ first_name: 'Paul', surname: 'Miller', city: 'London', location: [45.123,47.232], cars: [ { model: 'Bentley', year: 1973, value: 100000, … }, { model: 'Rolls Royce', year: 1965, value: 330000, … } }}

Rich Queries

Find Paul's cars

Find everybody in London with a car built between 1970 and 1980

Geospatial Find all of the car owners within 5km of Trafalgar Sq.

Text Search Find all the cars described as having leather seats

Aggregation Calculate the average value of Paul's car collection

Map ReduceWhat is the ownership pattern of colors by geography over time?(is purple trending up in China?)

Page 13: Webinar: Enterprise Trends for Database-as-a-Service

13

Replica Sets

Replica Set – 2 to 50 copies

Self-healing shard

Data Center Aware

Addresses availability considerations:

High Availability

Disaster Recovery

Maintenance

Workload Isolation: operational & analytics

Page 14: Webinar: Enterprise Trends for Database-as-a-Service

14

Automatic Sharding

Three types: hash-based, range-based, location-aware

Increase or decrease capacity as you go

Automatic balancing

Page 15: Webinar: Enterprise Trends for Database-as-a-Service

15

Query Routing

Multiple query optimization models

Each sharding option appropriate for different apps

Page 16: Webinar: Enterprise Trends for Database-as-a-Service

Read Global/Write Local

Page 17: Webinar: Enterprise Trends for Database-as-a-Service

17

Replicate Data Near Users

Page 18: Webinar: Enterprise Trends for Database-as-a-Service

Enterprise architecture

Page 19: Webinar: Enterprise Trends for Database-as-a-Service

MongoDB and Enterprise IT Stack

EDWHadoop Spark

Man

agem

ent

& M

on

ito

rin

gS

ecurity &

Au

ditin

g

RDBMS

CRM, ERP, Collaboration, Mobile, BI

OS & Virtualization, Compute, Storage, Network

RDBMS

Applications

Infrastructure

Data Management

Online Data Offline Data

Page 20: Webinar: Enterprise Trends for Database-as-a-Service

MongoDB and Enterprise IT Strategy

Legacy Strategic

Apps On-Premise SaaS, Mobile, Social

Database Oracle MongoDB

Offline Data Teradata Hadoop, Spark

Compute Scale-Up Server Commodity HW / Cloud

Storage SAN Local Storage / Cloud

Network Routers and Switches Software-Defined Networks

Page 21: Webinar: Enterprise Trends for Database-as-a-Service

Enterprise cloud background

Page 22: Webinar: Enterprise Trends for Database-as-a-Service

22

Revolution in IT provisioning

• Hosting– Public, Private, and Hybrid

• Stack– Infrastructure | Platform | Software

…as a Service

• DB platform advantages – Adoption– Agility– Governance– Efficiency

Wikimedia Commons

Public PrivateHybrid

Page 23: Webinar: Enterprise Trends for Database-as-a-Service

23

Public Cloud

• Commercial cloudIaaS endless aisle– Amazon Web Services– Microsoft Azure– Google Compute Engine– Rackspace– Many more…

• OpenStack– Apache, Rackspace, NASA– OpenStack Foundation

iStock licensed (4X-image)

Page 25: Webinar: Enterprise Trends for Database-as-a-Service

25

In the Enterprise Cloud:MongoDB as a Service

• Rewards– Adoption– Agility– Governance– Efficiency

• Risks– Systematize the wrong solution– Standardize the wrong hardware (especially storage)– Unaffordable or inflexible: unlimited apathy– Too cheap: tragedy of the commons

Page 26: Webinar: Enterprise Trends for Database-as-a-Service

Ops Manager andMongoDB Management Service (MMS)

Page 27: Webinar: Enterprise Trends for Database-as-a-Service

27

Single-click provisioning, scaling & upgrades, admin tasks

Monitoring, with charts, dashboards and alerts on 100+ metrics

Backup and restore, with point-in-time recovery, support for sharded clusters

MongoDB Ops Manager

The Best Way to Manage MongoDB In Your Data CenterUp to 95% Reduction in Operational Overhead

Page 28: Webinar: Enterprise Trends for Database-as-a-Service

28

How MongoDB Ops Manager helps you

Scale EasilyMeet SLAs

Best Practices, Automated

Cut Management Overhead

Page 29: Webinar: Enterprise Trends for Database-as-a-Service

29

How Ops Manager Works

Ops Manager

mongod mongodmongod

Agent Agent Agent

New C

onfig

. New Config.N

ew C

onfig

.

Page 30: Webinar: Enterprise Trends for Database-as-a-Service

30

Integrates with Existing Infrastructure

Page 31: Webinar: Enterprise Trends for Database-as-a-Service

Bringing it all togetherwith an Enterprise Service

Page 32: Webinar: Enterprise Trends for Database-as-a-Service

32

Customer First

• Need happy, jumping people!• First app stakeholders

– Business owner– Developers– Ops

• Next few apps– Same stakeholders

iStock licensed (YanC)

Page 33: Webinar: Enterprise Trends for Database-as-a-Service

33

Delivery Levels

• Application• Data Service / Data Layer

– VA eCRUD: goo.gl/8usttw • Multi-tenancy• Cluster per app

– Replica set only– Sharded / replica sets– Citigroup: mongodb.info/?p=3377

Page 34: Webinar: Enterprise Trends for Database-as-a-Service

34

Implementation Choices

• Server Hardware• Virtualization• Security & Entitlements• Storage• Operating System• Infrastructure Management• Backup and Recovery• Accounting and chargeback• Distributed computing

Ceilometer Grizzly: openstack.org

Page 35: Webinar: Enterprise Trends for Database-as-a-Service

35

Best Practices

• Business case– Cost matching– First customers first

• Balance scalability, standardization, and flexibility– Don’t undershoot your

customers– Don’t boil the ocean– Customize where required

• Find your performance limit– Storage first (mongoperf)– Network– CPU– RAM

• MongoDB engineering– Schema– Shard first– Shard key

• 2+ data centers– Consider hybrid for 3rd

– If only 2, see goo.gl/qy6P7X

• MongoDB, Inc.– Let us help!

• Monitoring– Ops Manager

Page 36: Webinar: Enterprise Trends for Database-as-a-Service

36

Sample first app

• Enterprise social network– Short messages– Followers– Feeds– Geolocation– https://github.com/10gen-labs/socialite

• Active users: 60% of employees• Indefinite retention• Java application• Existing collocated infrastructure (HP, RHEL, VMW)

iStock licensed (Erikona)

Page 37: Webinar: Enterprise Trends for Database-as-a-Service

37

MongoDB as a Service Strategy

Platform Option Choice

Server HP DL360, 2-CPU, 256GB RAM

Storage Local SAS or SSD

OS Red Hat Enterprise Linux

Virtualization VMWare vSphere

Cloud Platform OpenStack

DBaaS Automation CumuLogic

Monitoring, Backup, Automation

MongoDB Management Service (MMS)

Authentication X509 public key openclipart.org

Delivery Level Cluster per application

Metering Ceilometer

Page 38: Webinar: Enterprise Trends for Database-as-a-Service

38

Takeaways

• Database revolution• Enterprise-level innovation with DBaaS• Start small with positive results• Build on your wins