You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2017/09/18 19:04:53 UTC

[08/16] mesos git commit: Moved xfs disk isolator doc to the isolators folder.

Moved xfs disk isolator doc to the isolators folder.

Review: https://reviews.apache.org/r/62299


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/7f967f24
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/7f967f24
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/7f967f24

Branch: refs/heads/master
Commit: 7f967f2432647aea5eebe51d433e206317be3f97
Parents: 533ac06
Author: Jie Yu <yu...@gmail.com>
Authored: Wed Sep 13 11:50:12 2017 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Mon Sep 18 12:04:38 2017 -0700

----------------------------------------------------------------------
 docs/isolators/disk-xfs.md  | 43 ++++++++++++++++++++++++++++++++++++++++
 docs/mesos-containerizer.md | 40 -------------------------------------
 2 files changed, 43 insertions(+), 40 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/7f967f24/docs/isolators/disk-xfs.md
----------------------------------------------------------------------
diff --git a/docs/isolators/disk-xfs.md b/docs/isolators/disk-xfs.md
new file mode 100644
index 0000000..e56f647
--- /dev/null
+++ b/docs/isolators/disk-xfs.md
@@ -0,0 +1,43 @@
+---
+title: Apache Mesos - XFS Disk Isolator in Mesos Containerizer
+layout: documentation
+---
+
+# XFS Disk Isolator in Mesos Containerizer
+
+The `disk/xfs` isolator uses XFS project quotas to track the disk space
+used by each container sandbox and to enforce the corresponding disk
+space allocation. When quota enforcement is enabled, write operations
+performed by tasks exceeding their disk allocation will fail with an
+`EDQUOT` error. The task will not be terminated by the containerizer.
+
+To enable the XFS Disk isolator, append `disk/xfs` to the `--isolation`
+flag when starting the agent.
+
+The XFS Disk isolator supports the `--enforce_container_disk_quota` flag.
+If enforcement is enabled, the isolator will set both the hard and soft
+quota limit. Otherwise, no limits will be set, Disk usage accounting
+will be performed but the task will be allowed to exceed its allocation.
+
+The XFS Disk isolator requires the sandbox directory to be located
+on an XFS filesystem that is mounted with the `pquota` option. There
+is no need to configure
+[projects](http://man7.org/linux/man-pages/man5/projects.5.html)
+or [projid](http://man7.org/linux/man-pages/man5/projid.5.html)
+files. The range of project IDs given to the `--xfs_project_range`
+must not overlap any project IDs allocated for other uses.
+
+The [xfs_quota](http://man7.org/linux/man-pages/man8/xfs_quota.8.html)
+command can be used to show the current allocation of project IDs
+and quota. For example:
+
+    $ xfs_quota -x -c "report -a -n -L 5000 -U 10000"
+
+To show which project a file belongs to, use the
+[xfs_io](http://man7.org/linux/man-pages/man8/xfs_io.8.html) command
+to display the `fsxattr.projid` field. For example:
+
+    $ xfs_io -r -c stat /mnt/mesos/
+
+Note that the Posix Disk isolator `--container_disk_watch_interval`
+does not apply to the XFS Disk isolator.

http://git-wip-us.apache.org/repos/asf/mesos/blob/7f967f24/docs/mesos-containerizer.md
----------------------------------------------------------------------
diff --git a/docs/mesos-containerizer.md b/docs/mesos-containerizer.md
index 2af8489..9174846 100644
--- a/docs/mesos-containerizer.md
+++ b/docs/mesos-containerizer.md
@@ -13,46 +13,6 @@ can selectively enable different isolators.
 It also provides basic support for POSIX systems (e.g., OSX) but
 without any actual isolation, only resource usage reporting.
 
-### XFS Disk Isolator
-
-The XFS Disk isolator uses XFS project quotas to track the disk space
-used by each container sandbox and to enforce the corresponding disk
-space allocation. When quota enforcement is enabled, write operations
-performed by tasks exceeding their disk allocation will fail with an
-`EDQUOT` error. The task will not be terminated by the containerizer.
-
-To enable the XFS Disk isolator, append `disk/xfs` to the `--isolation`
-flag when starting the agent.
-
-The XFS Disk isolator supports the `--enforce_container_disk_quota` flag.
-If enforcement is enabled, the isolator will set both the hard and soft
-quota limit. Otherwise, no limits will be set, Disk usage accounting
-will be performed but the task will be allowed to exceed its allocation.
-
-The XFS Disk isolator requires the sandbox directory to be located
-on an XFS filesystem that is mounted with the `pquota` option. There
-is no need to configure
-[projects](http://man7.org/linux/man-pages/man5/projects.5.html)
-or [projid](http://man7.org/linux/man-pages/man5/projid.5.html)
-files. The range of project IDs given to the `--xfs_project_range`
-must not overlap any project IDs allocated for other uses.
-
-The [xfs_quota](http://man7.org/linux/man-pages/man8/xfs_quota.8.html)
-command can be used to show the current allocation of project IDs
-and quota. For example:
-
-    $ xfs_quota -x -c "report -a -n -L 5000 -U 10000"
-
-To show which project a file belongs to, use the
-[xfs_io](http://man7.org/linux/man-pages/man8/xfs_io.8.html) command
-to display the `fsxattr.projid` field. For example:
-
-    $ xfs_io -r -c stat /mnt/mesos/
-
-Note that the Posix Disk isolator `--container_disk_watch_interval`
-does not apply to the XFS Disk isolator.
-
-
 ### Docker Runtime Isolator
 
 The Docker Runtime isolator is used for supporting runtime