Lecture 7 Flashcards

1
Q

Describe the main problem Mesos framework is trying to address

A
  • Difficult for a single framework to manage resources of clusters

Aim:

  • To run multiple frameworks in a single cluster to maximise utilisation + share between frameworks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the common solutions for sharing clusters?

A

Statically partition the cluster and run framework per partition

  • Low utilisation
  • Rigid partitioning which does not match real time changing application demands
  • Mismatch between allocated granularity of static partitioning of current application
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Mesos and Goals?

A

Is a common resource sharing layer which diverse frameworks can run for accessing cluster resources

Goals

  • High utilization
  • Support diverse frameworks: Has different scheduling needs
  • Scalability: to 10,000’s nodes
  • Reliability: in face of failures and high availability
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the Design Elements?

A
  • Fine-grained sharing:

Allocation at the level of tasks within a job, improves: utilisation, latency and data locality

  • Resource offers:

Simple, scalable application-controlled scheduling mechanism

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How Mesos use resource offer to allocate resources to different frameworks?

A
  • Simple, scalable application-controlled scheduling mechanism
  • Offers different resources to frameworks to pick to launch
  • Rejects offers that do not satisfy with the constraints
  • The framework has to wait a long time to receive an offer to satisfy the constraint – time consuming

Pros: Keeps Mesos simple, expandable for future frameworks

Cons: Decentralised solutions are not optimal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Draw the Mesos Architecture diagram

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Describe the different responsibilities of scheduling between the Mesos master + the framework schedulers

A

Mesos Terminology

  • Mesos Master: Fine-grained sharing across frameworks
  • Mesos Slave: On each node
  • Frameworks that run tasks on slave nodes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Describe the Mesos Architecture

A
  • Fair sharing based on generalisation of max-min fairness for multiple resources
  • Strict priorities
  • Mesos revoke (kill) tasks when framework uses up the resources for a while
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Describe how Omega uses shared state to allocate resources to different frameworks

A
  1. A framework’s scheduler makes a decision
  2. Updates the shared the cell state copy in atomic commit
  3. One must succeed
  4. The scheduler resyncs its local copy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Main Advantage of Omega

A

Fast

Cell state: The master copies the resources and allocates the cluster

Each framework maintains its own scheduler. Each scheduler has its own private, local, frequently updated copy of its cell to make decisions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Disadvantages of Omega

A

Under certain conditions

  • Omega schedulers operation in parallel
  • Schedulers do incremental transactions to avoid starvation
  • Performance viability of shared-state determined by the frequency which transactions will fail + costs!
How well did you know this?
1
Not at all
2
3
4
5
Perfectly