Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for MESOS-1688 #24

Closed
wants to merge 2 commits into from
Closed

Fix for MESOS-1688 #24

wants to merge 2 commits into from

Conversation

MartinWeindel
Copy link
Contributor

As already explained in MESOS-1688, there are schedulers allocating memory only for the executor and not for tasks. For tasks only CPU resources are allocated in this case.
Such a scheduler does not get offered any idle CPUs if the slave has nearly used up all memory.
This can easily lead to a dead lock (in the application, not in Mesos).

Simple example:

  1. Scheduler allocates all memory of a slave for an executor
  2. Scheduler launches a task for this executor (allocating 1 CPU)
  3. Task finishes: 1 CPU , 0 MB memory allocatable.
  4. No offers are made, as no memory is left. Scheduler will wait of offers forever. Dead lock in the application.

To fix this problem, offers must be made if either CPU or memory is allocatable.

@MartinWeindel MartinWeindel changed the title Fix for MESOS-1688 Obsolete - please ignore Aug 25, 2014
@MartinWeindel MartinWeindel changed the title Obsolete - please ignore Fix for MESOS-1688 Aug 25, 2014
@tnachen
Copy link
Contributor

tnachen commented Aug 25, 2014

hi @MartinWeindel, can you post on reviewboard instead? That's how all the mesos patches are reviewed.

@MartinWeindel
Copy link
Contributor Author

post on reviewboard will follow

andreaspeters pushed a commit to m3scluster/clusterd that referenced this pull request Nov 17, 2023
….11.0-0.4.0 into master

Reviewed-on: https://gitea:3000/AVENTER/clusterd/pulls/24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants