You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2012/12/11 01:02:37 UTC
svn commit: r1419930 - /incubator/mesos/branches/0.10.x/src/slave/slave.cpp
Author: benh
Date: Tue Dec 11 00:02:36 2012
New Revision: 1419930
URL: http://svn.apache.org/viewvc?rev=1419930&view=rev
Log:
*** MODIFIED FOR 0.10.0 ***
Added ports (31000-32000) as default resouces.
Review: https://reviews.apache.org/r/7540
Modified:
incubator/mesos/branches/0.10.x/src/slave/slave.cpp
Modified: incubator/mesos/branches/0.10.x/src/slave/slave.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/branches/0.10.x/src/slave/slave.cpp?rev=1419930&r1=1419929&r2=1419930&view=diff
==============================================================================
--- incubator/mesos/branches/0.10.x/src/slave/slave.cpp (original)
+++ incubator/mesos/branches/0.10.x/src/slave/slave.cpp Tue Dec 11 00:02:36 2012
@@ -136,8 +136,10 @@ Slave::Slave(const flags::Flags<logging:
}
}
- Try<string> defaults =
- strings::format("cpus:%d;mem:%d", cpus.get(), mem.get());
+ Try<string> defaults = strings::format(
+ "cpus:%d;mem:%d;ports:[31000-32000]",
+ cpus.get(),
+ mem.get());
CHECK(defaults.isSome());