{"id":289023,"date":"2018-09-06T10:25:02","date_gmt":"2018-09-06T06:25:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=289023"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2018-09-06T06:25:02","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=289023","title":{"rendered":"TiKV \u2014 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u0430\u044f \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 key-value \u0434\u043b\u044f cloud native"},"content":{"rendered":"\n<div data-io-article-url=\"https:\/\/habr.com\/company\/flant\/blog\/421903\/\" class=\"post__text post__text-html js-mediator-article\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/no\/aw\/mm\/noawmmgrfclc2rftv_zq8lavrsi.png\"><\/p>\n<p>  28 \u0430\u0432\u0433\u0443\u0441\u0442\u0430 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f CNCF (Cloud Native Computing Foundation), \u0441\u0442\u043e\u044f\u0449\u0430\u044f \u0437\u0430 Kubernetes, Prometheus \u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 Open Source-\u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c\u0438 \u0434\u043b\u044f \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, <a href=\"https:\/\/www.cncf.io\/blog\/2018\/08\/28\/cncf-to-host-tikv-in-the-sandbox\/\">\u043e\u0431\u044a\u044f\u0432\u0438\u043b\u0430<\/a> \u043e \u043f\u0440\u0438\u043d\u044f\u0442\u0438\u0438 \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0432 \u0441\u0432\u043e\u044e \u00ab\u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u0443\u00bb \u2014 <a href=\"https:\/\/github.com\/tikv\/tikv\"><b>TiKV<\/b><\/a>.<\/p>\n<p>  \u042d\u0442\u0430 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u0430\u044f, \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0430 \u043a\u043b\u044e\u0447-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0437\u0430\u0440\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u043a\u0430\u043a \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a <a href=\"https:\/\/github.com\/pingcap\/tidb\"><b>TiDB<\/b><\/a> \u2014 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0439 \u0421\u0423\u0411\u0414, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 OLTP \u0438 OLAP \u0438 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u043c MySQL\u2026 \u041d\u043e \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043e\u0431\u043e \u0432\u0441\u0451\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443.<a name=\"habracut\"><\/a><\/p>\n<h2>TiDB \u043a\u0430\u043a \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c<\/h2>\n<p>  \u041d\u0430\u0447\u043d\u0451\u043c \u0441 \u00ab\u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e\u00bb \u043f\u0440\u043e\u0435\u043a\u0442\u0430 TiDB, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u0439 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0435\u0439 PingCAP Inc.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ct\/kt\/zj\/ctktzjb_kawxczxe1_4a-5tmupk.png\"><\/p>\n<p>  \u041f\u0435\u0440\u0432\u044b\u0439 \u043a\u0440\u0443\u043f\u043d\u044b\u0439 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u0440\u0435\u043b\u0438\u0437 \u044d\u0442\u043e\u0439 \u0421\u0423\u0411\u0414 \u2014 1.0 \u2014 <a href=\"https:\/\/www.nixp.ru\/news\/14205.html\">\u0441\u043e\u0441\u0442\u043e\u044f\u043b\u0441\u044f<\/a> \u043c\u0435\u043d\u044c\u0448\u0435 \u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434. \u0413\u043b\u0430\u0432\u043d\u044b\u0435 \u0435\u0451 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u2014 \u00ab\u0433\u0438\u0431\u0440\u0438\u0434\u043d\u043e\u0441\u0442\u044c\u00bb, \u0441\u043e\u0432\u043c\u0435\u0449\u0430\u044e\u0449\u0430\u044f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0438 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 (Hybrid Transactional\/Analytical Processing, HTAP), \u0430 \u0442\u0430\u043a\u0436\u0435 \u0443\u0436\u0435 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u0430\u044f \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u043c MySQL. \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u043b\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u0430 TiDB \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043f\u0440\u0438 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u2014 \u0443\u0436\u0435 \u043e\u0431\u044b\u0434\u0435\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u043d\u043e\u0432\u044b\u0445 \u0421\u0423\u0411\u0414 \u2014 \u0444\u0438\u0447, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u043c\u043e\u0441\u0442\u044c, \u0432\u044b\u0441\u043e\u043a\u0430\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0438 \u0441\u0442\u0440\u043e\u0433\u043e\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 ACID.<\/p>\n<p>  \u041e\u0431\u0449\u0430\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 TiDB \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/op\/16\/gg\/op16ggedblv2hjzil0yz9t8qtpg.png\"><\/p>\n<p>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 TiDB \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u043c\u043e\u0441\u0442\u044c NoSQL \u0438 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0438 \u043f\u043e ACID, \u0435\u0451 \u043e\u0442\u043d\u043e\u0441\u044f\u0442 \u043a \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 <b>NewSQL<\/b>. \u0410\u0432\u0442\u043e\u0440\u044b \u043d\u0435 \u0441\u043a\u0440\u044b\u0432\u0430\u044e\u0442, \u0447\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u043f\u043e\u0434 \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u0435\u043d\u0438\u0435\u043c \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u0435\u0439 NewSQL: <a href=\"https:\/\/en.wikipedia.org\/wiki\/Spanner_(database)\">Google Spanner<\/a> \u0438 <a href=\"https:\/\/ai.google\/research\/pubs\/pub38125\">F1<\/a>. \u041e\u0434\u043d\u0430\u043a\u043e \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043d\u0430\u0441\u0442\u0430\u0438\u0432\u0430\u043b\u0438 \u043d\u0430 \u00ab\u0441\u0432\u043e\u0438\u0445 \u043b\u0443\u0447\u0448\u0438\u0445 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430\u0445 \u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u0445 \u043f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439\u00bb. \u0412 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u043e\u043d\u0438 \u0432\u044b\u0431\u0440\u0430\u043b\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447 \u043a\u043e\u043d\u0441\u0435\u043d\u0441\u0443\u0441\u0430 <a href=\"https:\/\/raft.github.io\/\"><b>Raft<\/b><\/a> (\u0432\u043c\u0435\u0441\u0442\u043e <a href=\"https:\/\/en.wikipedia.org\/wiki\/Paxos_(computer_science)\">Paxos<\/a>, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 Spanner), \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 <a href=\"https:\/\/rocksdb.org\/\"><b>RocksDB<\/b><\/a> (\u0432\u043c\u0435\u0441\u0442\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b), \u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u044f\u0437\u044b\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u2014 Go (\u0438 Rust).<\/p>\n<p>  \u041c\u043d\u043e\u0433\u0438\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043e\u0431 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 TiDB \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 \u0434\u043e\u043a\u043b\u0430\u0434\u0435 \u00ab<a href=\"https:\/\/pingcap.com\/blog\/2016-10-17-how-we-build-tidb\/\">How we build TiDB<\/a>\u00bb \u043e\u0442 \u0441\u043e\u0443\u0447\u0440\u0435\u0434\u0438\u0442\u0435\u043b\u044f \u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0430 PingCAP \u2014 Max Liu, \u2014 \u0430 \u043a \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0438\u0437 \u043d\u0438\u0445, \u0442\u0435\u0441\u043d\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c \u0441 TiKV, \u043c\u044b \u0435\u0449\u0451 \u0432\u0435\u0440\u043d\u0451\u043c\u0441\u044f. \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 TiDB <a href=\"https:\/\/github.com\/pingcap\/tidb\">\u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f<\/a> \u043f\u043e\u0434 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439 Apache License v2. \u0421\u0440\u0435\u0434\u0438 \u0435\u0451 <a href=\"https:\/\/github.com\/pingcap\/docs\/blob\/master\/adopters.md\">\u043a\u0440\u0443\u043f\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439<\/a> \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0442\u0441\u044f Lenovo, Meizu, Bank of Beijing, Industrial and Commercial Bank of China \u0438 \u0434\u0440.<\/p>\n<p>  \u0427\u0442\u043e \u0436\u0435 \u0442\u0430\u043a\u043e\u0435 TiKV \u0438 \u043a\u0430\u043a\u0443\u044e \u0440\u043e\u043b\u044c \u0438\u0433\u0440\u0430\u0435\u0442 \u0432 \u043c\u0438\u0440\u0435 TiDB (\u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e)?<\/p>\n<h2>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u0438 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 TiKV<\/h2>\n<p>  \u0412\u0435\u0440\u043d\u0451\u043c\u0441\u044f \u043a \u043e\u0431\u0449\u0435\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 TiDB, \u0432 \u0447\u0443\u0442\u044c \u0438\u043d\u043e\u043c \u0435\u0451 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/9f\/ot\/kn\/9fotknwzhc0e6pruh8cpjjoeywy.png\"><\/p>\n<p>  \u041c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c, \u0447\u0442\u043e \u0441\u0430\u043c\u0430 TiDB \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e SQL \u0438 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441 MySQL*, \u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u043e\u0440\u0443\u0447\u0430\u0435\u0442 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0443 TiKV. \u0427\u0442\u043e \u0436\u0435 \u044d\u0442\u043e \u0437\u0430 \u00ab\u043e\u0441\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u00bb? \u0412\u043e\u0442 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f \u0441\u0445\u0435\u043c\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/no\/rl\/ps\/norlpsjgogayj6gdazt7iku22-a.jpeg\"><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">* \u0412 \u0434\u0432\u0443\u0445 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u0445 \u043e \u043f\u0440\u043e\u0441\u043b\u043e\u0439\u043a\u0435 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0441 MySQL \u0432 TiDB.<\/b><\/p>\n<div class=\"spoiler_text\">\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u0432 key-value \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0442\u0430\u043a, \u0447\u0442\u043e \u0438\u0437 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432:<\/p>\n<pre><code class=\"sql\">INSERT INTO user VALUES (1, \"bob\", \"huang@pingcap.com\"); INSERT INTO user VALUES (2, \"tom\", \"tom@pingcap.com\");<\/code><\/pre>\n<p>  \u2026 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/dv\/fy\/3e\/dvfy3encuh2vcdxrgaohxi6odlm.png\"><\/p>\n<p>  \u0418\u043d\u0434\u0435\u043a\u0441\u044b \u0432 TiDB \u2014 \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u044b, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/wb\/tm\/0e\/wbtm0eiaaxopiluq5kcdn_ylvbw.png\">  <\/div>\n<\/div>\n<p>  \u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u043a \u0441\u0445\u0435\u043c\u0435 TiKV:<\/p>\n<ul>\n<li> <b>KV API<\/b> \u2014 \u043d\u0430\u0431\u043e\u0440 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438\/\u0447\u0442\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445;<\/li>\n<li> <b>Coprocessor<\/b> \u2014 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0441\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439 (\u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u0443 HBase);<\/li>\n<li> <b>Transaction<\/b> \u2014 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c, \u043f\u043e\u0445\u043e\u0436\u0430\u044f \u043d\u0430 <a href=\"https:\/\/ai.google\/research\/pubs\/pub36726\">Google Percolator<\/a> (\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432 \u0432 2 \u0444\u0430\u0437\u044b; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 timestamp allocator; \u0441\u043c. \u0442\u0430\u043a\u0436\u0435 <a href=\"https:\/\/blog.yugabyte.com\/implementing-distributed-transactions-the-google-way-percolator-vs-spanner\/\">\u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u043e Spanner<\/a>);<\/li>\n<li> <b>MVCC<\/b> (MultiVersion Concurrency Control) \u0434\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0447\u0442\u0435\u043d\u0438\u044f \u0431\u0435\u0437 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0438 ACID-\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439 (\u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u0435\u0433\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438; \u043b\u044e\u0431\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438, \u043d\u0435 \u0432\u0438\u0434\u043d\u044b \u0434\u0440\u0443\u0433\u0438\u043c \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f\u043c \u0434\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043a\u043e\u043c\u043c\u0438\u0442\u0430);<\/li>\n<li> <b>Raft KV<\/b> \u2014 \u0443\u0436\u0435 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c Raft, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u0434\u043b\u044f \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043a\u043e\u043d\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0445; \u0435\u0433\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Rust \u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0438\u0437 etcd (\u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u0430 \u043e\u0431\u0448\u0438\u0440\u043d\u043e\u0439 \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0435\u0439); \u043a \u0441\u043b\u043e\u0432\u0443, \u0430\u0432\u0442\u043e\u0440\u0430\u043c\u0438 TiKV \u0437\u0430\u044f\u0432\u043b\u0435\u043d\u0430 \u00ab\u043f\u0440\u043e\u0441\u0442\u0430\u044f \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u043c\u043e\u0441\u0442\u044c \u0434\u043e 100+ \u0422\u0431 \u0434\u0430\u043d\u043d\u044b\u0445\u00bb;<\/li>\n<li> <b>RocksDB<\/b> \u2014 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0442\u0438\u043f\u0430 \u043a\u043b\u044e\u0447-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0442\u043e\u0436\u0435 \u0443\u0436\u0435 \u0445\u043e\u0440\u043e\u0448\u043e \u0437\u0430\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u0432\u0448\u0435\u0435 \u0441\u0435\u0431\u044f \u0432 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0432 production (Facebook);<\/li>\n<li> <b>Placement Driver<\/b> \u2014 \u00ab\u043c\u043e\u0437\u0433\u00bb \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u043e \u043a\u043e\u043d\u0446\u0435\u043f\u0442\u0443 \u0438\u0437 Google Spanner \u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0439 \u0437\u0430 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u0440\u0435\u0433\u0438\u043e\u043d\u0430\u0445, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0440\u0435\u043f\u043b\u0438\u043a, \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043d\u0430\u0433\u0440\u0443\u0437\u043e\u043a (\u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Raft).<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/vo\/8e\/ga\/vo8egadfoxvabhuhjma8r6emfhq.jpeg\"><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043e\u0431\u043e\u0431\u0449\u0438\u0442\u044c \u0432\u0437\u0430\u0438\u043c\u043e\u0441\u0432\u044f\u0437\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<ul>\n<li> \u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e <b>\u0443\u0437\u043b\u0430<\/b> \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 TiKV \u0435\u0441\u0442\u044c \u043e\u0434\u043d\u043e \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e <b>\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449<\/b> (RocksDB).<\/li>\n<li> \u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u0435\u0441\u0442\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e <b>\u0440\u0435\u0433\u0438\u043e\u043d\u043e\u0432<\/b>.<\/li>\n<li> \u0420\u0435\u0433\u0438\u043e\u043d \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u00ab\u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0435\u0434\u0438\u043d\u0438\u0446\u0435\u0439 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 key-value\u00bb, \u0440\u0435\u043f\u043b\u0438\u0446\u0438\u0440\u0443\u0435\u0442\u0441\u044f (\u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Raft) \u043d\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0443\u0437\u043b\u043e\u0432. \u0422\u0430\u043a\u0438\u0435 \u043d\u0430\u0431\u043e\u0440\u044b \u0440\u0435\u043f\u043b\u0438\u043a \u043e\u0431\u0440\u0430\u0437\u0443\u044e\u0442 <b>\u0433\u0440\u0443\u043f\u043f\u044b Raft<\/b>.<\/li>\n<li> \u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0439 \u044d\u0442\u0438\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u043c Placement Driver, \u043a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u0438 \u0441\u0430\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u043c.<\/li>\n<\/ul>\n<p>  <\/p>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 TiKV<\/h2>\n<p>  \u041a\u043e\u0434\u043e\u0432\u0430\u044f \u0431\u0430\u0437\u0430 TiKV \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430 Rust, \u043d\u043e \u0438\u043c\u0435\u0435\u0442 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u044f\u0437\u044b\u043a\u0430\u0445 (RocksDB \u043d\u0430 C++ \u0438 gRPC \u043d\u0430 Go). <a href=\"https:\/\/github.com\/tikv\/tikv\">\u0420\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f<\/a> \u043f\u043e\u0434 \u0442\u043e\u0439 \u0436\u0435 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439 Apache License v2.<\/p>\n<p>  \u041a\u0430\u043a \u0443\u0436\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u043e\u0441\u044c \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438, TiKV \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043a\u0430\u043a \u0432\u0430\u0436\u043d\u0430\u044f \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0430\u044f TiDB, \u043d\u043e \u043d\u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f\u0448\u043d\u0438\u0439 \u0434\u0435\u043d\u044c \u043c\u043e\u0436\u0435\u0442 \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u044d\u0442\u043e\u0439 \u0421\u0423\u0411\u0414, \u0442\u0430\u043a \u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e. (\u041d\u043e \u0432 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u043b\u044f \u0435\u0451 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f <a href=\"https:\/\/github.com\/pingcap\/pd\">Placement Driver<\/a>, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 Go \u0438 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u043c\u044b\u0439 \u043a\u0430\u043a \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442).<\/p>\n<p>  \u0421\u0430\u043c\u0430\u044f \u043a\u043e\u0440\u043e\u0442\u043a\u0430\u044f <a href=\"https:\/\/pingcap.com\/docs\/QUICKSTART\/\">\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f<\/a> \u0434\u043b\u044f <b>\u0437\u0430\u043f\u0443\u0441\u043a\u0430 TiKV \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0421\u0423\u0411\u0414 TiDB<\/b> \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u044f Git, Docker (17.03+), Docker Compose (1.6.0+), MySQL Client \u0438 \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439:<\/p>\n<pre><code class=\"bash\">git clone https:\/\/github.com\/pingcap\/tidb-docker-compose.git cd tidb-docker-compose &amp;&amp; docker-compose pull docker-compose up -d<\/code><\/pre>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 \u0441\u0442\u0430\u043d\u0435\u0442 \u0440\u0430\u0437\u0432\u0451\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 TiDB, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0435\u0433\u043e \u0438\u0437 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432:<\/p>\n<ul>\n<li> 1 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e TiDB;<\/li>\n<li> 3 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 TiKV;<\/li>\n<li> 3 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 Placement Driver;<\/li>\n<li> Prometheus \u0438 Grafana <i>(\u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432)<\/i>;<\/li>\n<li> 2 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 (\u043c\u0430\u0441\u0442\u0435\u0440 + \u0441\u043b\u0435\u0439\u0432) <a href=\"https:\/\/github.com\/pingcap\/tispark\">TiSpark<\/a> <i>(\u043f\u0440\u043e\u0441\u043b\u043e\u0439\u043a\u0430 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 Apache Spark \u043f\u043e\u0432\u0435\u0440\u0445 TiDB\/TiKV \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0441\u043b\u043e\u0436\u043d\u044b\u0445 OLAP-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432)<\/i>;<\/li>\n<li> 1 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 <a href=\"https:\/\/github.com\/pingcap\/tidb-vision\">TiDB-Vision<\/a> <i>(\u0434\u043b\u044f \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0430\u0431\u043e\u0442\u044b Placement Driver)<\/i>.<\/li>\n<\/ul>\n<p>  \u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0440\u0430\u0437\u0432\u0451\u0440\u043d\u0443\u0442\u043e\u0439 \u0421\u0423\u0411\u0414:<\/p>\n<ul>\n<li> \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 MySQL-\u043a\u043b\u0438\u0435\u043d\u0442: <code>mysql -h 127.0.0.1 -P 4000 -u root<\/code>;<\/li>\n<li> \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 Grafana \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u2014 <code>http:\/\/localhost:3000<\/code> \u043f\u043e\u0434 admin\/admin;<\/li>\n<li> \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 TiDB-Vision \u0434\u043b\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0435 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435 \u0438 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u0443\u0437\u043b\u0430\u043c \u2014 <code>http:\/\/localhost:8010<\/code>;<\/li>\n<li> \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 Spark \u2014 <code>http:\/\/localhost:8080<\/code> (\u0434\u043e\u0441\u0442\u0443\u043f \u043a TiSpark \u2014 \u0447\u0435\u0440\u0435\u0437 <code>spark:\/\/127.0.0.1:7077<\/code>).<\/li>\n<\/ul>\n<p>  \u0415\u0441\u043b\u0438 \u0436\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f <b>\u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 TiDB<\/b> (\u0442.\u0435. \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u044b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 Docker-\u043e\u0431\u0440\u0430\u0437\u044b, \u043f\u043e\u0440\u0442\u044b \u0438 \u0442.\u043f.), \u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f <a href=\"https:\/\/github.com\/pingcap\/tidb-docker-compose\">tidb-docker-compose<\/a> \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433 \u0434\u043b\u044f Docker Compose:<\/p>\n<pre><code class=\"bash\">$ cd tidb-docker-compose $ vi compose\/values.yaml $ helm template compose &gt; generated-docker-compose.yaml $ docker-compose -f generated-docker-compose.yaml pull $ docker-compose -f generated-docker-compose.yaml up -d<\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0435\u0449\u0451 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u2014 \u0441\u043c. \u00ab<a href=\"https:\/\/github.com\/pingcap\/tidb-docker-compose#customize-tidb-cluster\">Customize TiDB Cluster<\/a>\u00bb, \u0433\u0434\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f, \u043e\u0442\u043a\u0443\u0434\u0430 \u0431\u0435\u0440\u0443\u0442\u0441\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0438 \u0434\u043b\u044f TiDB, TiKV, Placement Driver \u0438 \u0434\u0440\u0443\u0433\u0430\u044f \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430.<\/p>\n<p>  \u0414\u043b\u044f \u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e <b>\u0434\u0435\u043f\u043b\u043e\u044f TiDB \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 Kubernetes<\/b> \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d \u043e\u0434\u043d\u043e\u0438\u043c\u0451\u043d\u043d\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u2014 <a href=\"https:\/\/github.com\/pingcap\/tidb-operator\">TiDB Operator<\/a>. \u041e\u043d \u0435\u0441\u0442\u044c \u0432 Helm-\u0447\u0430\u0440\u0442\u0430\u0445, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u0432\u0435\u0434\u0435\u043d\u0430 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c (\u0441\u043b\u0430\u0439\u0434 \u0438\u0437 <a href=\"https:\/\/zhuanlan.zhihu.com\/p\/35048966\">\u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a> \u043d\u0430 TiDB DevConf 2018):<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/nl\/as\/fg\/nlasfgegaxotqvvwyxbdt6pqxhu.jpeg\"><\/p>\n<p>  \u041a \u0441\u043b\u043e\u0432\u0443, \u0432 \u0442\u043e\u0439 \u0436\u0435 \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f \u043e \u0432\u0437\u0433\u043b\u044f\u0434\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 TiDB \u043d\u0430 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u044d\u0442\u043e\u0439 \u0421\u0423\u0411\u0414. \u0422\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043d\u0430 \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435, \u043d\u043e \u043e\u0431\u0449\u0435\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u0437 \u044d\u0442\u0438\u0445 \u0441\u043b\u0430\u0439\u0434\u043e\u0432:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/zu\/bu\/b1\/zubub1owruwhahyofdipppc-fie.jpeg\"><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/z2\/k-\/f1\/z2k-f1vwbtp_zxslpjzjyyufpcc.jpeg\"><\/p>\n<p>  \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044f\u0441\u044c \u0436\u0435 \u043a \u0442\u0435\u043c\u0435 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e TiKV \u2014 \u0443 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u044b \u0441\u0432\u043e\u0438 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0430 \u043f\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0443 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u0446\u0435\u043b\u0435\u0439:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.pingcap.com\/docs\/op-guide\/docker-compose\/\">\u0432\u043c\u0435\u0441\u0442\u0435 \u0441 TiDB<\/a>;<\/li>\n<li>\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e:<br \/> \n<ul>\n<li><a href=\"https:\/\/www.pingcap.com\/docs\/tikv\/deploy-tikv-docker-compose\/\">\u0441 Docker Compose<\/a>;<\/li>\n<li><a href=\"https:\/\/www.pingcap.com\/docs\/tikv\/deploy-tikv-using-docker\/\">\u0441 Docker<\/a>;<\/li>\n<li><a href=\"https:\/\/www.pingcap.com\/docs\/tikv\/deploy-tikv-using-binary\/\">\u043a\u0430\u043a \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a<\/a>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>  \u0410 \u0434\u043b\u044f <b>\u0434\u0435\u043f\u043b\u043e\u044f TiKV \u0432 production<\/b> \u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043d\u0430\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441 Ansible \u2014 \u043e\u043f\u044f\u0442\u044c \u0436\u0435, <a href=\"https:\/\/www.pingcap.com\/docs\/op-guide\/ansible-deployment\/\">\u0441 TiDB<\/a> \u0438 <a href=\"https:\/\/www.pingcap.com\/docs\/tikv\/deploy-tikv-using-ansible\/\">\u0431\u0435\u0437 \u043d\u0435\u0451<\/a>.<\/p>\n<p>  \u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 TiKV \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0442\u0441\u044f:<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/pingcap\/tidb\/tree\/master\/store\/tikv\">\u043a\u043b\u0438\u0435\u043d\u0442 TiDB \u043d\u0430 Go<\/a>;<\/li>\n<li><a href=\"https:\/\/github.com\/pingcap\/tispark\/tree\/master\/tikv-client\/src\/main\/java\/com\/pingcap\/tikv\">Java-\u043a\u043b\u0438\u0435\u043d\u0442 TiSpark<\/a>;<\/li>\n<li><a href=\"https:\/\/www.pingcap.com\/docs\/tikv\/go-client-api\/\">\u0434\u0432\u0430 \u0442\u0438\u043f\u0430 API \u0434\u043b\u044f Go<\/a>.<\/li>\n<\/ul>\n<p>  \u0412 <a href=\"https:\/\/github.com\/tikv\/tikv\/blob\/master\/docs\/ROADMAP.md\">\u043f\u043b\u0430\u043d\u0430\u0445 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432<\/a> \u0442\u0430\u043a\u0436\u0435 \u0437\u043d\u0430\u0447\u0438\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0430 Rust.<\/p>\n<h2>\u0418\u0442\u043e\u0433\u0438<\/h2>\n<p>  \u0417\u0430\u0440\u043e\u0434\u0438\u0432\u0448\u0438\u0441\u044c \u043a\u0430\u043a \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0431\u043e\u043b\u0435\u0435 \u043a\u0440\u0443\u043f\u043d\u043e\u0433\u043e Open Source-\u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u0439 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438, TiKV \u0443\u0436\u0435 \u0443\u0441\u043f\u0435\u043b \u0437\u0430\u0432\u043e\u0435\u0432\u0430\u0442\u044c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u044c \u0432 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0448\u0438\u0440\u043e\u043a\u0438\u0445 \u043a\u0440\u0443\u0433\u0430\u0445. <a href=\"https:\/\/github.com\/tikv\/tikv\/pulse\">\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 GitHub<\/a> \u0441\u0432\u0438\u0434\u0435\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e 3600+ \u0437\u0432\u0451\u0437\u0434\u0430\u0445, \u043d\u043e \u0438 \u043f\u043e\u0447\u0442\u0438 500 \u0444\u043e\u0440\u043a\u0430\u0445, \u0438 \u043f\u043e\u0447\u0442\u0438 100 \u043a\u043e\u043d\u0442\u0440\u0438\u0431\u044c\u044e\u0442\u043e\u0440\u0430\u0445 (\u0445\u043e\u0442\u044f \u0431\u043e\u043b\u0435\u0435 10 \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043b\u0438\u0448\u044c \u0434\u0432\u0430 \u0434\u0435\u0441\u044f\u0442\u043a\u0430 \u0438\u0437 \u043d\u0438\u0445).<\/p>\n<p>  \u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 TiKV \u043a \u0447\u0438\u0441\u043b\u0443 <a href=\"https:\/\/www.cncf.io\/projects\/\">\u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 CNCF<\/a> \u0438 \u0442\u043e\u0442 \u0444\u0430\u043a\u0442, \u0447\u0442\u043e \u044d\u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430, \u0442\u043e\u0436\u0435 \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043d\u0430 \u043f\u0440\u0438\u0437\u043d\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e\u043c cloud native\u2026 \u0438 \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u0440\u0438\u0434\u0430\u0442\u044c \u0438\u043c\u043f\u0443\u043b\u044c\u0441 \u0431\u043e\u043b\u0435\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u043c\u0443 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044e \u0435\u0433\u043e \u043a\u043e\u0434\u043e\u0432\u043e\u0439 \u0431\u0430\u0437\u044b \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043c\u0438 (\u0442.\u0435. \u0432\u043d\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438-\u043e\u0441\u043d\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0435\u0451 \u0421\u0423\u0411\u0414) \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u0430\u043c\u0438.<\/p>\n<h2>P.S.<\/h2>\n<p>  \u0427\u0438\u0442\u0430\u0439\u0442\u0435 \u0442\u0430\u043a\u0436\u0435 \u0432 \u043d\u0430\u0448\u0435\u043c \u0431\u043b\u043e\u0433\u0435:<\/p>\n<ul>\n<li> \u00ab<a href=\"https:\/\/habr.com\/company\/flant\/blog\/327640\/\">\u0417\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 \u0421\u0423\u0411\u0414 CockroachDB \u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u0441 \u043d\u0435\u0439 \u043d\u0430 Ubuntu 16.04<\/a>\u00bb;<\/li>\n<li> \u00ab<a href=\"https:\/\/habr.com\/company\/flant\/blog\/348044\/\">Rook \u2014 \u201e\u0441\u0430\u043c\u043e\u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u043c\u043e\u0435\u201c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f Kubernetes<\/a>\u00bb;<\/li>\n<li> \u00ab<a href=\"https:\/\/habr.com\/company\/flant\/blog\/417509\/\">\u0423\u0441\u043a\u043e\u0440\u044f\u0435\u043c bootstrap \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Kubernetes<\/a>\u00bb;<\/li>\n<li> \u00ab<a href=\"https:\/\/habr.com\/company\/flant\/blog\/350928\/\">\u041f\u0443\u0442\u0435\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c CNCF \u043f\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c Open Source (\u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e) \u0434\u043b\u044f cloud native<\/a>\u00bb;<\/li>\n<li> \u00ab<a href=\"https:\/\/habr.com\/company\/flant\/blog\/326414\/\">\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0434\u043b\u044f Kubernetes: \u043a\u0430\u043a \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c stateful-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/a>\u00bb.<\/li>\n<\/ul>\n<\/div>\n<p>        <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/post\/421903\/\"> https:\/\/habr.com\/post\/421903\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div data-io-article-url=\"https:\/\/habr.com\/company\/flant\/blog\/421903\/\" class=\"post__text post__text-html js-mediator-article\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/no\/aw\/mm\/noawmmgrfclc2rftv_zq8lavrsi.png\"><\/p>\n<p>  28 \u0430\u0432\u0433\u0443\u0441\u0442\u0430 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f CNCF (Cloud Native Computing Foundation), \u0441\u0442\u043e\u044f\u0449\u0430\u044f \u0437\u0430 Kubernetes, Prometheus \u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 Open Source-\u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c\u0438 \u0434\u043b\u044f \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, <a href=\"https:\/\/www.cncf.io\/blog\/2018\/08\/28\/cncf-to-host-tikv-in-the-sandbox\/\">\u043e\u0431\u044a\u044f\u0432\u0438\u043b\u0430<\/a> \u043e \u043f\u0440\u0438\u043d\u044f\u0442\u0438\u0438 \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0432 \u0441\u0432\u043e\u044e \u00ab\u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u0443\u00bb \u2014 <a href=\"https:\/\/github.com\/tikv\/tikv\"><b>TiKV<\/b><\/a>.<\/p>\n<p>  \u042d\u0442\u0430 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u0430\u044f, \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0430 \u043a\u043b\u044e\u0447-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0437\u0430\u0440\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u043a\u0430\u043a \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a <a href=\"https:\/\/github.com\/pingcap\/tidb\"><b>TiDB<\/b><\/a> \u2014 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0439 \u0421\u0423\u0411\u0414, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 OLTP \u0438 OLAP \u0438 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u043c MySQL\u2026 \u041d\u043e \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043e\u0431\u043e \u0432\u0441\u0451\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-289023","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/289023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=289023"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/289023\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=289023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=289023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=289023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}