35
© Copyright 2016 EMC Corporation. All rights reserved. © Copyright 2016 EMC Corporation. All rights reserved. 1 EXTENDING MESOS FOR STORAGE AS A GLOBAL RESOURCE STEVE WONG DEVELOPER ADVOCATE – EMC{code} GREG MANN SOFTWARE ENGINEER – Mesosphere

EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

Embed Size (px)

Citation preview

Page 1: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved.© Copyright 2016 EMC Corporation. All rights reserved. 1

EXTENDING MESOS FOR STORAGE AS A GLOBAL RESOURCESTEVE WONGDEVELOPER ADVOCATE – EMC{code}

GREG MANNSOFTWARE ENGINEER – Mesosphere

Page 2: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 2

GOT CONTAINERS AT SCALE?YOU NEED A SCHEDULER…

Page 3: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 3

ASSUME 1000’S OF SERVICES

• How do you place an assortment of containers onto your servers efficiently?

Page 4: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 4

WHAT’S A SCHEDULER?• Manages compute nodes

– Takes reports from each node regarding their health and available capacity

• Manages incoming work requests– Accepts job requests– Based on requirements, decides which node

should fulfill each request– May attempt to optimize job placement to

maximize locality, utilization, etc.

on demand

scheduled

batch

Page 5: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 5

When you build a cluster, there’s no getting around it:you are building a distributed system

• Difficult to design, build and operate• Introduces complexity

Mesos takes on some of the "heavy lifting" of deploying and operating a distributed system

MESOS AS A CLUSTER MANAGER

Page 6: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 6

A distributed systems kernel

• Abstracts many independent nodes into a single pool• Negotiates among multiple schedulers

– Competing schedulers can suffer from resource starvation– Mesos offers resources to frameworks to ensure fairness

WHAT IS MESOS?

Page 7: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 7

WHAT IS MESOS?

Marathon

Page 8: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 8

• Where it started• Recent

enhancements• Roadmap

MESOS AND STORAGE

Page 9: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 9

CLUSTER NODES OFFER LOCAL RESOURCES

Page 10: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 10

MESOS MASTER PRESENTS OFFERS TO FRAMEWORKS

Marathon

Page 11: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 11

• Where it started• Recent

enhancements• Roadmap

MESOS AND STORAGE

Page 12: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 12

RESERVE CLUSTER NODE HOSTED VOLUME

Page 13: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 13

External volume mounts were added in 2015• Provides

Availability + Scale

MOUNT A VOLUME FROM EXTERNAL STORAGE

Page 14: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 14

• Where it started• Recent

enhancements• Roadmap

MESOS AND STORAGE

Page 15: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 15

NOT ALL RESOURCES ARE LOCAL

Page 16: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 16

AGENT FAILURE

• Agents are the source of truth for resource information

Page 17: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 17

AGENT FAILURE

• When an agent fails this information is lost, but so are the resources!

Page 18: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 18

AGENT FAILURE

• When a failed agent was using a global resource, the resource is still available!

Page 19: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 19

AGENT FAILURE

• The state of this resource must be stored off the agent

Page 20: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 20

NEED A NEW ABSTRACTION• We need a third

entity to track the use of global resources

Page 21: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 21

• Option #1: Integrate global resources into the Mesos offer cycle

HOW TO INTEGRATE GLOBAL RESOURCES?

Page 22: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 22

• Option #2: Handle global resources “out-of-band”

HOW TO INTEGRATE GLOBAL RESOURCES?

Page 23: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 23

Mesos was originally designed to manage compute node resources• Storage in this context meant DAS

A JIRA proposal exists to include global resources in the Mesos offer model, but this may not be necessary.• Feedback is welcome!

HOW TO INTEGRATE GLOBAL RESOURCES?

Page 24: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 24

HOW DO YOU TRACK WHAT STORAGE YOU HAVE?… AND WHERE IT’S IN USE?

Page 25: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved.

Create

Utilize

Retire

MESOS INTERFACES WITH STORAGE

Lifecycle management with governance

Mount managementAssignment to applications

Page 26: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 26

A LARGE SCALE INSTALLATION NEEDS TO ALLOW FOR MULTIPLE STORAGE PROVIDERS

What does this remind you of?

Page 27: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 27

MESOS = 2 LEVEL CONTAINER SCHEDULER

Page 28: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 28

TWO LAYER EXTERNAL STORAGE SCHEDULING

Page 29: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 29

STORAGE SCHEDULER = DELIVER SCALE OUTScale out is not just about adding capacity. A Storage Scheduler will let you:• Add, remove, replace storage provider platforms

– in or out of public cloud• Add, remove, replace schedulers• This is about giving you flexibility and

shifting the burden of keeping up to vendors

Page 30: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 30

POLLY AS A MESOS FRAMEWORK

Page 31: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved. 31

DCOS: THE DATACENTER OPERATING SYSTEM

learn more at mesosphere.com

Page 32: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved.

Data Persistence in the New Container WorldWednesday 3PM

Joshua BernsteinVP of Technology for ETD

Tobi Knaup CEO & Co-Founder of Mesosphere

Guru Session

Page 33: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved.

@EMCcode@cantbewong

mesosphere.comemccode.comcommunity.emccode.com

Come visit us at Booth #1044 or in the vLab

Questions?

Page 34: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources

© Copyright 2016 EMC Corporation. All rights reserved.© Copyright 2016 EMC Corporation. All rights reserved. 34

Page 35: EMC World 2016 - code.04 Extending Mesos for Storage and External Resources