{"action":"created","comment":{"url":"https://api.github.com/repos/pingcap/docs-cn/pulls/comments/86785757","pull_request_review_id":7424842,"id":86785757,"diff_hunk":"@@ -0,0 +1,75 @@\n+# TiKV 性能参数调优\n+本文档用于描述如何根据机器配置情况来调整 TiKV 的参数，使 TiKV 的性能达到最优。\n+\n+TiKV 最底层使用的是 RocksDB 做为持久化存储，所以 TiKV 的很多性能相关的参数都是与 RocksDB 相关的。\n+\n+TiKV 使用了 RocksDB 的 `Column Falimies` 特性，数据最终存储在 RocksDB 内部的 `raft`、`default`、`lock` 和 `write` 4 个 CF 内。\n+\n+`raft` CF 主要存储的是 raft log，与其对应的参数位于 `[rocksdb.raftcf]` 项中；`default` CF 存储的是真正的数据，与其对应的参数位于 `[rocksdb.defaultcf]` 项中；`write` CF 存储的是数据的版本信息（MVCC），与其对应的参数位于 `[rocksdb.write]` 项中；`lock` CF 存储的是锁信息，系统使用默认参数。","path":"op-guide/tune-TiKV.md","position":8,"original_position":8,"commit_id":"bf49e2b95ac5b13db56f228a4a5d006f546e7a6a","original_commit_id":"bf49e2b95ac5b13db56f228a4a5d006f546e7a6a","user":{"login":"siddontang","id":1080370,"avatar_url":"https://avatars.githubusercontent.com/u/1080370?v=3","gravatar_id":"","url":"https://api.github.com/users/siddontang","html_url":"https://github.com/siddontang","followers_url":"https://api.github.com/users/siddontang/followers","following_url":"https://api.github.com/users/siddontang/following{/other_user}","gists_url":"https://api.github.com/users/siddontang/gists{/gist_id}","starred_url":"https://api.github.com/users/siddontang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siddontang/subscriptions","organizations_url":"https://api.github.com/users/siddontang/orgs","repos_url":"https://api.github.com/users/siddontang/repos","events_url":"https://api.github.com/users/siddontang/events{/privacy}","received_events_url":"https://api.github.com/users/siddontang/received_events","type":"User","site_admin":false},"body":"```\r\n+ `raft` CF xxx\r\n+ `default` CF xxx\r\n+ `write` CF xxx\r\n+ `lock` CF  xxx\r\n```","created_at":"2016-11-07T14:31:29Z","updated_at":"2016-11-07T14:31:29Z","html_url":"https://github.com/pingcap/docs-cn/pull/30#discussion_r86785757","pull_request_url":"https://api.github.com/repos/pingcap/docs-cn/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/pingcap/docs-cn/pulls/comments/86785757"},"html":{"href":"https://github.com/pingcap/docs-cn/pull/30#discussion_r86785757"},"pull_request":{"href":"https://api.github.com/repos/pingcap/docs-cn/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/pingcap/docs-cn/pulls/30","id":92542948,"html_url":"https://github.com/pingcap/docs-cn/pull/30","diff_url":"https://github.com/pingcap/docs-cn/pull/30.diff","patch_url":"https://github.com/pingcap/docs-cn/pull/30.patch","issue_url":"https://api.github.com/repos/pingcap/docs-cn/issues/30","number":30,"state":"open","locked":false,"title":"op-guide: tune tikv","user":{"login":"zhangjinpeng1987","id":19700528,"avatar_url":"https://avatars.githubusercontent.com/u/19700528?v=3","gravatar_id":"","url":"https://api.github.com/users/zhangjinpeng1987","html_url":"https://github.com/zhangjinpeng1987","followers_url":"https://api.github.com/users/zhangjinpeng1987/followers","following_url":"https://api.github.com/users/zhangjinpeng1987/following{/other_user}","gists_url":"https://api.github.com/users/zhangjinpeng1987/gists{/gist_id}","starred_url":"https://api.github.com/users/zhangjinpeng1987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhangjinpeng1987/subscriptions","organizations_url":"https://api.github.com/users/zhangjinpeng1987/orgs","repos_url":"https://api.github.com/users/zhangjinpeng1987/repos","events_url":"https://api.github.com/users/zhangjinpeng1987/events{/privacy}","received_events_url":"https://api.github.com/users/zhangjinpeng1987/received_events","type":"User","site_admin":false},"body":"tune tikv","created_at":"2016-11-07T08:46:25Z","updated_at":"2016-11-07T14:31:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bb22f3cd073d11686a70365ac6438066e2adf858","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pingcap/docs-cn/pulls/30/commits","review_comments_url":"https://api.github.com/repos/pingcap/docs-cn/pulls/30/comments","review_comment_url":"https://api.github.com/repos/pingcap/docs-cn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pingcap/docs-cn/issues/30/comments","statuses_url":"https://api.github.com/repos/pingcap/docs-cn/statuses/bf49e2b95ac5b13db56f228a4a5d006f546e7a6a","head":{"label":"pingcap:zhangjinpeng/tune-tikv","ref":"zhangjinpeng/tune-tikv","sha":"bf49e2b95ac5b13db56f228a4a5d006f546e7a6a","user":{"login":"pingcap","id":11855343,"avatar_url":"https://avatars.githubusercontent.com/u/11855343?v=3","gravatar_id":"","url":"https://api.github.com/users/pingcap","html_url":"https://github.com/pingcap","followers_url":"https://api.github.com/users/pingcap/followers","following_url":"https://api.github.com/users/pingcap/following{/other_user}","gists_url":"https://api.github.com/users/pingcap/gists{/gist_id}","starred_url":"https://api.github.com/users/pingcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pingcap/subscriptions","organizations_url":"https://api.github.com/users/pingcap/orgs","repos_url":"https://api.github.com/users/pingcap/repos","events_url":"https://api.github.com/users/pingcap/events{/privacy}","received_events_url":"https://api.github.com/users/pingcap/received_events","type":"Organization","site_admin":false},"repo":{"id":64188788,"name":"docs-cn","full_name":"pingcap/docs-cn","owner":{"login":"pingcap","id":11855343,"avatar_url":"https://avatars.githubusercontent.com/u/11855343?v=3","gravatar_id":"","url":"https://api.github.com/users/pingcap","html_url":"https://github.com/pingcap","followers_url":"https://api.github.com/users/pingcap/followers","following_url":"https://api.github.com/users/pingcap/following{/other_user}","gists_url":"https://api.github.com/users/pingcap/gists{/gist_id}","starred_url":"https://api.github.com/users/pingcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pingcap/subscriptions","organizations_url":"https://api.github.com/users/pingcap/orgs","repos_url":"https://api.github.com/users/pingcap/repos","events_url":"https://api.github.com/users/pingcap/events{/privacy}","received_events_url":"https://api.github.com/users/pingcap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pingcap/docs-cn","description":"TiDB/TiKV/PD documents in Chinese.","fork":false,"url":"https://api.github.com/repos/pingcap/docs-cn","forks_url":"https://api.github.com/repos/pingcap/docs-cn/forks","keys_url":"https://api.github.com/repos/pingcap/docs-cn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pingcap/docs-cn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pingcap/docs-cn/teams","hooks_url":"https://api.github.com/repos/pingcap/docs-cn/hooks","issue_events_url":"https://api.github.com/repos/pingcap/docs-cn/issues/events{/number}","events_url":"https://api.github.com/repos/pingcap/docs-cn/events","assignees_url":"https://api.github.com/repos/pingcap/docs-cn/assignees{/user}","branches_url":"https://api.github.com/repos/pingcap/docs-cn/branches{/branch}","tags_url":"https://api.github.com/repos/pingcap/docs-cn/tags","blobs_url":"https://api.github.com/repos/pingcap/docs-cn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pingcap/docs-cn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pingcap/docs-cn/git/refs{/sha}","trees_url":"https://api.github.com/repos/pingcap/docs-cn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pingcap/docs-cn/statuses/{sha}","languages_url":"https://api.github.com/repos/pingcap/docs-cn/languages","stargazers_url":"https://api.github.com/repos/pingcap/docs-cn/stargazers","contributors_url":"https://api.github.com/repos/pingcap/docs-cn/contributors","subscribers_url":"https://api.github.com/repos/pingcap/docs-cn/subscribers","subscription_url":"https://api.github.com/repos/pingcap/docs-cn/subscription","commits_url":"https://api.github.com/repos/pingcap/docs-cn/commits{/sha}","git_commits_url":"https://api.github.com/repos/pingcap/docs-cn/git/commits{/sha}","comments_url":"https://api.github.com/repos/pingcap/docs-cn/comments{/number}","issue_comment_url":"https://api.github.com/repos/pingcap/docs-cn/issues/comments{/number}","contents_url":"https://api.github.com/repos/pingcap/docs-cn/contents/{+path}","compare_url":"https://api.github.com/repos/pingcap/docs-cn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pingcap/docs-cn/merges","archive_url":"https://api.github.com/repos/pingcap/docs-cn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pingcap/docs-cn/downloads","issues_url":"https://api.github.com/repos/pingcap/docs-cn/issues{/number}","pulls_url":"https://api.github.com/repos/pingcap/docs-cn/pulls{/number}","milestones_url":"https://api.github.com/repos/pingcap/docs-cn/milestones{/number}","notifications_url":"https://api.github.com/repos/pingcap/docs-cn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pingcap/docs-cn/labels{/name}","releases_url":"https://api.github.com/repos/pingcap/docs-cn/releases{/id}","deployments_url":"https://api.github.com/repos/pingcap/docs-cn/deployments","created_at":"2016-07-26T04:04:37Z","updated_at":"2016-11-06T11:44:09Z","pushed_at":"2016-11-07T08:46:26Z","git_url":"git://github.com/pingcap/docs-cn.git","ssh_url":"git@github.com:pingcap/docs-cn.git","clone_url":"https://github.com/pingcap/docs-cn.git","svn_url":"https://github.com/pingcap/docs-cn","homepage":null,"size":524,"stargazers_count":34,"watchers_count":34,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":4,"forks":6,"open_issues":4,"watchers":34,"default_branch":"master"}},"base":{"label":"pingcap:master","ref":"master","sha":"9d02e1d38c56deb17f381be6353a470961ae2273","user":{"login":"pingcap","id":11855343,"avatar_url":"https://avatars.githubusercontent.com/u/11855343?v=3","gravatar_id":"","url":"https://api.github.com/users/pingcap","html_url":"https://github.com/pingcap","followers_url":"https://api.github.com/users/pingcap/followers","following_url":"https://api.github.com/users/pingcap/following{/other_user}","gists_url":"https://api.github.com/users/pingcap/gists{/gist_id}","starred_url":"https://api.github.com/users/pingcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pingcap/subscriptions","organizations_url":"https://api.github.com/users/pingcap/orgs","repos_url":"https://api.github.com/users/pingcap/repos","events_url":"https://api.github.com/users/pingcap/events{/privacy}","received_events_url":"https://api.github.com/users/pingcap/received_events","type":"Organization","site_admin":false},"repo":{"id":64188788,"name":"docs-cn","full_name":"pingcap/docs-cn","owner":{"login":"pingcap","id":11855343,"avatar_url":"https://avatars.githubusercontent.com/u/11855343?v=3","gravatar_id":"","url":"https://api.github.com/users/pingcap","html_url":"https://github.com/pingcap","followers_url":"https://api.github.com/users/pingcap/followers","following_url":"https://api.github.com/users/pingcap/following{/other_user}","gists_url":"https://api.github.com/users/pingcap/gists{/gist_id}","starred_url":"https://api.github.com/users/pingcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pingcap/subscriptions","organizations_url":"https://api.github.com/users/pingcap/orgs","repos_url":"https://api.github.com/users/pingcap/repos","events_url":"https://api.github.com/users/pingcap/events{/privacy}","received_events_url":"https://api.github.com/users/pingcap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pingcap/docs-cn","description":"TiDB/TiKV/PD documents in Chinese.","fork":false,"url":"https://api.github.com/repos/pingcap/docs-cn","forks_url":"https://api.github.com/repos/pingcap/docs-cn/forks","keys_url":"https://api.github.com/repos/pingcap/docs-cn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pingcap/docs-cn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pingcap/docs-cn/teams","hooks_url":"https://api.github.com/repos/pingcap/docs-cn/hooks","issue_events_url":"https://api.github.com/repos/pingcap/docs-cn/issues/events{/number}","events_url":"https://api.github.com/repos/pingcap/docs-cn/events","assignees_url":"https://api.github.com/repos/pingcap/docs-cn/assignees{/user}","branches_url":"https://api.github.com/repos/pingcap/docs-cn/branches{/branch}","tags_url":"https://api.github.com/repos/pingcap/docs-cn/tags","blobs_url":"https://api.github.com/repos/pingcap/docs-cn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pingcap/docs-cn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pingcap/docs-cn/git/refs{/sha}","trees_url":"https://api.github.com/repos/pingcap/docs-cn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pingcap/docs-cn/statuses/{sha}","languages_url":"https://api.github.com/repos/pingcap/docs-cn/languages","stargazers_url":"https://api.github.com/repos/pingcap/docs-cn/stargazers","contributors_url":"https://api.github.com/repos/pingcap/docs-cn/contributors","subscribers_url":"https://api.github.com/repos/pingcap/docs-cn/subscribers","subscription_url":"https://api.github.com/repos/pingcap/docs-cn/subscription","commits_url":"https://api.github.com/repos/pingcap/docs-cn/commits{/sha}","git_commits_url":"https://api.github.com/repos/pingcap/docs-cn/git/commits{/sha}","comments_url":"https://api.github.com/repos/pingcap/docs-cn/comments{/number}","issue_comment_url":"https://api.github.com/repos/pingcap/docs-cn/issues/comments{/number}","contents_url":"https://api.github.com/repos/pingcap/docs-cn/contents/{+path}","compare_url":"https://api.github.com/repos/pingcap/docs-cn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pingcap/docs-cn/merges","archive_url":"https://api.github.com/repos/pingcap/docs-cn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pingcap/docs-cn/downloads","issues_url":"https://api.github.com/repos/pingcap/docs-cn/issues{/number}","pulls_url":"https://api.github.com/repos/pingcap/docs-cn/pulls{/number}","milestones_url":"https://api.github.com/repos/pingcap/docs-cn/milestones{/number}","notifications_url":"https://api.github.com/repos/pingcap/docs-cn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pingcap/docs-cn/labels{/name}","releases_url":"https://api.github.com/repos/pingcap/docs-cn/releases{/id}","deployments_url":"https://api.github.com/repos/pingcap/docs-cn/deployments","created_at":"2016-07-26T04:04:37Z","updated_at":"2016-11-06T11:44:09Z","pushed_at":"2016-11-07T08:46:26Z","git_url":"git://github.com/pingcap/docs-cn.git","ssh_url":"git@github.com:pingcap/docs-cn.git","clone_url":"https://github.com/pingcap/docs-cn.git","svn_url":"https://github.com/pingcap/docs-cn","homepage":null,"size":524,"stargazers_count":34,"watchers_count":34,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":4,"forks":6,"open_issues":4,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pingcap/docs-cn/pulls/30"},"html":{"href":"https://github.com/pingcap/docs-cn/pull/30"},"issue":{"href":"https://api.github.com/repos/pingcap/docs-cn/issues/30"},"comments":{"href":"https://api.github.com/repos/pingcap/docs-cn/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/pingcap/docs-cn/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/pingcap/docs-cn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pingcap/docs-cn/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/pingcap/docs-cn/statuses/bf49e2b95ac5b13db56f228a4a5d006f546e7a6a"}}}}
{"actor":{"display_login":"siddontang"}}