[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mesos-user
Subject:    Re: Resource offers - DRF - Mesos
From:       Thodoris Zois <zois () ics ! forth ! gr>
Date:       2018-05-22 20:39:13
Message-ID: 4B9E3D17-DF72-4AAC-A147-9DCF61EF3177 () ics ! forth ! gr
[Download RAW message or body]

Thank you very much,

This is exactly the answer I was searching for!

- Thodoris

> On 22 May 2018, at 21:10, Joseph Wu <joseph@mesosphere.io> wrote:
> 
> 1) DRF is based on the _current_ allocation of resources (from the master's \
> perspective) rather than a historical allocation of resources. 
> 2) So when a new cluster is started, all frameworks will have a current allocation \
> of 0.  And assuming all else (like quotas, roles, and weights) are equivalent (or \
> not set to anything), then your 2 frameworks would receive roughly equal shares of \
> offers. 
> 3) As of right now, there is no way for the framework to directly influence the \
> number of offers received in a single call.  The best approach to getting offers on \
> multiple machines is to hold onto the offers (i.e. not accepting nor declining \
> them) until your necessary conditions have been met. 
> > On Tue, May 22, 2018 at 2:56 AM, Thodoris Zois <zois@ics.forth.gr> wrote:
> > Hello list,
> > 
> > I have some questions about resource offers for Mesos and I am
> > experiencing some problems that I hope somebody will be able to help.
> > 
> > 1) The allocation module of Mesos master uses DRF (according to
> > previous allocation history) and decides which framework will get an
> > offer, and how many resources will be offered. Is this right?
> > 
> > 2) Assume that a Mesos cluster starts for the very first time and 2
> > frameworks join. None of the frameworks has a job to submit, they just
> > wait and get offers. What is the policy to send resource offers since
> > master does not know anything about previous allocations?
> > 
> > 3) I got a Mesos cluster with 5 machines and 1 framework only. Is there
> > any way to force Mesos send everytime all the five resource offers to
> > my framework? I have seen that when the framework registers for the
> > first time, it gets a list of offers that include all 5 machines.
> > However, if it does not accept them the next round of offers contains
> > only 2 or even 1 machine, depending on the time that framework has
> > declined.
> > 
> > Thank you very much for your response,
> > Any help is appreciated!
> > 
> > - Thodoris
> 


[Attachment #3 (text/html)]

<html><head><meta http-equiv="content-type" content="text/html; \
charset=utf-8"></head><body dir="auto">Thank you very much,<div><br></div><div>This \
is exactly the answer I was searching for!<br><br><div>- Thodoris</div><div><br>On 22 \
May 2018, at 21:10, Joseph Wu &lt;<a \
href="mailto:joseph@mesosphere.io">joseph@mesosphere.io</a>&gt; \
wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div><div>1) DRF is \
based on the _current_ allocation of resources (from the master's perspective) rather \
than a historical allocation of resources.<br><br></div>2) So when a new cluster is \
started, all frameworks will have a current allocation of 0.&nbsp; And assuming all \
else (like quotas, roles, and weights) are equivalent (or not set to anything), then \
your 2 frameworks would receive roughly equal shares of offers.<br><br></div>3) As of \
right now, there is no way for the framework to directly influence the number of \
offers received in a single call.&nbsp; The best approach to getting offers on \
multiple machines is to hold onto the offers (i.e. not accepting nor declining them) \
until your necessary conditions have been met.<br></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Tue, May 22, 2018 at 2:56 AM, \
Thodoris Zois <span dir="ltr">&lt;<a href="mailto:zois@ics.forth.gr" \
target="_blank">zois@ics.forth.gr</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Hello list,<br> <br>
I have some questions about resource offers for Mesos and I am<br>
experiencing some problems that I hope somebody will be able to help.<br>
<br>
1) The allocation module of Mesos master uses DRF (according to<br>
previous allocation history) and decides which framework will get an<br>
offer, and how many resources will be offered. Is this right?<br>
<br>
2) Assume that a Mesos cluster starts for the very first time and 2<br>
frameworks join. None of the frameworks has a job to submit, they just<br>
wait and get offers. What is the policy to send resource offers since<br>
master does not know anything about previous allocations?<br>
<br>
3) I got a Mesos cluster with 5 machines and 1 framework only. Is there<br>
any way to force Mesos send everytime all the five resource offers to<br>
my framework? I have seen that when the framework registers for the<br>
first time, it gets a list of offers that include all 5 machines.<br>
However, if it does not accept them the next round of offers contains<br>
only 2 or even 1 machine, depending on the time that framework has<br>
declined.<br>
<br>
Thank you very much for your response,<br>
Any help is appreciated!<br>
<span class="HOEnZb"><font color="#888888"><br>
- Thodoris<br>
</font></span></blockquote></div><br></div>
</div></blockquote></div></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic