You have to change the range the slaves are allowed to offer. You can do that by adding an entry to the '--resources' startup option.
E.g. mesos-slave --master=... --resources=ports:[40000-41000] You have to do that on every slave that should offer these ports. Cheers, Dario > On 03.05.2015, at 12:25, Aslan Bekirov <[email protected]> wrote: > > Hi, > > I am running a framework on Mesos. Mesos default offers port range as > [31000-32000] but I want my framework to use different range or different > specific port. > > I am assigning different port range in my framework TaskInfo but task is > getting lost and I am getting log as follows: > > "Task 0 attempted to use cpus(*):1; mem(*):128; ports(*):[40000-41000] which > is greater than offered mem(*):2791; disk(*):1807; ports(*):[31000-32000]; > cpus(*):4'" > > The question is, can I assign different port range or specific port to my > framework or am I missing something? > > BR, > Aslan

