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

Translating Diego Resource to Mesos Resource #1

Open
ilackarms opened this issue Nov 25, 2015 · 1 comment
Open

Translating Diego Resource to Mesos Resource #1

ilackarms opened this issue Nov 25, 2015 · 1 comment

Comments

@ilackarms
Copy link
Member

There's no clear translation between Diego's concept of a Resource, and Mesos' concept of a resource:

// TODO: how to allocate cpu since no cpu requirement in diego auction

We should look into ways to determine the CPU requirement of a Diego task and the Container Capacity of a Mesos Resource Offer.

@jianhuiz
Copy link
Member

Diego calculates CPU weights based on app memory usage (256MB8192MB => 1100).

In order to mimic this situation, a possible solution could be allocate the CPU at the same proportion of the memory required vs. memory Offered. E.g. allocate 0.5 CPU for a app that requires 1GB memory against an offer with 4 CPUs and 8GB memory, as a result this app gets 1/8 of CPUs and 1/8 of memory. A second app that requires 2GB memory will get 1 CPU, or let's say 0.5 CPU per GB memory.

In Mesos environment, the resource could be used by other frameworks, which means the free CPU Memory ratio will change, in order to get a fairness CPU allocation for all the Diego apps (on the same slave), the CPU allocation per GB memory should be calculated and remain constant when the first task was launched on a slave.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants