Repository: mesos-site Updated Branches: refs/heads/asf-site 4b5607e15 -> 7ec13d7c1
Updated the website built from mesos SHA: 038f4ee. Project: http://git-wip-us.apache.org/repos/asf/mesos-site/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos-site/commit/7ec13d7c Tree: http://git-wip-us.apache.org/repos/asf/mesos-site/tree/7ec13d7c Diff: http://git-wip-us.apache.org/repos/asf/mesos-site/diff/7ec13d7c Branch: refs/heads/asf-site Commit: 7ec13d7c120e42b27bb6acd2c7d0ee0932ee4cfc Parents: 4b5607e Author: jenkins <bui...@apache.org> Authored: Fri Feb 9 02:08:13 2018 +0000 Committer: jenkins <bui...@apache.org> Committed: Fri Feb 9 02:08:13 2018 +0000 ---------------------------------------------------------------------- content/blog/feed.xml | 2 +- .../index.html | 2 +- content/documentation/csi/index.html | 28 ++++++++++++-------- content/documentation/latest/csi/index.html | 28 ++++++++++++-------- 4 files changed, 36 insertions(+), 24 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos-site/blob/7ec13d7c/content/blog/feed.xml ---------------------------------------------------------------------- diff --git a/content/blog/feed.xml b/content/blog/feed.xml index 24afd05..f7a9d86 100644 --- a/content/blog/feed.xml +++ b/content/blog/feed.xml @@ -295,7 +295,7 @@ To learn more about CSI work in Mesos, you can dig into the design document < </ul> -<p>If you are a user and would like to suggest some areas for performance improvement, please let us know by emailing <a href="&#109;&#97;&#x69;&#108;&#116;&#x6f;&#x3a;&#100;&#x65;&#118;&#64;&#97;&#112;&#x61;&#x63;&#104;&#x65;&#46;&#x6d;&#101;&#115;&#x6f;&#115;&#46;&#111;&#114;&#x67;">&#100;&#x65;&#x76;&#64;&#x61;&#x70;&#x61;&#x63;&#x68;&#101;&#46;&#x6d;&#101;&#x73;&#x6f;&#115;&#x2e;&#111;&#x72;&#x67;</a>.</p> +<p>If you are a user and would like to suggest some areas for performance improvement, please let us know by emailing <a href="&#109;&#97;&#105;&#x6c;&#x74;&#111;&#x3a;&#100;&#x65;&#118;&#x40;&#97;&#112;&#97;&#99;&#104;&#101;&#46;&#x6d;&#101;&#115;&#x6f;&#115;&#46;&#111;&#x72;&#x67;">&#100;&#101;&#x76;&#x40;&#97;&#x70;&#x61;&#x63;&#104;&#x65;&#46;&#109;&#101;&#x73;&#x6f;&#115;&#x2e;&#x6f;&#x72;&#x67;</a>.</p> </content> </entry> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/7ec13d7c/content/blog/performance-working-group-progress-report/index.html ---------------------------------------------------------------------- diff --git a/content/blog/performance-working-group-progress-report/index.html b/content/blog/performance-working-group-progress-report/index.html index 71bfc9f..c58be00 100644 --- a/content/blog/performance-working-group-progress-report/index.html +++ b/content/blog/performance-working-group-progress-report/index.html @@ -248,7 +248,7 @@ </ul> -<p>If you are a user and would like to suggest some areas for performance improvement, please let us know by emailing <a href="mailto:dev@apache.mesos.org">dev@apache.mesos.org</a>.</p> +<p>If you are a user and would like to suggest some areas for performance improvement, please let us know by emailing <a href="mailto:dev@apache.mesos.org">dev@apache.mesos.org</a>.</p> </div> </div> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/7ec13d7c/content/documentation/csi/index.html ---------------------------------------------------------------------- diff --git a/content/documentation/csi/index.html b/content/documentation/csi/index.html index 150673f..6e27275 100644 --- a/content/documentation/csi/index.html +++ b/content/documentation/csi/index.html @@ -527,18 +527,18 @@ public: virtual Future<ProfileInfo> translate( const std::string& profile, - const std::string& csiPluginInfoType) = 0; + const ResourceProviderInfo& resourceProviderInfo) = 0; virtual Future<hashset<std::string>> watch( const hashset<std::string>& knownProfiles, - const std::string& csiPluginInfoType) = 0; + const ResourceProviderInfo& resourceProviderInfo) = 0; }; </code></pre> <p>The module interface has a <code>translate</code> method that takes a profile and returns the corresponding <a href="https://github.com/container-storage-interface/spec/blob/v0.1.0/spec.md#createvolume">CSI volume capability</a> (i.e., the <code>capability</code> field) and <a href="https://github.com/container-storage-interface/spec/blob/v0.1.0/spec.md#createvolume">CSI volume creation parameters</a> -(i.e., the <code>parameter</code> field) for that profile. These two fields will be used to +(i.e., the <code>parameters</code> field) for that profile. These two fields will be used to call the CSI <code>CreateVolume</code> interface during dynamic provisioning (i.e., <code>CREATE_VOLUME</code> and <code>CREATE_BLOCK</code>), or CSI <code>ControllerPublishVolume</code> and <code>NodePublishVolume</code> when publishing (i.e., when a task using the disk resources @@ -565,15 +565,21 @@ module parameters that can be used to configure the module:</p> <ul> <li><code>uri</code>: URI to a JSON object containing the profile mapping. The module supports both HTTP(s) and file URIs. The JSON object should consist of some -top-level string keys corresponding to the profile. Each value should contain -a <code>VolumeCapability</code> under <code>volumeCapabilities</code> and arbitrary key-value -pairs under <code>createParameters</code>. For example:</li> +top-level string keys corresponding to the disk profile name. Each value +should contain a <code>ResourceProviderSelector</code> under <code>resource_provider_selector</code> +or a <code>CSIPluginTypeSelector</code> under <code>csi_plugin_type_selector</code> to specify the +set of resource providers this profile applies to, followed by a +<code>VolumeCapability</code> under <code>volume_capabilities</code> and arbitrary key-value pairs +under <code>create_parameters</code>. For example:</li> </ul> <pre><code class="json">{ "profile_matrix": { "my-profile": { + "csi_plugin_type_selector": { + "plugin_type": "org.apache.mesos.csi.test" + }, "volume_capabilities": { "mount": { "fs_type": "xfs" @@ -595,8 +601,8 @@ pairs under <code>createParameters</code>. For example:</li> <ul> <li><code>poll_interval</code>: How long to wait between polling the specified <code>uri</code>. If the poll interval has elapsed since the last fetch, then the URI is re-fetched; -otherwise, a cached ProfileInfo is returned. If not specified, the URI is only -fetched once.</li> +otherwise, a cached <code>ProfileInfo</code> is returned. If not specified, the URI is +only fetched once.</li> <li><code>max_random_wait</code>: How long at most to wait between discovering a new set of profiles and notifying the callers of <code>watch</code>. The actual wait time is a uniform random value between 0 and this value. If the <code>--uri</code> points to a @@ -616,14 +622,14 @@ add the following JSON to the <code>--modules</code> agent flag, and set agent f "modules": [ { "name": "org_apache_mesos_UriDiskProfileAdaptor", - "parameters" : [ + "parameters": [ { "key": "uri", - "value" : "/PATH/TO/my_profile.json" + "value": "/PATH/TO/my_profile.json" }, { "key": "poll_interval", - "value" : "1secs" + "value": "1secs" } ] } http://git-wip-us.apache.org/repos/asf/mesos-site/blob/7ec13d7c/content/documentation/latest/csi/index.html ---------------------------------------------------------------------- diff --git a/content/documentation/latest/csi/index.html b/content/documentation/latest/csi/index.html index f0b87a3..d062dec 100644 --- a/content/documentation/latest/csi/index.html +++ b/content/documentation/latest/csi/index.html @@ -527,18 +527,18 @@ public: virtual Future<ProfileInfo> translate( const std::string& profile, - const std::string& csiPluginInfoType) = 0; + const ResourceProviderInfo& resourceProviderInfo) = 0; virtual Future<hashset<std::string>> watch( const hashset<std::string>& knownProfiles, - const std::string& csiPluginInfoType) = 0; + const ResourceProviderInfo& resourceProviderInfo) = 0; }; </code></pre> <p>The module interface has a <code>translate</code> method that takes a profile and returns the corresponding <a href="https://github.com/container-storage-interface/spec/blob/v0.1.0/spec.md#createvolume">CSI volume capability</a> (i.e., the <code>capability</code> field) and <a href="https://github.com/container-storage-interface/spec/blob/v0.1.0/spec.md#createvolume">CSI volume creation parameters</a> -(i.e., the <code>parameter</code> field) for that profile. These two fields will be used to +(i.e., the <code>parameters</code> field) for that profile. These two fields will be used to call the CSI <code>CreateVolume</code> interface during dynamic provisioning (i.e., <code>CREATE_VOLUME</code> and <code>CREATE_BLOCK</code>), or CSI <code>ControllerPublishVolume</code> and <code>NodePublishVolume</code> when publishing (i.e., when a task using the disk resources @@ -565,15 +565,21 @@ module parameters that can be used to configure the module:</p> <ul> <li><code>uri</code>: URI to a JSON object containing the profile mapping. The module supports both HTTP(s) and file URIs. The JSON object should consist of some -top-level string keys corresponding to the profile. Each value should contain -a <code>VolumeCapability</code> under <code>volumeCapabilities</code> and arbitrary key-value -pairs under <code>createParameters</code>. For example:</li> +top-level string keys corresponding to the disk profile name. Each value +should contain a <code>ResourceProviderSelector</code> under <code>resource_provider_selector</code> +or a <code>CSIPluginTypeSelector</code> under <code>csi_plugin_type_selector</code> to specify the +set of resource providers this profile applies to, followed by a +<code>VolumeCapability</code> under <code>volume_capabilities</code> and arbitrary key-value pairs +under <code>create_parameters</code>. For example:</li> </ul> <pre><code class="json">{ "profile_matrix": { "my-profile": { + "csi_plugin_type_selector": { + "plugin_type": "org.apache.mesos.csi.test" + }, "volume_capabilities": { "mount": { "fs_type": "xfs" @@ -595,8 +601,8 @@ pairs under <code>createParameters</code>. For example:</li> <ul> <li><code>poll_interval</code>: How long to wait between polling the specified <code>uri</code>. If the poll interval has elapsed since the last fetch, then the URI is re-fetched; -otherwise, a cached ProfileInfo is returned. If not specified, the URI is only -fetched once.</li> +otherwise, a cached <code>ProfileInfo</code> is returned. If not specified, the URI is +only fetched once.</li> <li><code>max_random_wait</code>: How long at most to wait between discovering a new set of profiles and notifying the callers of <code>watch</code>. The actual wait time is a uniform random value between 0 and this value. If the <code>--uri</code> points to a @@ -616,14 +622,14 @@ add the following JSON to the <code>--modules</code> agent flag, and set agent f "modules": [ { "name": "org_apache_mesos_UriDiskProfileAdaptor", - "parameters" : [ + "parameters": [ { "key": "uri", - "value" : "/PATH/TO/my_profile.json" + "value": "/PATH/TO/my_profile.json" }, { "key": "poll_interval", - "value" : "1secs" + "value": "1secs" } ] }