Re: Framework change role
Hi Thodoris, If I understand correctly, you would like your framework to receive offers from both 'role' and '*', so resources reserved to 'role' on particular agent could be reliably supplied to the framework? Isn't it sufficient to start your framework with multiple roles, 'role' & '*'? You need to enable the capability. - J On Wed, Jul 5, 2017 at 7:28 AM, Thodoris Zois wrote: > I have built a Framework in Java that is running certain tasks. I would > like to run those tasks on a specific agent. I have set a role to the > Framework and used flags upon starting of the agent. Till here everything > is good. When framework has run tasks successfully i am not terminating it. > I would like to change its role to default (*) and get offered resources > from master that correspond to that role and it will run again the same > amount of tasks (and the same tasks) because i never terminated (and i > don't want to terminate its instance because i keep some mesos metrics to a > static TreeMap). That's all.. I just wanted somebody to explain me exactly > how it works and what i have to do because everything i have tried today > fails, and seems i can't find useful info on the Internet about this. > > Thank you! > > On 4 Jul 2017, at 21:00, Michael Park wrote: > > What is it that you need help with? > > On Tue, Jul 4, 2017 at 11:12 AM Thodoris Zois wrote: > >> Hello list, >> >> Is anybody available to help me with the new feature of 1.3.0 version, >> that a framework can modify its role? >> >> Thank you > >
Dynamic reservations without a principal
Hi folks, I am trying to have the Chronos framework consume dynamic reservations in Mesos. However, it appears that Chronos is unable to do this because it does not pass the framework principal to Mesos when launching tasks (See https://github.com/mesos/chronos/issues/843), which makes Mesos reject the launch operation. To get around this, I am considering changing my dynamic reservations to be purely role-based instead of (role, principal)-based. Is this allowed/valid? http://mesos.readthedocs.io/en/0.24.1/reservation/# dynamic-reservation-since-0230 says "resources are reserved for a *role*." Does this mean I can make a dynamic reservation just for (role) instead of (role, principal)? Thanks, Srikanth
Re: Framework change role
I have built a Framework in Java that is running certain tasks. I would like to run those tasks on a specific agent. I have set a role to the Framework and used flags upon starting of the agent. Till here everything is good. When framework has run tasks successfully i am not terminating it. I would like to change its role to default (*) and get offered resources from master that correspond to that role and it will run again the same amount of tasks (and the same tasks) because i never terminated (and i don't want to terminate its instance because i keep some mesos metrics to a static TreeMap). That's all.. I just wanted somebody to explain me exactly how it works and what i have to do because everything i have tried today fails, and seems i can't find useful info on the Internet about this. Thank you! > On 4 Jul 2017, at 21:00, Michael Park wrote: > > What is it that you need help with? > >> On Tue, Jul 4, 2017 at 11:12 AM Thodoris Zois wrote: >> Hello list, >> >> Is anybody available to help me with the new feature of 1.3.0 version, that >> a framework can modify its role? >> >> Thank you
Re: Framework change role
What is it that you need help with? On Tue, Jul 4, 2017 at 11:12 AM Thodoris Zois wrote: > Hello list, > > Is anybody available to help me with the new feature of 1.3.0 version, > that a framework can modify its role? > > Thank you
How to detemine Mesos Capabilities?
Hi Mesos allows frameworks to declare it's abilities. How can I get Mesos capabilities from framework perspective? For example, I'm developing a framework that would use Mesos Healthchecks. How can I determine if Mesos version support it. I think it should be a part of subscription response. Currently I need to query Mesos API after subscription to get Mesos version and configuration. What is the best practice to do this? Thanks Tomek
Framework change role
Hello list, Is anybody available to help me with the new feature of 1.3.0 version, that a framework can modify its role? Thank you