{"action":"opened","issue":{"url":"https://api.github.com/repos/pingcap/tikv/issues/772","repository_url":"https://api.github.com/repos/pingcap/tikv","labels_url":"https://api.github.com/repos/pingcap/tikv/issues/772/labels{/name}","comments_url":"https://api.github.com/repos/pingcap/tikv/issues/772/comments","events_url":"https://api.github.com/repos/pingcap/tikv/issues/772/events","html_url":"https://github.com/pingcap/tikv/issues/772","id":163592276,"number":772,"title":"Proposal: Make big numbers human-readable","user":{"login":"overvenus","id":2150711,"avatar_url":"https://avatars.githubusercontent.com/u/2150711?v=3","gravatar_id":"","url":"https://api.github.com/users/overvenus","html_url":"https://github.com/overvenus","followers_url":"https://api.github.com/users/overvenus/followers","following_url":"https://api.github.com/users/overvenus/following{/other_user}","gists_url":"https://api.github.com/users/overvenus/gists{/gist_id}","starred_url":"https://api.github.com/users/overvenus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/overvenus/subscriptions","organizations_url":"https://api.github.com/users/overvenus/orgs","repos_url":"https://api.github.com/users/overvenus/repos","events_url":"https://api.github.com/users/overvenus/events{/privacy}","received_events_url":"https://api.github.com/users/overvenus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-04T02:11:54Z","updated_at":"2016-07-04T02:11:54Z","closed_at":null,"body":"In [config-template.toml](https://github.com/pingcap/tikv/blob/master/etc/config-template.toml), some properties are hard to read, e.g.:\r\n\r\n```toml\r\nregion-max-size = 83886080\r\nregion-split-size = 67108864\r\n```\r\n\r\nMaybe we should add a human readable representation, e.g.:\r\n\r\n```toml\r\nregion-max-size = \"80MB\"\r\nregion-split-size = \"64MB\"\r\n# or\r\n# region-max-size = 83886080\r\n# region-split-size = 67108864\r\n\r\npd-heartbeat-tick-interval = \"5s\"\r\n# or\r\n# pd-heartbeat-tick-interval = 5000\r\n```\r\n\r\n### File Size Conversion Table:\r\n\r\n| Symbol   |      Name      |  Binary |  Number of bytes |  Equal to |\r\n|----------|-------------:|------:|------:|------:|\r\n| B | Byte  | 2^0 | 1 | 1B |\r\n| KB | Kilobyte |   2^10 |   1024 |   1024 B |\r\n| MB | Megabyte |   2^20 |    1,048,576 |    1024 KB |\r\n| GB | Gigabyte |   2^30 |    1,073,741,824 |    1024 MB |\r\n| TB | Terabyte |   2^40 |    1,099,511,627,776 |    1024 GB |\r\n| PB | Petabyte |   2^50 |    1,125,899,906,842,624 |    1024 TB |\r\n\r\n```\r\n\"1KB\" = 1024\r\n\"1MB\" = 1024 * 1024 = 1,048,576\r\n\"1.5MB\" = 1.5 * 1024 * 1024 = 1,572,864\r\n```\r\n\r\n----------\r\n\r\n### Time Conversion Table:\r\n\r\n|  Symbol  |      Unit (s)      |  Definition |\r\n|:----------|-------------:|------:|\r\n| ns | 10^(-9) |   One billionth of one second |\r\n| us | 10^(-6) |   One millionth of one second |\r\n| ms | 10^(-3) |   \tOne thousandth of one second |\r\n| s | 10^0 |   one second |\r\n| ks | 10^3 |   One thousand seconds |\r\n\r\nref:\r\n\r\n[File size - Wikipedia, the free encyclopedia](https://en.wikipedia.org/wiki/File_size)\r\n[Orders of magnitude (time) - Wikipedia, the free encyclopedia](https://en.wikipedia.org/wiki/Orders_of_magnitude_(time))\r\n"}}
{"actor":{"display_login":"overvenus"}}