{"action":"created","comment":{"url":"https://api.github.com/repos/pingcap/docs/pulls/comments/72414981","id":72414981,"diff_hunk":"@@ -50,3 +50,152 @@ The default TiDB ports are 4000 for client requests and 10080 for status report.\n ### $TIDB_PPROF environment variable\n + An environment variable that is used to enable or disable the runtime profiling data via the HTTP server. The Address is at client URL + \"/debug/pprof/\".\n + If set $TIDB_PPROF to 0, TiDB will disable pprof. Otherwise TiDB will enable pprof.\n+\n+## PD\n+\n+### -L\n+\n++ The log level\n++ default: \"info\"\n++ You can choose from debug, info, warn, error, or fatal.\n+\n+### -c \n+\n++ The config file\n++ default: \"\"\n+\n+### --cluster-id\n+\n++ The cluster ID to identify unique cluster. \n++ default: 0\n++ You must use a unique ID to distinguish different clusters. \n+\n+### name\n+\n++ The human-readable unique name for this PD member.\n++ default: \"pd\"\n++ If you want to start multiply PDs, you must use different name for each one.\n+\n+### --host\n+\n++ The server host IP. \n++ default: \"127.0.0.1\"\n++ You must set this flag so that it can be connected from outside., and can only ignore this in standalone test. \n+\n+### --data-dir\n+\n++ The path to the data directory.\n++ default: \"default.{name}\"\n+\n+### --client-port\n+\n++ The listening port for client traffic. \n++ default: 2379\n+\n+### --advertise-client-port\n+\n++ The advertise port for client traffic.\n++ default: {client-port}\n++ If you use Docker to start PD, and use different ports to map the listening client port, you must set this flag. For example, if you use `-p 12379:2379`, the advertise client port must be 12379 through which the client can connect to PD.\n+\n+### --peer-port\n+\n++ The listening port for peer traffic.\n++ default 2380\n+\n+### --advertise-peer-port\n+\n++ The advertise port for peer traffic.\n++ default: {peer-port}\n++ If you use Docker to start PD, and use different ports to map the listening peer port, you must set this flag. For example, if you use `-p 12380:2380`, the advertise peer port must be 12380 for other peers connecting.\n+\n+### --initial-cluster\n+\n++ The initial cluster configuration for bootstrapping. \n++ default: \"{name}=http://{host}:{advertise-peer-port}\"\n++ You must set this flag to bootstrap PD cluster. For example, if you have three PDs (pd1, pd2, pd3), the initial cluster is \"pd1=http://pd1_host:2380,pd2=http://pd2_host:2380,pd3=http://pd3_host:2380\".\n++ Note: this flag will be deprecated later.\n+\n+### --initial-cluster-state\n+\n++ The initial cluster state (\"new\" or \"existing\").\n++ default: \"new\"\n++ Note: this flag will be deprecated later.\n+\n+### --port\n+\n++ The listening port for client traffic.\n++ default: 1234\n++ Note: this flag will be deprecated later.\n+\n+### --advertise-port\n+\n++ The server advertise port for client traffic. \n++ default: {port}\n++ If you use Docker to start PD, and use different ports to map the listening port, you must set this flag. For example, if you use `-p 11234:1234`, the advertise port must be 11234 through which the client can connect to PD.\n++ Note: this flag will be deprecated later.\n+\n+### --http-port\n+\n++ The server http port.\n++ default: 9090\n++ Note: this flag will be deprecated later.\n+\n+## TiKV\n+\n+### -P, --port\n+\n++ The server listening port for outer traffic.\n++ default: 20160\n+\n+### --advertise-port\n+\n++ The server advertise port for outer traffic. \n++ default: {port}\n++ If you use Docker to start TiKV, and use different ports to map the listening port, you must set this flag. For example, if you use `-p 20161:20160`, the advertise port must be 20161 through which the client can connect to TiKV.\n+\n+### -H, --host\n+\n++ The server host IP.\n++ default: \"127.0.0.1\"\n++ You must set this flag so that it can be connected from outside., and can only ignore this in standalone test. ","path":"op-guide/configuration.md","position":112,"original_position":112,"commit_id":"92efd9599f3956701b920d0e24b200096bf06a3c","original_commit_id":"92efd9599f3956701b920d0e24b200096bf06a3c","user":{"login":"queenypingcap","id":19528243,"avatar_url":"https://avatars.githubusercontent.com/u/19528243?v=3","gravatar_id":"","url":"https://api.github.com/users/queenypingcap","html_url":"https://github.com/queenypingcap","followers_url":"https://api.github.com/users/queenypingcap/followers","following_url":"https://api.github.com/users/queenypingcap/following{/other_user}","gists_url":"https://api.github.com/users/queenypingcap/gists{/gist_id}","starred_url":"https://api.github.com/users/queenypingcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/queenypingcap/subscriptions","organizations_url":"https://api.github.com/users/queenypingcap/orgs","repos_url":"https://api.github.com/users/queenypingcap/repos","events_url":"https://api.github.com/users/queenypingcap/events{/privacy}","received_events_url":"https://api.github.com/users/queenypingcap/received_events","type":"User","site_admin":false},"body":"You must set this flag so that it can be connected from outside. You can only ignore it in the standalone mode.","created_at":"2016-07-27T10:19:13Z","updated_at":"2016-07-27T10:19:13Z","html_url":"https://github.com/pingcap/docs/pull/6#discussion_r72414981","pull_request_url":"https://api.github.com/repos/pingcap/docs/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/pingcap/docs/pulls/comments/72414981"},"html":{"href":"https://github.com/pingcap/docs/pull/6#discussion_r72414981"},"pull_request":{"href":"https://api.github.com/repos/pingcap/docs/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/pingcap/docs/pulls/6","id":78997638,"html_url":"https://github.com/pingcap/docs/pull/6","diff_url":"https://github.com/pingcap/docs/pull/6.diff","patch_url":"https://github.com/pingcap/docs/pull/6.patch","issue_url":"https://api.github.com/repos/pingcap/docs/issues/6","number":6,"state":"open","locked":false,"title":"[DNM] op-guide: add pd and tikv configurations.","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":"@queenypingcap @qiuyesuifeng @shenli @iamxy ","created_at":"2016-07-27T10:06:12Z","updated_at":"2016-07-27T10:19:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4837c221dc99dcdaf015b398e7dde7335f44f399","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pingcap/docs/pulls/6/commits","review_comments_url":"https://api.github.com/repos/pingcap/docs/pulls/6/comments","review_comment_url":"https://api.github.com/repos/pingcap/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pingcap/docs/issues/6/comments","statuses_url":"https://api.github.com/repos/pingcap/docs/statuses/92efd9599f3956701b920d0e24b200096bf06a3c","head":{"label":"pingcap:siddontang/configuration","ref":"siddontang/configuration","sha":"92efd9599f3956701b920d0e24b200096bf06a3c","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":63995402,"name":"docs","full_name":"pingcap/docs","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","description":"TiDB/TiKV/PD documents.","fork":false,"url":"https://api.github.com/repos/pingcap/docs","forks_url":"https://api.github.com/repos/pingcap/docs/forks","keys_url":"https://api.github.com/repos/pingcap/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pingcap/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pingcap/docs/teams","hooks_url":"https://api.github.com/repos/pingcap/docs/hooks","issue_events_url":"https://api.github.com/repos/pingcap/docs/issues/events{/number}","events_url":"https://api.github.com/repos/pingcap/docs/events","assignees_url":"https://api.github.com/repos/pingcap/docs/assignees{/user}","branches_url":"https://api.github.com/repos/pingcap/docs/branches{/branch}","tags_url":"https://api.github.com/repos/pingcap/docs/tags","blobs_url":"https://api.github.com/repos/pingcap/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pingcap/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pingcap/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/pingcap/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pingcap/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/pingcap/docs/languages","stargazers_url":"https://api.github.com/repos/pingcap/docs/stargazers","contributors_url":"https://api.github.com/repos/pingcap/docs/contributors","subscribers_url":"https://api.github.com/repos/pingcap/docs/subscribers","subscription_url":"https://api.github.com/repos/pingcap/docs/subscription","commits_url":"https://api.github.com/repos/pingcap/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/pingcap/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/pingcap/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/pingcap/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/pingcap/docs/contents/{+path}","compare_url":"https://api.github.com/repos/pingcap/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pingcap/docs/merges","archive_url":"https://api.github.com/repos/pingcap/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pingcap/docs/downloads","issues_url":"https://api.github.com/repos/pingcap/docs/issues{/number}","pulls_url":"https://api.github.com/repos/pingcap/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/pingcap/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/pingcap/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pingcap/docs/labels{/name}","releases_url":"https://api.github.com/repos/pingcap/docs/releases{/id}","deployments_url":"https://api.github.com/repos/pingcap/docs/deployments","created_at":"2016-07-23T02:39:04Z","updated_at":"2016-07-26T08:15:07Z","pushed_at":"2016-07-27T10:15:49Z","git_url":"git://github.com/pingcap/docs.git","ssh_url":"git@github.com:pingcap/docs.git","clone_url":"https://github.com/pingcap/docs.git","svn_url":"https://github.com/pingcap/docs","homepage":null,"size":24,"stargazers_count":1,"watchers_count":1,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"pingcap:master","ref":"master","sha":"8cc2ec357955a9fc326e6c64daeffca61fa9c020","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":63995402,"name":"docs","full_name":"pingcap/docs","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","description":"TiDB/TiKV/PD documents.","fork":false,"url":"https://api.github.com/repos/pingcap/docs","forks_url":"https://api.github.com/repos/pingcap/docs/forks","keys_url":"https://api.github.com/repos/pingcap/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pingcap/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pingcap/docs/teams","hooks_url":"https://api.github.com/repos/pingcap/docs/hooks","issue_events_url":"https://api.github.com/repos/pingcap/docs/issues/events{/number}","events_url":"https://api.github.com/repos/pingcap/docs/events","assignees_url":"https://api.github.com/repos/pingcap/docs/assignees{/user}","branches_url":"https://api.github.com/repos/pingcap/docs/branches{/branch}","tags_url":"https://api.github.com/repos/pingcap/docs/tags","blobs_url":"https://api.github.com/repos/pingcap/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pingcap/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pingcap/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/pingcap/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pingcap/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/pingcap/docs/languages","stargazers_url":"https://api.github.com/repos/pingcap/docs/stargazers","contributors_url":"https://api.github.com/repos/pingcap/docs/contributors","subscribers_url":"https://api.github.com/repos/pingcap/docs/subscribers","subscription_url":"https://api.github.com/repos/pingcap/docs/subscription","commits_url":"https://api.github.com/repos/pingcap/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/pingcap/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/pingcap/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/pingcap/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/pingcap/docs/contents/{+path}","compare_url":"https://api.github.com/repos/pingcap/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pingcap/docs/merges","archive_url":"https://api.github.com/repos/pingcap/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pingcap/docs/downloads","issues_url":"https://api.github.com/repos/pingcap/docs/issues{/number}","pulls_url":"https://api.github.com/repos/pingcap/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/pingcap/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/pingcap/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pingcap/docs/labels{/name}","releases_url":"https://api.github.com/repos/pingcap/docs/releases{/id}","deployments_url":"https://api.github.com/repos/pingcap/docs/deployments","created_at":"2016-07-23T02:39:04Z","updated_at":"2016-07-26T08:15:07Z","pushed_at":"2016-07-27T10:15:49Z","git_url":"git://github.com/pingcap/docs.git","ssh_url":"git@github.com:pingcap/docs.git","clone_url":"https://github.com/pingcap/docs.git","svn_url":"https://github.com/pingcap/docs","homepage":null,"size":24,"stargazers_count":1,"watchers_count":1,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pingcap/docs/pulls/6"},"html":{"href":"https://github.com/pingcap/docs/pull/6"},"issue":{"href":"https://api.github.com/repos/pingcap/docs/issues/6"},"comments":{"href":"https://api.github.com/repos/pingcap/docs/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/pingcap/docs/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/pingcap/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pingcap/docs/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/pingcap/docs/statuses/92efd9599f3956701b920d0e24b200096bf06a3c"}}}}
{"actor":{"display_login":"queenypingcap"}}