Mesos Problem Different applications need different frameworks How - - PowerPoint PPT Presentation

mesos problem
SMART_READER_LITE
LIVE PREVIEW

Mesos Problem Different applications need different frameworks How - - PowerPoint PPT Presentation

Mesos Problem Different applications need different frameworks How can we share a cluster among multiple frameworks? Statically partitioning the cluster Centralized task scheduler Key ideas Fine-grained sharing Key ideas


slide-1
SLIDE 1

Mesos

slide-2
SLIDE 2

Problem

  • Different applications need different frameworks
  • How can we share a cluster among multiple frameworks?

○ Statically partitioning the cluster ○ Centralized task scheduler

slide-3
SLIDE 3

Key ideas

  • Fine-grained sharing
slide-4
SLIDE 4
slide-5
SLIDE 5
slide-6
SLIDE 6

Key ideas

  • Fine-grained sharing
  • Decentralized scheduling

○ Mesos decides resource offers ○ Frameworks can reject

slide-7
SLIDE 7
slide-8
SLIDE 8
slide-9
SLIDE 9

Optimizations

  • Frameworks can set resource filters
  • Master can revoke tasks

○ Master can set guaranteed allocation ○ Frameworks can call setNeedsOffers(bool)

slide-10
SLIDE 10

Frameworks should behave

  • Resources offered count as resources allocated
  • Mesos can rescind offers after a timeout
  • Short tasks
  • Elastic scaling
slide-11
SLIDE 11

Scalability and fault tolerance

  • Master has soft state

○ Active slaves, active frameworks, running tasks

  • Multiple masters with leader election
  • Frameworks deal with own failures
slide-12
SLIDE 12

Use case: Best with...

  • Elastic frameworks
  • Homogeneous task durations
  • Frameworks that prefer nodes equally
slide-13
SLIDE 13
  • If each framework can get preferred slots, they will
  • Else, lottery scheduling

○ Frameworks will probably get proportionate numbers of preferred slots

  • Delay scheduling → data locality

Use case: Frameworks prefer nodes

slide-14
SLIDE 14

Use case: Heterogeneous task durations

  • Okay when there are many slots or not many long tasks
  • Master can reserve space for short tasks
  • Master can set minimum offer size for long tasks
slide-15
SLIDE 15

Limitations

  • Fragmentation (bounded)
  • Framework interdependence
  • Framework schedulers required to use resource offers
slide-16
SLIDE 16

Jobs have higher utilization than static partitioning

slide-17
SLIDE 17

Jobs finish at least as fast as in static partitioning

slide-18
SLIDE 18

Questions?