You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by dl...@apache.org on 2015/04/20 20:30:20 UTC
svn commit: r1674959 [3/3] - in /mesos/site: publish/ publish/blog/
publish/blog/mesos-0-20-0-released/
publish/documentation/attributes-resources/
publish/documentation/configuration/ publish/documentation/getting-started/
publish/documentation/latest...
Modified: mesos/site/source/documentation/latest/attributes-resources.md
URL: http://svn.apache.org/viewvc/mesos/site/source/documentation/latest/attributes-resources.md?rev=1674959&r1=1674958&r2=1674959&view=diff
==============================================================================
--- mesos/site/source/documentation/latest/attributes-resources.md (original)
+++ mesos/site/source/documentation/latest/attributes-resources.md Mon Apr 20 18:30:19 2015
@@ -1,6 +1,6 @@
---
+---
layout: documentation
---
+---
# Mesos Attributes & Resources
@@ -44,23 +44,23 @@ The Mesos system can manage 3 different
The Mesos master has a few resources that it pre-defines in how it handles them. At the current time, this list consist of:
- - `cpu`
+ - `cpus`
- `mem`
- `disk`
- `ports`
-In particular, a slave without `cpu` and `mem` resources will never have its resources advertised to any frameworks. Also, the Master's user interface interprets the scalars in `mem` and `disk` in terms of *`MB`*. IE: the value `15000` is displayed as `14.65GB`.
+In particular, a slave without `cpus` and `mem` resources will never have its resources advertised to any frameworks. Also, the Master's user interface interprets the scalars in `mem` and `disk` in terms of *`MB`*. IE: the value `15000` is displayed as `14.65GB`.
## Examples
Here are some examples for configuring the Mesos slaves.
- --resources='cpu:24;mem:24576;disk:409600;ports:[21000-24000];bugs:{a,b,c}'
+ --resources='cpus:24;mem:24576;disk:409600;ports:[21000-24000];bugs:{a,b,c}'
--attributes='rack:abc;zone:west;os:centos5,full'
-In this case, we have three different types of resources, scalars, a range, and a set. They are called `cpu`, `mem`, `disk`, and the range type is `ports`.
+In this case, we have three different types of resources, scalars, a range, and a set. They are called `cpus`, `mem`, `disk`, and the range type is `ports`.
- - scalar called `cpu`, with the value `24`
+ - scalar called `cpus`, with the value `24`
- scalar called `mem`, with the value `24576`
- scalar called `disk`, with the value `409600`
- range called `ports`, with values `21000` through `24000` (inclusive)
Modified: mesos/site/source/documentation/latest/configuration.md
URL: http://svn.apache.org/viewvc/mesos/site/source/documentation/latest/configuration.md?rev=1674959&r1=1674958&r2=1674959&view=diff
==============================================================================
--- mesos/site/source/documentation/latest/configuration.md (original)
+++ mesos/site/source/documentation/latest/configuration.md Mon Apr 20 18:30:19 2015
@@ -456,18 +456,6 @@ file:///path/to/file (where file contain
</tr>
<tr>
<td>
- --slave_removal_rate_limit=VALUE
- </td>
- <td>
- The maximum rate (e.g., 1/10mins, 2/3hrs, etc) at which slaves will
- be removed from the master when they fail health checks. By default
- slaves will be removed as soon as they fail the health checks.
- <p/>
- The value is of the form 'Number of slaves'/'Duration'
- </td>
- </tr>
- <tr>
- <td>
--registry=VALUE
</td>
<td>
Modified: mesos/site/source/documentation/latest/getting-started.md
URL: http://svn.apache.org/viewvc/mesos/site/source/documentation/latest/getting-started.md?rev=1674959&r1=1674958&r2=1674959&view=diff
==============================================================================
--- mesos/site/source/documentation/latest/getting-started.md (original)
+++ mesos/site/source/documentation/latest/getting-started.md Mon Apr 20 18:30:19 2015
@@ -77,7 +77,7 @@ There are different ways you can get Mes
$ sudo yum groupinstall -y "Development Tools"
- $ sudo yum install -y python-devel java-1.7.0-openjdk-devel zlib-devel libcurl-devel openssl-devel cyrus-sasl-devel cyrus-sasl-md5 apr-devel subversion-devel apr-utils-devel
+ $ sudo yum install -y python-devel java-1.7.0-openjdk-devel zlib-devel libcurl-devel openssl-devel cyrus-sasl-devel cyrus-sasl-md5 apr-devel subversion-devel apr-util-devel
# Install maven.
$ wget http://mirror.nexcess.net/apache/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz
Modified: mesos/site/source/documentation/latest/mesos-c++-style-guide.md
URL: http://svn.apache.org/viewvc/mesos/site/source/documentation/latest/mesos-c%2B%2B-style-guide.md?rev=1674959&r1=1674958&r2=1674959&view=diff
==============================================================================
--- mesos/site/source/documentation/latest/mesos-c++-style-guide.md (original)
+++ mesos/site/source/documentation/latest/mesos-c++-style-guide.md Mon Apr 20 18:30:19 2015
@@ -92,7 +92,8 @@ We still support older compilers. The wh
* Static assertions.
* Multiple right angle brackets.
-* Type inference (`auto` and `decltype`). The main goal is to increase code readability. Here are several examples:
+* Type inference (`auto` and `decltype`). The main goal is to increase code readability. This is safely the case if the exact same type omitted on the left is already fully stated on the right.
+* Here are several examples:
<pre>
// 1: OK.
@@ -100,7 +101,12 @@ const auto& i = values.find(keys.front()
// Compare with
const typename map::iterator& i = values.find(keys.front());
-// 2: Don't use.
+// 2: OK.
+auto names = shared_ptr<list<string>>(new list<string>());
+// Compare with
+shared_ptr<list<string>> names = shared_ptr<list<string>>(new list<string>());
+
+// 3: Don't use.
auto authorizer = LocalAuthorizer::create(acls);
// Compare with
Try<Owned<LocalAuthorizer>> authorizer = LocalAuthorizer::create();