{"action":"created","comment":{"url":"https://api.github.com/repos/zstackorg/doc-ch/pulls/comments/48207568","id":48207568,"diff_hunk":"@@ -0,0 +1,482 @@\n+.. _cluster:\n+\n+=======\n+集群（Cluster）\n+=======\n+\n+.. contents:: `目录`\n+   :depth: 6\n+\n+--------\n+概览（Overview）\n+--------\n+\n+一个集群是类似主机组成的逻辑组. 在同一个集群中的主机必须安装相同的操作系统(管理程序，hypervisor), 拥有相同的二层网络连接, 可以访问相同的主存储. \n+在实际的数据中心, 一个集群通常对应一个机架（rack）.\n+\n+下图展示了一个 典型的集群，以及它和主存储，L2网络之间的关系.\n+\n+.. image:: cluster.png\n+   :align: center\n+\n+一个集群可以挂载一个或者多个主存储, 只要这些主存储可以被这个集群中的所有主机访问. 同时, 主存储也可以从集群卸载;\n+在数据中心的网络拓扑发生改变导致主存储不能被集群中的主机继续访问的时候，这非常有用.\n+\n+一个集群可以挂载一个或多个L2网络, 只要集群中的主机都在这个L2网络所代表的物理二层广播域中. 同时，L2网络也可以从集群卸载, 如果数据中心的网络拓扑发生改变导致集群中的主机不再在L2网络所代表的物理二层广播域中.\n+\n+集群的规模，也就是每个集群中可以包含主机的最大数量，没有限制.\n+\n+\n+.. _cluster inventory:\n+\n+---------\n+清单（Inventory)\n+---------\n+\n+属性（Properties）\n+==========\n+\n+.. list-table::\n+   :widths: 20 40 10 20 10\n+   :header-rows: 1\n+\n+   * - 名字\n+     - 描述\n+     - 可选的\n+     - 可选的参数值\n+     - 起始支持版本\n+   * - **uuid**\n+     - 请参见 :ref:`resource properties`\n+     -\n+     -\n+     - 0.6\n+   * - **name**\n+     - 请参见 :ref:`resource properties`\n+     -\n+     -\n+     - 0.6\n+   * - **description**\n+     - 请参见 :ref:`resource properties`\n+     - 是\n+     -\n+     - 0.6\n+   * - **hypervisorType**\n+     - 请参见 `cluster hypervisor type`_\n+     -\n+     - - KVM\n+     - 0.6\n+   * - **state**\n+     - 请参见 `cluster state`_\n+     -\n+     - - Enabled\n+       - Disabled\n+     - 0.6\n+   * - **zoneUuid**\n+     - 包含集群的区域uuid. 请参见 :ref:`zone <zone>`.\n+     -\n+     -\n+     - 0.6\n+   * - **createDate**\n+     - 请参见 :ref:`resource properties`\n+     -\n+     -\n+     - 0.6\n+   * - **lastOpDate**\n+     - 请参见 :ref:`resource properties`\n+     -\n+     -\n+     - 0.6\n+   * - **type**\n+     - 保留域\n+     -\n+     -\n+     - 0.6\n+   * - **userTags**\n+     - 用户标签, 请参见 :ref:`create tags`\n+     - 是\n+     -\n+     - 0.6\n+   * - **systemTags**\n+     - 系统标签, 请参见 :ref:`create tags`\n+     - 是\n+     -\n+     - 0.6\n+\n+示例\n+=======\n+\n+::\n+\n+    {\n+      \"inventory\": {\n+        \"uuid\": \"c1bd173d5cd84f0e9e7c47195ae27ec6\",\n+        \"name\": \"cluster1\",\n+        \"description\": \"test\",\n+        \"state\": \"Enabled\",\n+        \"zoneUuid\": \"1b830f5bd1cb469b821b4b77babfdd6f\"\n+        \"hypervisorType\": \"KVM\",\n+        \"lastOpDate\": \"Jun 1, 2015 5:54:09 PM\",\n+        \"createDate\": \"Jun 1, 2015 5:54:09 PM\",\n+        \"type\": \"zstack\",\n+      }\n+    }\n+\n+.. _cluster hypervisor type:\n+\n+管理程序类型（Hypervisor Type）","path":"userManual/cluster.rst","position":126,"original_position":126,"commit_id":"fc36d7615b44f53f0eae8ad46b6c943888daa95a","original_commit_id":"fc36d7615b44f53f0eae8ad46b6c943888daa95a","user":{"login":"youyk","id":2962014,"avatar_url":"https://avatars.githubusercontent.com/u/2962014?v=3","gravatar_id":"","url":"https://api.github.com/users/youyk","html_url":"https://github.com/youyk","followers_url":"https://api.github.com/users/youyk/followers","following_url":"https://api.github.com/users/youyk/following{/other_user}","gists_url":"https://api.github.com/users/youyk/gists{/gist_id}","starred_url":"https://api.github.com/users/youyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youyk/subscriptions","organizations_url":"https://api.github.com/users/youyk/orgs","repos_url":"https://api.github.com/users/youyk/repos","events_url":"https://api.github.com/users/youyk/events{/privacy}","received_events_url":"https://api.github.com/users/youyk/received_events","type":"User","site_admin":false},"body":"虚拟机管理程序类型","created_at":"2015-12-22T00:02:41Z","updated_at":"2015-12-22T00:02:41Z","html_url":"https://github.com/zstackorg/doc-ch/pull/11#discussion_r48207568","pull_request_url":"https://api.github.com/repos/zstackorg/doc-ch/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/zstackorg/doc-ch/pulls/comments/48207568"},"html":{"href":"https://github.com/zstackorg/doc-ch/pull/11#discussion_r48207568"},"pull_request":{"href":"https://api.github.com/repos/zstackorg/doc-ch/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/zstackorg/doc-ch/pulls/11","id":54259517,"html_url":"https://github.com/zstackorg/doc-ch/pull/11","diff_url":"https://github.com/zstackorg/doc-ch/pull/11.diff","patch_url":"https://github.com/zstackorg/doc-ch/pull/11.patch","issue_url":"https://api.github.com/repos/zstackorg/doc-ch/issues/11","number":11,"state":"open","locked":false,"title":"Create cluster.rst","user":{"login":"quarkonics","id":11512078,"avatar_url":"https://avatars.githubusercontent.com/u/11512078?v=3","gravatar_id":"","url":"https://api.github.com/users/quarkonics","html_url":"https://github.com/quarkonics","followers_url":"https://api.github.com/users/quarkonics/followers","following_url":"https://api.github.com/users/quarkonics/following{/other_user}","gists_url":"https://api.github.com/users/quarkonics/gists{/gist_id}","starred_url":"https://api.github.com/users/quarkonics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quarkonics/subscriptions","organizations_url":"https://api.github.com/users/quarkonics/orgs","repos_url":"https://api.github.com/users/quarkonics/repos","events_url":"https://api.github.com/users/quarkonics/events{/privacy}","received_events_url":"https://api.github.com/users/quarkonics/received_events","type":"User","site_admin":false},"body":"Add chinese version of cluster.rst","created_at":"2015-12-21T14:06:26Z","updated_at":"2015-12-22T00:02:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9d5ca7a1694a4f9f90e8e31eff9b1e648fe5c342","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zstackorg/doc-ch/pulls/11/commits","review_comments_url":"https://api.github.com/repos/zstackorg/doc-ch/pulls/11/comments","review_comment_url":"https://api.github.com/repos/zstackorg/doc-ch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zstackorg/doc-ch/issues/11/comments","statuses_url":"https://api.github.com/repos/zstackorg/doc-ch/statuses/fc36d7615b44f53f0eae8ad46b6c943888daa95a","head":{"label":"quarkonics:patch-10","ref":"patch-10","sha":"fc36d7615b44f53f0eae8ad46b6c943888daa95a","user":{"login":"quarkonics","id":11512078,"avatar_url":"https://avatars.githubusercontent.com/u/11512078?v=3","gravatar_id":"","url":"https://api.github.com/users/quarkonics","html_url":"https://github.com/quarkonics","followers_url":"https://api.github.com/users/quarkonics/followers","following_url":"https://api.github.com/users/quarkonics/following{/other_user}","gists_url":"https://api.github.com/users/quarkonics/gists{/gist_id}","starred_url":"https://api.github.com/users/quarkonics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quarkonics/subscriptions","organizations_url":"https://api.github.com/users/quarkonics/orgs","repos_url":"https://api.github.com/users/quarkonics/repos","events_url":"https://api.github.com/users/quarkonics/events{/privacy}","received_events_url":"https://api.github.com/users/quarkonics/received_events","type":"User","site_admin":false},"repo":{"id":41674943,"name":"doc-ch","full_name":"quarkonics/doc-ch","owner":{"login":"quarkonics","id":11512078,"avatar_url":"https://avatars.githubusercontent.com/u/11512078?v=3","gravatar_id":"","url":"https://api.github.com/users/quarkonics","html_url":"https://github.com/quarkonics","followers_url":"https://api.github.com/users/quarkonics/followers","following_url":"https://api.github.com/users/quarkonics/following{/other_user}","gists_url":"https://api.github.com/users/quarkonics/gists{/gist_id}","starred_url":"https://api.github.com/users/quarkonics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quarkonics/subscriptions","organizations_url":"https://api.github.com/users/quarkonics/orgs","repos_url":"https://api.github.com/users/quarkonics/repos","events_url":"https://api.github.com/users/quarkonics/events{/privacy}","received_events_url":"https://api.github.com/users/quarkonics/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/quarkonics/doc-ch","description":"ZStack Chinese user manual","fork":true,"url":"https://api.github.com/repos/quarkonics/doc-ch","forks_url":"https://api.github.com/repos/quarkonics/doc-ch/forks","keys_url":"https://api.github.com/repos/quarkonics/doc-ch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quarkonics/doc-ch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quarkonics/doc-ch/teams","hooks_url":"https://api.github.com/repos/quarkonics/doc-ch/hooks","issue_events_url":"https://api.github.com/repos/quarkonics/doc-ch/issues/events{/number}","events_url":"https://api.github.com/repos/quarkonics/doc-ch/events","assignees_url":"https://api.github.com/repos/quarkonics/doc-ch/assignees{/user}","branches_url":"https://api.github.com/repos/quarkonics/doc-ch/branches{/branch}","tags_url":"https://api.github.com/repos/quarkonics/doc-ch/tags","blobs_url":"https://api.github.com/repos/quarkonics/doc-ch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quarkonics/doc-ch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quarkonics/doc-ch/git/refs{/sha}","trees_url":"https://api.github.com/repos/quarkonics/doc-ch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quarkonics/doc-ch/statuses/{sha}","languages_url":"https://api.github.com/repos/quarkonics/doc-ch/languages","stargazers_url":"https://api.github.com/repos/quarkonics/doc-ch/stargazers","contributors_url":"https://api.github.com/repos/quarkonics/doc-ch/contributors","subscribers_url":"https://api.github.com/repos/quarkonics/doc-ch/subscribers","subscription_url":"https://api.github.com/repos/quarkonics/doc-ch/subscription","commits_url":"https://api.github.com/repos/quarkonics/doc-ch/commits{/sha}","git_commits_url":"https://api.github.com/repos/quarkonics/doc-ch/git/commits{/sha}","comments_url":"https://api.github.com/repos/quarkonics/doc-ch/comments{/number}","issue_comment_url":"https://api.github.com/repos/quarkonics/doc-ch/issues/comments{/number}","contents_url":"https://api.github.com/repos/quarkonics/doc-ch/contents/{+path}","compare_url":"https://api.github.com/repos/quarkonics/doc-ch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quarkonics/doc-ch/merges","archive_url":"https://api.github.com/repos/quarkonics/doc-ch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quarkonics/doc-ch/downloads","issues_url":"https://api.github.com/repos/quarkonics/doc-ch/issues{/number}","pulls_url":"https://api.github.com/repos/quarkonics/doc-ch/pulls{/number}","milestones_url":"https://api.github.com/repos/quarkonics/doc-ch/milestones{/number}","notifications_url":"https://api.github.com/repos/quarkonics/doc-ch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quarkonics/doc-ch/labels{/name}","releases_url":"https://api.github.com/repos/quarkonics/doc-ch/releases{/id}","created_at":"2015-08-31T12:46:49Z","updated_at":"2015-08-31T12:46:50Z","pushed_at":"2015-12-21T14:06:16Z","git_url":"git://github.com/quarkonics/doc-ch.git","ssh_url":"git@github.com:quarkonics/doc-ch.git","clone_url":"https://github.com/quarkonics/doc-ch.git","svn_url":"https://github.com/quarkonics/doc-ch","homepage":null,"size":84,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"zstackorg:master","ref":"master","sha":"134cbad26c3e3b3972f871eb829e8ca10d611c3d","user":{"login":"zstackorg","id":11801061,"avatar_url":"https://avatars.githubusercontent.com/u/11801061?v=3","gravatar_id":"","url":"https://api.github.com/users/zstackorg","html_url":"https://github.com/zstackorg","followers_url":"https://api.github.com/users/zstackorg/followers","following_url":"https://api.github.com/users/zstackorg/following{/other_user}","gists_url":"https://api.github.com/users/zstackorg/gists{/gist_id}","starred_url":"https://api.github.com/users/zstackorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zstackorg/subscriptions","organizations_url":"https://api.github.com/users/zstackorg/orgs","repos_url":"https://api.github.com/users/zstackorg/repos","events_url":"https://api.github.com/users/zstackorg/events{/privacy}","received_events_url":"https://api.github.com/users/zstackorg/received_events","type":"User","site_admin":false},"repo":{"id":41072786,"name":"doc-ch","full_name":"zstackorg/doc-ch","owner":{"login":"zstackorg","id":11801061,"avatar_url":"https://avatars.githubusercontent.com/u/11801061?v=3","gravatar_id":"","url":"https://api.github.com/users/zstackorg","html_url":"https://github.com/zstackorg","followers_url":"https://api.github.com/users/zstackorg/followers","following_url":"https://api.github.com/users/zstackorg/following{/other_user}","gists_url":"https://api.github.com/users/zstackorg/gists{/gist_id}","starred_url":"https://api.github.com/users/zstackorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zstackorg/subscriptions","organizations_url":"https://api.github.com/users/zstackorg/orgs","repos_url":"https://api.github.com/users/zstackorg/repos","events_url":"https://api.github.com/users/zstackorg/events{/privacy}","received_events_url":"https://api.github.com/users/zstackorg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zstackorg/doc-ch","description":"ZStack Chinese user manual","fork":false,"url":"https://api.github.com/repos/zstackorg/doc-ch","forks_url":"https://api.github.com/repos/zstackorg/doc-ch/forks","keys_url":"https://api.github.com/repos/zstackorg/doc-ch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zstackorg/doc-ch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zstackorg/doc-ch/teams","hooks_url":"https://api.github.com/repos/zstackorg/doc-ch/hooks","issue_events_url":"https://api.github.com/repos/zstackorg/doc-ch/issues/events{/number}","events_url":"https://api.github.com/repos/zstackorg/doc-ch/events","assignees_url":"https://api.github.com/repos/zstackorg/doc-ch/assignees{/user}","branches_url":"https://api.github.com/repos/zstackorg/doc-ch/branches{/branch}","tags_url":"https://api.github.com/repos/zstackorg/doc-ch/tags","blobs_url":"https://api.github.com/repos/zstackorg/doc-ch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zstackorg/doc-ch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zstackorg/doc-ch/git/refs{/sha}","trees_url":"https://api.github.com/repos/zstackorg/doc-ch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zstackorg/doc-ch/statuses/{sha}","languages_url":"https://api.github.com/repos/zstackorg/doc-ch/languages","stargazers_url":"https://api.github.com/repos/zstackorg/doc-ch/stargazers","contributors_url":"https://api.github.com/repos/zstackorg/doc-ch/contributors","subscribers_url":"https://api.github.com/repos/zstackorg/doc-ch/subscribers","subscription_url":"https://api.github.com/repos/zstackorg/doc-ch/subscription","commits_url":"https://api.github.com/repos/zstackorg/doc-ch/commits{/sha}","git_commits_url":"https://api.github.com/repos/zstackorg/doc-ch/git/commits{/sha}","comments_url":"https://api.github.com/repos/zstackorg/doc-ch/comments{/number}","issue_comment_url":"https://api.github.com/repos/zstackorg/doc-ch/issues/comments{/number}","contents_url":"https://api.github.com/repos/zstackorg/doc-ch/contents/{+path}","compare_url":"https://api.github.com/repos/zstackorg/doc-ch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zstackorg/doc-ch/merges","archive_url":"https://api.github.com/repos/zstackorg/doc-ch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zstackorg/doc-ch/downloads","issues_url":"https://api.github.com/repos/zstackorg/doc-ch/issues{/number}","pulls_url":"https://api.github.com/repos/zstackorg/doc-ch/pulls{/number}","milestones_url":"https://api.github.com/repos/zstackorg/doc-ch/milestones{/number}","notifications_url":"https://api.github.com/repos/zstackorg/doc-ch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zstackorg/doc-ch/labels{/name}","releases_url":"https://api.github.com/repos/zstackorg/doc-ch/releases{/id}","created_at":"2015-08-20T03:13:08Z","updated_at":"2015-08-30T16:00:10Z","pushed_at":"2015-12-21T14:06:26Z","git_url":"git://github.com/zstackorg/doc-ch.git","ssh_url":"git@github.com:zstackorg/doc-ch.git","clone_url":"https://github.com/zstackorg/doc-ch.git","svn_url":"https://github.com/zstackorg/doc-ch","homepage":null,"size":224,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zstackorg/doc-ch/pulls/11"},"html":{"href":"https://github.com/zstackorg/doc-ch/pull/11"},"issue":{"href":"https://api.github.com/repos/zstackorg/doc-ch/issues/11"},"comments":{"href":"https://api.github.com/repos/zstackorg/doc-ch/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/zstackorg/doc-ch/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/zstackorg/doc-ch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zstackorg/doc-ch/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/zstackorg/doc-ch/statuses/fc36d7615b44f53f0eae8ad46b6c943888daa95a"}}}}