{"id":53944,"date":"2019-12-13T00:00:00","date_gmt":"2019-12-12T21:00:00","guid":{"rendered":"https:\/\/prohoster.info\/blog\/blog_prohoster\/clickhouse-graphite-kak-znachitelno-umenshit-potreblyaemoe-mesto-na-diskah"},"modified":"2020-02-18T14:01:53","modified_gmt":"2020-02-18T11:01:53","slug":"clickhouse-graphite-kak-znachitelno-umenshit-potreblyaemoe-mesto-na-diskah","status":"publish","type":"post","link":"https:\/\/prohoster.info\/hy\/blog\/administrirovanie\/clickhouse-graphite-kak-znachitelno-umenshit-potreblyaemoe-mesto-na-diskah","title":{"rendered":"ClickHouse + Graphite: \u056b\u0576\u0579\u057a\u0565\u057d \u0567 \u0567\u0561\u057a\u0565\u057d \u0576\u057e\u0561\u0566\u0565\u0581\u057e\u0578\u0582\u0574 \u0564\u056b\u057d\u056f\u056b \u057f\u0561\u0580\u0561\u056e\u0584\u056b \u057d\u057a\u0561\u057c\u0578\u0582\u0574\u0568","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><img decoding=\"async\" alt=\"ClickHouse + Graphite: \u056b\u0576\u0579\u057a\u0565\u057d \u0567 \u0567\u0561\u057a\u0565\u057d \u0576\u057e\u0561\u0566\u0565\u0581\u057e\u0578\u0582\u0574 \u0564\u056b\u057d\u056f\u056b \u057f\u0561\u0580\u0561\u056e\u0584\u056b \u057d\u057a\u0561\u057c\u0578\u0582\u0574\u0568\" src=\"\/wp-content\/uploads\/2019\/12\/5a2d19e6fea2a28d8d4aa9220653aefc.png\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p>\u0532\u0561\u0580\u056b \u0563\u0561\u056c\u0578\u0582\u057d\u057f, habr\u0589<\/p>\n<p><\/p>\n<p>\u0535\u0569\u0565 \u0578\u0580\u0587\u0567 \u0574\u0565\u056f\u0568 \u0577\u0561\u0570\u0561\u0563\u0578\u0580\u056e\u0578\u0582\u0574 \u0567 \u0570\u0561\u0574\u0561\u056f\u0561\u0580\u0563\u0568 <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/graphite-project\/graphite-web\">graphite-web<\/a><\/noindex> \u0587 \u0562\u0561\u056d\u057e\u0565\u056c \u0567 \u057a\u0561\u0570\u0565\u057d\u057f\u056b \u056f\u0561\u057f\u0561\u0580\u0578\u0572\u0561\u056f\u0561\u0576\u056b \u056d\u0576\u0564\u0580\u056b <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/graphite-project\/whisper\">whisper<\/a><\/noindex> (IO, \u0585\u0563\u057f\u0561\u0563\u0578\u0580\u056e\u057e\u0578\u0572 \u057d\u056f\u0561\u057e\u0561\u057c\u0561\u056f\u056b \u057f\u0561\u0580\u0561\u056e\u0578\u0582\u0569\u0575\u0578\u0582\u0576), \u0561\u057a\u0561 \u0570\u0561\u057e\u0561\u0576\u0561\u056f\u0561\u0576\u0578\u0582\u0569\u0575\u0578\u0582\u0576\u0568, \u0578\u0580 ClickHouse-\u0568 \u0564\u056b\u057f\u0561\u0580\u056f\u057e\u0565\u056c \u0567 \u0578\u0580\u057a\u0565\u057d \u0583\u0578\u056d\u0561\u0580\u056b\u0576\u0578\u0582\u0574, \u057a\u0565\u057f\u0584 \u0567 \u0574\u0578\u057f\u0565\u0576\u0561 \u0574\u0565\u056f\u056b\u0576: \u0531\u0575\u057d \u0570\u0561\u0575\u057f\u0561\u0580\u0561\u0580\u0578\u0582\u0569\u0575\u0578\u0582\u0576\u0568 \u0565\u0576\u0569\u0561\u0564\u0580\u0578\u0582\u0574 \u0567, \u0578\u0580 \u0578\u0580\u057a\u0565\u057d \u0579\u057d\u057f\u0561\u0581\u057e\u0561\u056e \u0574\u0565\u057f\u0580\u056b\u056f\u0576\u0565\u0580\u056b \u0568\u0576\u0564\u0578\u0582\u0576\u0578\u0572 \u0561\u0580\u0564\u0565\u0576 \u0585\u0563\u057f\u0561\u0563\u0578\u0580\u056e\u057e\u0578\u0582\u0574 \u0567 \u0565\u0580\u0580\u0578\u0580\u0564 \u056f\u0578\u0572\u0574\u056b \u056b\u0580\u0561\u056f\u0561\u0576\u0561\u0581\u0578\u0582\u0574, \u0585\u0580\u056b\u0576\u0561\u056f <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/grobian\/carbonwriter\">carbonwriter<\/a><\/noindex> \u056f\u0561\u0574 <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/go-graphite\/go-carbon\">go-carbon<\/a><\/noindex>.<\/p>\n<p><\/p>\n<p>ClickHouse-\u0576 \u056c\u0561\u057e \u056c\u0578\u0582\u056e\u0578\u0582\u0574 \u0567 \u0576\u0565\u0580\u0564\u0580\u057e\u0561\u056e \u056d\u0576\u0564\u056b\u0580\u0576\u0565\u0580\u056b\u0576: \u0555\u0580\u056b\u0576\u0561\u056f, whisper-\u056b\u0581 2TiB \u057f\u057e\u0575\u0561\u056c\u0576\u0565\u0580\u056b \u057f\u0565\u0572\u0561\u0583\u0578\u056d\u0565\u056c\u0578\u0582\u0581 \u0570\u0565\u057f\u0578 \u0564\u0580\u0561\u0576\u0584 \u057f\u0565\u0572\u0561\u057e\u0578\u0580\u057e\u0565\u0581\u056b\u0576 300GiB-\u0578\u0582\u0574: \u0540\u056b\u0574\u0576\u0561\u056f\u0561\u0576\u0578\u0582\u0574 \u0579\u0565\u0574 \u056f\u0561\u0576\u0563 \u0561\u057c\u0576\u0565\u056c\u0578\u0582 \u0570\u0561\u0574\u0565\u0574\u0561\u057f\u0578\u0582\u0569\u0575\u0561\u0576 \u057e\u0580\u0561, \u0561\u0575\u057d \u0569\u0565\u0574\u0561\u0575\u0578\u057e \u0570\u0578\u0564\u057e\u0561\u056e\u0576\u0565\u0580 \u0562\u0561\u057e\u0561\u056f\u0561\u0576 \u0565\u0576: \u0532\u0561\u0581\u056b \u0561\u0575\u0564, \u0574\u056b\u0576\u0579\u0587 \u057e\u0565\u0580\u057b\u0565\u0580\u057d \u0574\u0565\u0580 ClickHouse \u057a\u0561\u0570\u0565\u057d\u057f\u056b \u0570\u0565\u057f \u0561\u0574\u0565\u0576 \u056b\u0576\u0579 \u0563\u0565\u0580\u0561\u0566\u0561\u0576\u0581 \u0579\u0567\u0580:<\/p>\n<p><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<h3 id=\"problemy-s-potreblyaemym-mestom\">\u0555\u0563\u057f\u057e\u0578\u0572\u0561\u056f\u0561\u0576 \u057f\u0561\u0580\u0561\u056e\u0584\u056b \u056d\u0576\u0564\u056b\u0580\u0576\u0565\u0580<\/h3>\n<p><\/p>\n<p>\u0531\u057c\u0561\u057b\u056b\u0576 \u0570\u0561\u0575\u0561\u0581\u0584\u056b\u0581, \u0561\u0574\u0565\u0576 \u056b\u0576\u0579 \u057a\u0565\u057f\u0584 \u0567 \u056c\u0561\u057e \u0561\u0577\u056d\u0561\u057f\u056b: \u0540\u0565\u057f\u0587\u0565\u056c\u0578\u057e <noindex><a rel=\"nofollow\" href=\"https:\/\/clickhouse.yandex\/docs\/ru\/operations\/table_engines\/graphitemergetree\/#primer-konfiguratsii\">\u0583\u0561\u057d\u057f\u0561\u0569\u0572\u0569\u0561\u057e\u0578\u0580\u0578\u0582\u0574\u0568<\/a><\/noindex>, \u057d\u057f\u0565\u0572\u056e\u0578\u0582\u0574 \u0565\u0576\u0584 \u0574\u0565\u057f\u0580\u056b\u056f\u0576\u0565\u0580\u056b \u057a\u0561\u0570\u0565\u056c\u0578\u0582 \u057d\u056d\u0565\u0574\u0561\u0575\u056b \u0570\u0561\u0574\u0561\u0580 \u056f\u0578\u0576\u0586\u056b\u0563 (\u0570\u0565\u057f\u0561\u0563\u0561\u0575\u0578\u0582\u0574 <code>retention<\/code>), \u0561\u057a\u0561 \u056f\u0561\u0566\u0574\u0578\u0582\u0574 \u0565\u0576\u0584 \u0561\u0572\u0575\u0578\u0582\u057d\u0561\u056f \u0568\u057d\u057f graphite-web-\u056b \u0568\u0576\u057f\u0580\u0561\u056e \u0576\u0561\u056d\u0561\u0564\u0580\u0575\u0561\u056c\u0576\u0565\u0580\u056b \u0561\u057c\u0561\u057b\u0561\u0580\u056f\u056b: <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/lomik\/carbon-clickhouse\">carbon-clickhouse<\/a><\/noindex>+<noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/lomik\/graphite-clickhouse\">graphite-clickhouse<\/a><\/noindex> \u056f\u0561\u0574 <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/ClickHouse\/graphouse\">graphouse<\/a><\/noindex>, \u056f\u0561\u056d\u057e\u0561\u056e \u0576\u0580\u0561\u0576\u056b\u0581, \u0569\u0565 \u056b\u0576\u0579 \u0569\u0565\u0584\u0576\u0578\u056c\u0578\u057c\u0578\u0582\u0574 \u0567 \u0585\u0563\u057f\u0561\u0563\u0578\u0580\u056e\u057e\u0578\u0582\u0574: \u0535\u057e\u2026 \u057d\u056f\u057d\u057e\u0578\u0582\u0574 \u0567 \u0564\u0561\u0576\u0564\u0561\u0572 \u0563\u0578\u0580\u056e\u0578\u0572\u0578\u0582\u0569\u0575\u0561\u0576 \u057a\u0561\u0575\u0569\u0575\u0578\u0582\u0576:<\/p>\n<p><\/p>\n<p>\u0548\u0582\u0572\u056b\u0576 \u0570\u0561\u057d\u056f\u0561\u0576\u0561\u056c\u0578\u0582 \u0570\u0561\u0574\u0561\u0580, \u0569\u0565 \u0578\u0580 \u057e\u0565\u0580\u057b\u056b\u0576, \u057a\u0565\u057f\u0584 \u0567 \u056b\u0574\u0561\u0576\u0561\u056c, \u0569\u0565 \u056b\u0576\u0579\u057a\u0565\u057d \u0565\u0576 \u056f\u0561\u057f\u0561\u0580\u0578\u0582\u0574 \u057f\u057e\u0575\u0561\u056c\u0576\u0565\u0580\u056b \u0576\u0565\u0580\u0561\u0580\u056f\u0578\u0582\u0574\u0576\u0565\u0580\u0568 \u0587 \u0564\u0580\u0561\u0576\u0581 \u0570\u0565\u057f\u0561\u0563\u0561 \u0561\u0576\u0565\u056c\u0578\u0582 \u0568\u0576\u0569\u0561\u0581\u0584\u0568 *<em>MergeTree<\/em> ClickHouse (\u0563\u0580\u0561\u0586\u056b\u056f\u0576\u0565\u0580\u0568 \u057e\u0565\u0580\u0581\u057e\u0561\u056e \u0565\u0576 <noindex><a rel=\"nofollow\" href=\"https:\/\/youtu.be\/PLMSA_gDdyM\">\u0576\u0561\u056d\u0561\u0570\u0561\u0576\u0571\u0578\u0582\u0574\u056b\u0581<\/a><\/noindex> \u0531\u056c\u0565\u0584\u057d\u0565\u0575 \u0536\u0561\u057f\u0565\u056c\u056b\u0565\u0583\u056b\u0576\u056b):<\/p>\n<p><\/p>\n<ul>\n<li>\u0546\u0565\u0580\u0561\u0580\u056f\u057e\u0578\u0582\u0574 \u0567 <code>\u057f\u0565\u0572\u0565\u056f\u0561\u057f\u057e\u0578\u0582\u0569\u0575\u0561\u0576 \u0562\u056c\u0578\u056f:<\/code> \u0544\u0565\u0580 \u0564\u0565\u057a\u0584\u0578\u0582\u0574, \u057d\u0561 \u0576\u0574\u0578\u0582\u0577\u0561\u057e\u0578\u0580\u057e\u0565\u0581 \u0574\u0565\u057f\u0580\u056b\u056f\u0561\u0576\u0565\u0580\u0568:<br \/>\n<img decoding=\"async\" alt=\"ClickHouse + Graphite: \u056b\u0576\u0579\u057a\u0565\u057d \u0567 \u0567\u0561\u057a\u0565\u057d \u0576\u057e\u0561\u0566\u0565\u0581\u057e\u0578\u0582\u0574 \u0564\u056b\u057d\u056f\u056b \u057f\u0561\u0580\u0561\u056e\u0584\u056b \u057d\u057a\u0561\u057c\u0578\u0582\u0574\u0568\" src=\"\/wp-content\/uploads\/2019\/12\/b60d482acca3c8d187d394f58a2d8a16.png\" style=\"display:block;margin: 0 auto;\" \/><\/li>\n<li>\u0545\u0578\u0582\u0580\u0561\u0584\u0561\u0576\u0579\u0575\u0578\u0582\u0580 \u0561\u0575\u0564\u057a\u056b\u057d\u056b \u0562\u056c\u0578\u056f, \u0576\u0561\u056d\u0584\u0561\u0576 \u057d\u056f\u0561\u057e\u0561\u057c\u0561\u056f\u056b \u057e\u0580\u0561 \u0563\u0580\u0561\u057c\u0578\u0582\u0574\u0568, \u0564\u0561\u057d\u0561\u057e\u0578\u0580\u057e\u0578\u0582\u0574 \u0567 \u0568\u057d\u057f \u0576\u0577\u057e\u0561\u056e \u0562\u0561\u0576\u0561\u056c\u056b\u056b <code>ORDER BY<\/code>, \u0578\u0580\u0568 \u0576\u0577\u057e\u0561\u056e \u0567\u0580 \u0561\u0572\u0575\u0578\u0582\u057d\u0561\u056f\u056b \u057d\u057f\u0565\u0572\u056e\u0574\u0561\u0576 \u056a\u0561\u0574\u0561\u0576\u0561\u056f:<\/li>\n<li>\u0534\u0561\u057d\u0561\u057e\u0578\u0580\u0578\u0582\u0574\u056b\u0581 \u0570\u0565\u057f\u0578, <code>\u0574\u0561\u0576\u0580\u0561\u0574\u0561\u057d<\/code> (<code>part<\/code>) \u057f\u057e\u0575\u0561\u056c\u0576\u0565\u0580\u0568 \u0563\u0580\u0561\u0576\u0581\u057e\u0578\u0582\u0574 \u0565\u0576 \u057d\u056f\u0561\u057e\u0561\u057c\u0561\u056f\u056b \u057e\u0580\u0561:<br \/>\n<img decoding=\"async\" alt=\"ClickHouse + Graphite: \u056b\u0576\u0579\u057a\u0565\u057d \u0567 \u0567\u0561\u057a\u0565\u057d \u0576\u057e\u0561\u0566\u0565\u0581\u057e\u0578\u0582\u0574 \u0564\u056b\u057d\u056f\u056b \u057f\u0561\u0580\u0561\u056e\u0584\u056b \u057d\u057a\u0561\u057c\u0578\u0582\u0574\u0568\" src=\"\/wp-content\/uploads\/2019\/12\/a54903b8efa0866d24da303fa7a68134.png\" style=\"display:block;margin: 0 auto;\" \/><\/li>\n<li>\u054d\u0565\u0580\u057e\u0565\u0580\u0568 \u0570\u0565\u057f\u0587\u0578\u0582\u0574 \u0567, \u0578\u0580 \u0576\u0574\u0561\u0576 \u0570\u0561\u057d\u0581\u0565\u0576\u0565\u0580\u056b \u0584\u0561\u0576\u0561\u056f\u0568 \u0561\u057e\u0565\u056c \u0579\u056c\u056b\u0576\u056b, \u0587 \u057d\u056f\u057d\u0578\u0582\u0574 \u0567 \u0586\u0578\u0576\u0561\u0575\u056b\u0576 <code>\u0574\u0565\u0576\u0584\u0565\u0580\u0568<\/code> (<code>merge<\/code>, \u0570\u0565\u057f\u0561\u0563\u0561\u0575\u0578\u0582\u0574 \u0574\u0565\u0580\u056a\u0576\u0565\u0580\u0568:<br \/>\n<img decoding=\"async\" alt=\"ClickHouse + Graphite: \u056b\u0576\u0579\u057a\u0565\u057d \u0567 \u0567\u0561\u057a\u0565\u057d \u0576\u057e\u0561\u0566\u0565\u0581\u057e\u0578\u0582\u0574 \u0564\u056b\u057d\u056f\u056b \u057f\u0561\u0580\u0561\u056e\u0584\u056b \u057d\u057a\u0561\u057c\u0578\u0582\u0574\u0568\" src=\"\/wp-content\/uploads\/2019\/12\/151c18c7b73ebc4097493b13a2e26765.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<img decoding=\"async\" alt=\"ClickHouse + Graphite: \u056b\u0576\u0579\u057a\u0565\u057d \u0567 \u0567\u0561\u057a\u0565\u057d \u0576\u057e\u0561\u0566\u0565\u0581\u057e\u0578\u0582\u0574 \u0564\u056b\u057d\u056f\u056b \u057f\u0561\u0580\u0561\u056e\u0584\u056b \u057d\u057a\u0561\u057c\u0578\u0582\u0574\u0568\" src=\"\/wp-content\/uploads\/2019\/12\/1921908554981eca0847541f77a15790.png\" style=\"display:block;margin: 0 auto;\" \/><\/li>\n<li>\u054d\u0565\u0580\u057e\u0565\u0580\u0568 \u0564\u0561\u0564\u0561\u0580\u0565\u0581\u0576\u0578\u0582\u0574 \u0567 \u0574\u0565\u0580\u056a\u0576\u0565\u0580\u056b \u056b\u0576\u0584\u0576\u0561\u056f\u0561\u057c\u0561\u057e\u0561\u0580\u0574\u0561\u0576 \u0570\u0561\u0574\u0561\u056f\u0561\u0580\u0563\u0568, \u056b\u0576\u0579\u057a\u0565\u057d \u0574\u056b\u0561\u0575\u0576 \u057f\u057e\u0575\u0561\u056c\u0576\u0565\u0580\u0568 \u0561\u056f\u057f\u056b\u057e \u0579\u0565\u0576 \u057f\u0565\u0572\u0561\u0583\u0578\u056d\u057e\u0578\u0582\u0574 <code>\u057f\u0578\u0582\u057b\u0578\u0582\u0574<\/code> (<code>partition<\/code>), \u0562\u0561\u0575\u0581 \u0563\u0578\u0580\u056e\u0568\u0576\u0569\u0561\u0581\u0568 \u056f\u0561\u0580\u0565\u056c\u056b \u0567 \u0571\u0565\u057c\u0584\u0578\u057e \u057d\u056f\u057d\u0565\u056c <code>OPTIMIZE<\/code>.<\/li>\n<li>\u0535\u0569\u0565 \u0562\u0561\u056a\u0576\u0578\u0582\u0574 \u0574\u0576\u0561\u0581\u0565\u056c \u0567 \u0574\u056b\u0561\u0575\u0576 \u0574\u0565\u056f \u0574\u0561\u0576\u0580\u0561\u0574\u0561\u057d, \u0561\u057a\u0561 \u057d\u0580\u0561\u0576\u0578\u057e \u057a\u0561\u0580\u0566 \u0561\u0575\u056c \u056f\u0561\u0580\u0563\u0578\u057e \u0579\u056b \u0570\u0576\u0561\u0580\u0561\u057e\u0578\u0580 <code>OPTIMIZE ... FINAL<\/code><\/li>\n<\/ul>\n<p><\/p>\n<p>\u0531\u0575\u056a\u0574, \u0576\u0565\u0580\u0564\u0580\u057e\u0578\u0582\u0574 \u0565\u0576 \u0561\u057c\u0561\u057b\u056b\u0576 \u0574\u0565\u057f\u0580\u056b\u056f\u0561\u0576\u0565\u0580\u0568: \u0535\u057e \u0576\u0580\u0561\u0576\u0584 \u0566\u0562\u0561\u0572\u0565\u0581\u0576\u0578\u0582\u0574 \u0565\u0576 \u0578\u0580\u0578\u0577 \u057f\u0561\u0580\u0561\u056e\u0578\u0582\u0569\u0575\u0578\u0582\u0576: \u0540\u0565\u057f\u0561\u0563\u0561 \u0564\u0580\u057d\u0587\u0578\u0580\u0578\u0582\u0574\u0576\u0565\u0580\u0568, \u057f\u0561\u0580\u0562\u0565\u0580 \u0577\u0561\u057f \u0586\u0561\u056f\u057f\u0578\u0580\u0576\u0565\u0580\u056b\u0581 \u056f\u0561\u056d\u057e\u0561\u056e, \u056f\u0561\u0580\u0578\u0572 \u0565\u0576 \u0574\u056b \u0583\u0578\u0584\u0580 \u0583\u0578\u056d\u057e\u0565\u056c:<\/p>\n<p><\/p>\n<ul>\n<li>\u0532\u0561\u056a\u0576\u0561\u057e\u0578\u0580\u0574\u0561\u0576 \u0562\u0561\u0576\u0561\u056c\u056b\u0576 \u056f\u0561\u0580\u0578\u0572 \u0567 \u056c\u056b\u0576\u0565\u056c \u056b\u0576\u0579\u057a\u0565\u057d \u0577\u0561\u057f \u0583\u0578\u0584\u0580 (\u0585\u0580), \u0561\u0575\u0576\u057a\u0565\u057d \u0567\u056c \u0577\u0561\u057f \u0574\u0565\u056e (\u0574\u056b \u0584\u0561\u0576\u056b \u0561\u0574\u056b\u057d):<\/li>\n<li>\u0531\u0575\u057d \u057a\u0561\u0570\u0565\u0580\u0569\u0578\u0582\u0574 \u057a\u0561\u0570\u057a\u0561\u0576\u0574\u0561\u0576 \u056f\u0578\u0576\u0586\u056b\u0563\u0568 \u056f\u0561\u0580\u0578\u0572 \u0567 \u0576\u0565\u0580\u0561\u057c\u0565\u056c \u0574\u056b \u0584\u0561\u0576\u056b \u0576\u0577\u0561\u0576\u0561\u056f\u0561\u056c\u056b \u0561\u0580\u057f\u0561\u057d\u0561\u0570\u0574\u0561\u0576\u0575\u0561\u0576 \u0577\u962d\u0578\u0572\u0584\u0576\u0565\u0580\u056b\u0576 \u0561\u056f\u057f\u056b\u057e \u0562\u0561\u056a\u0576\u0578\u0582\u0574 (\u0578\u0580\u057f\u0565\u0572 \u0574\u0565\u057f\u0580\u056b\u056f\u0561\u0576\u0565\u0580 \u0565\u0576 \u0563\u0580\u0561\u0576\u0581\u057e\u0578\u0582\u0574), \u056f\u0561\u0574 \u0579\u056b \u056f\u0561\u0580\u0578\u0572 \u0567\u0576:<\/li>\n<li>\u0535\u0569\u0565 \u057f\u057e\u0575\u0561\u056c\u0576\u0565\u0580\u0568 \u0577\u0561\u057f \u0565\u0576, \u0561\u057a\u0561 \u0570\u0565\u0576\u0581 \u0561\u057c\u0561\u057b\u056b\u0576 \u0562\u0561\u056a\u056b\u0576\u0576\u0565\u0580\u0568, \u0578\u0580\u0578\u0576\u0584 \u056f\u0561\u0580\u0578\u0572 \u0565\u0576 \u0561\u0580\u0564\u0565\u0576 \u056c\u056b\u0576\u0565\u056c \u0574\u0565\u056e (\u0578\u0579 \u0585\u057a\u057f\u056b\u0574\u0561\u056c \u0562\u0561\u056a\u0576\u0561\u057e\u0578\u0580\u0574\u0561\u0576 \u0562\u0561\u0576\u0561\u056c\u056b \u0568\u0576\u057f\u0580\u0565\u056c\u0578\u0582 \u0564\u0565\u057a\u0584\u0578\u0582\u0574), \u0579\u0565\u0576 \u056f\u0561\u0580\u0578\u0572 \u0574\u056b\u0561\u057d\u056b\u0576 \u0563\u0580\u057e\u0565\u056c \u0576\u0578\u0580 \u0583\u0578\u0584\u0580 \u0562\u0561\u056a\u056b\u0576\u0576\u0565\u0580\u056b \u0570\u0565\u057f:<\/li>\n<\/ul>\n<p><\/p>\n<p>\u0535\u057e \u057e\u0565\u0580\u057b\u0578\u0582\u0574 \u0574\u056b\u0577\u057f \u0561\u057e\u0561\u0580\u057f\u057e\u0578\u0582\u0574 \u0567 \u0576\u0578\u0582\u0575\u0576 \u0571\u0587\u0568: \u0544\u0565\u057f\u0580\u056b\u056f\u0561\u0576\u0565\u0580\u056b \u0566\u0562\u0561\u0572\u0565\u0581\u0580\u0561\u056e \u057f\u0561\u0580\u0561\u056e\u0578\u0582\u0569\u0575\u0578\u0582\u0576\u0568 ClickHouse-\u0578\u0582\u0574 \u0574\u056b\u0561\u0575\u0576 \u0561\u0573\u0578\u0582\u0574 \u0567, \u0565\u0569\u0565:<\/p>\n<p><\/p>\n<ul>\n<li>\u0578\u0579 \u0585\u0563\u057f\u0561\u0563\u0578\u0580\u056e\u0565\u056c <code>OPTIMIZE ... FINAL<\/code> \u0574\u0565\u0576\u0561\u056f \u056f\u0561\u0574<\/li>\n<li>\u043d\u0435 \u0583\u0578\u056d\u0561\u0576\u0581\u0565\u056c \u057f\u057e\u0575\u0561\u056c\u0576\u0565\u0580\u0568 \u0562\u0578\u056c\u0578\u0580 \u0570\u0561\u057f \u062a\u0642\u0633\u06cc\u0645\u0578\u0582\u0574\u0576\u0565\u0580\u056b\u0576 \u0574\u0577\u057f\u0561\u057a\u0565\u057d, \u0578\u0580\u057a\u0565\u057d\u0566\u056b \u0577\u0578\u0582\u057f \u0569\u0565 \u0578\u0582\u0577 \u057f\u0565\u0572\u0561\u0564\u0580\u057e\u056b \u0586\u0578\u0576\u0568 \u0574\u056b\u0561\u0571\u0578\u0582\u056c\u0578\u0582\u0574\u0568<\/li>\n<\/ul>\n<p><\/p>\n<p>\u0535\u0580\u056f\u0580\u0578\u0580\u0564 \u0565\u0572\u0561\u0576\u0561\u056f\u0568 \u0569\u057e\u0578\u0582\u0574 \u0567 \u056b\u0580\u0561\u056f\u0561\u0576\u0561\u0581\u0574\u0561\u0576 \u0570\u0561\u0574\u0561\u0580 \u0561\u0574\u0565\u0576\u0561\u0570\u0565\u0577\u057f\u0568, \u0578\u0582\u057d\u057f\u056b \u0564\u0561 \u057d\u056d\u0561\u056c \u0567 \u0587 \u0561\u057c\u0561\u057b\u056b\u0576 \u0570\u0565\u0580\u0569\u056b\u0576 \u0583\u0578\u0580\u0571\u0561\u0580\u056f\u057e\u0565\u056c \u0567:<br \/>\n\u0535\u057d \u0563\u0580\u0565\u056c \u0565\u0574 \u0562\u0561\u057e\u0561\u056f\u0561\u0576\u056b\u0576 \u057a\u0561\u0580\u0566 \u057d\u0581\u0565\u0576\u0561\u0580 Python-\u0578\u057e, \u0578\u0580\u0568 \u0578\u0582\u0572\u0561\u0580\u056f\u0578\u0582\u0574 \u0567\u0580 \u056f\u0565\u0572\u056e \u0574\u0565\u057f\u0580\u056b\u056f\u0576\u0565\u0580 \u0561\u0574\u0565\u0576 \u0585\u0580 \u0561\u0576\u0581\u0575\u0561\u056c 4 \u057f\u0561\u0580\u056b\u0576\u0565\u0580\u056b \u0570\u0561\u0574\u0561\u0580 \u0587 \u0561\u0574\u0565\u0576 \u056a\u0561\u0574 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b\u0441\u044f \u043a\u0440\u043e\u043d\u043e\u043c:<br \/>\n\u053b\u0576\u0579\u057a\u0565\u057d \u056f\u0561 \u0561\u0574\u0562\u0578\u0572\u057b \u0561\u0577\u056d\u0561\u057f\u0561\u0576\u0584\u0568 ClickHouse DBMS-\u056b \u057e\u0580\u0561 \u0570\u056b\u0574\u0576\u057e\u0561\u056e \u0567 \u0561\u0575\u0576 \u0583\u0561\u057d\u057f\u056b \u057e\u0580\u0561, \u0578\u0580 \u0561\u0575\u057d \u0570\u0561\u0574\u0561\u056f\u0561\u0580\u0563\u0568 \u0577\u0578\u0582\u057f \u0569\u0565 \u0578\u0582\u0577 \u056f\u0561\u057f\u0561\u0580\u056b \u0561\u0574\u0562\u0578\u0572\u057b \u0586\u0578\u0576\u0561\u0575\u056b\u0576 \u0561\u0577\u056d\u0561\u057f\u0561\u0576\u0584\u0568, \u0562\u0561\u0575\u0581 \u0565\u0580\u0562, \u0561\u0575\u0564 \u057a\u0561\u057f\u0573\u0561\u057c\u0578\u057e \u0565\u057d \u0579\u056f\u0561\u0580\u0578\u0572\u0561\u0581\u0561 \u057d\u057a\u0561\u057d\u0565\u056c, \u0565\u0580\u0562 \u0570\u056b\u0576 \u0574\u0565\u056e \u056f\u057f\u0578\u0580\u0576\u0565\u0580\u0568 \u057d\u056f\u057d\u0565\u0576 \u0574\u056b\u0561\u0571\u0578\u0582\u056c\u057e\u0565\u056c \u0576\u0578\u0580 \u0583\u0578\u0584\u0580\u0565\u0580\u056b \u0570\u0565\u057f: \u0648\u0627\u0636\u062d \u0567, \u0578\u0580 \u0561\u0576\u0570\u0580\u0561\u056a\u0565\u0577\u057f \u0567 \u0578\u0580\u0578\u0576\u0565\u056c \u0561\u057e\u057f\u0578\u0574\u0561\u057f\u0561\u0581\u0574\u0561\u0576 \u0574\u056b\u057b\u0578\u0581\u0578\u057e \u057a\u0561\u0580\u057f\u0561\u0564\u0580\u0578\u0582\u0574 \u0563\u0578\u0580\u056e\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576\u0576\u0565\u0580\u056b:<\/p>\n<p>\n<img decoding=\"async\" alt=\"ClickHouse + Graphite: \u056b\u0576\u0579\u057a\u0565\u057d \u0567 \u0567\u0561\u057a\u0565\u057d \u0576\u057e\u0561\u0566\u0565\u0581\u057e\u0578\u0582\u0574 \u0564\u056b\u057d\u056f\u056b \u057f\u0561\u0580\u0561\u056e\u0584\u056b \u057d\u057a\u0561\u057c\u0578\u0582\u0574\u0568\" src=\"\/wp-content\/uploads\/2019\/12\/60b0354cb65dcba6e8402b67261041ff.png\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<h3 id=\"informaciya-v-sistemnyh-tablicah-clickhouse\">\u054f\u057e\u0575\u0561\u056c\u0576\u0565\u0580\u0568 ClickHouse-\u056b \u0570\u0561\u0574\u0561\u056f\u0561\u0580\u0563\u0561\u0575\u056b\u0576 \u0561\u0572\u0575\u0578\u0582\u057d\u0561\u056f\u0576\u0565\u0580\u0578\u0582\u0574<\/h3>\n<p><\/p>\n<p>\u0544\u056b \u056e\u0561\u057c\u0561\u0575\u0578\u0582\u0574 \u0565\u0576\u0584 \u0561\u0572\u0575\u0578\u0582\u057d\u0561\u056f\u056b \u056f\u0561\u057c\u0578\u0582\u0581\u057e\u0561\u056e\u0584\u056b\u0576 <noindex><a rel=\"nofollow\" href=\"https:\/\/clickhouse.yandex\/docs\/ru\/operations\/system_tables\/#system_tables-parts\">system.parts<\/a><\/noindex>. \u054d\u0561 \u0561\u0574\u0562\u0578\u0572\u057b\u0561\u056f\u0561\u0576 \u057f\u0565\u0572\u0565\u056f\u0561\u057f\u057e\u0578\u0582\u0569\u0575\u0578\u0582\u0576 \u0567 \u0575\u0578\u0582\u0580\u0561\u0584\u0561\u0576\u0579\u0575\u0578\u0582\u0580 \u056f\u057f\u0578\u0580\u056b \u0574\u0561\u057d\u056b\u0576, \u0562\u0578\u056c\u0578\u0580 \u0561\u0572\u0575\u0578\u0582\u057d\u0561\u056f\u0576\u0565\u0580\u056b \u0570\u0561\u0574\u0561\u0580 ClickHouse \u057d\u0565\u0580\u057e\u0565\u0580\u0578\u0582\u0574: \u0531\u0575\u0576 \u057a\u0561\u0580\u0578\u0582\u0576\u0561\u056f\u0578\u0582\u0574 \u0567, \u0561\u0575\u0564 \u0569\u057e\u0578\u0582\u0574, \u0570\u0565\u057f\u0587\u0575\u0561\u056c \u057d\u0575\u0578\u0582\u0576\u0565\u0580\u0568:<\/p>\n<p><\/p>\n<ul>\n<li>\u056b\u0574 \u0561\u0576\u0578\u0582\u0576\u0568 \u0411\u0414 (<code>database<\/code>);<\/li>\n<li>\u056b\u0574 \u0561\u0576\u0578\u0582\u0576\u0568 \u0561\u0572\u0575\u0578\u0582\u057d\u0561\u056f\u0578\u0582\u0574 (<code>\u057d\u0565\u0572\u0561\u0576<\/code>);<\/li>\n<li>\u0570\u0561\u057f\u057e\u0561\u056e\u056b \u0561\u0576\u0578\u0582\u0576\u0568 \u0587 ID (<code>partition<\/code> &amp; <code>partition_id<\/code>);<\/li>\n<li>\u0565\u0580\u0562 \u056f\u057f\u0578\u0580\u0568 \u057d\u057f\u0565\u0572\u056e\u057e\u0565\u056c \u0567 (<code>modification_time<\/code>);<\/li>\n<li>\u0581\u0561\u056e\u0580 \u0587 \u0562\u0561\u0580\u0571\u0580 \u0561\u0574\u057d\u0561\u0569\u056b\u057e\u0568 \u056f\u057f\u0578\u0580\u056b \u0574\u0565\u057b (\u0570\u0561\u057f\u057e\u0561\u056e\u0576\u0565\u0580\u0568 \u056b\u0580\u0561\u056f\u0561\u0576\u0561\u0581\u057e\u0578\u0582\u0574 \u0565\u0576 \u0568\u057d\u057f \u0585\u0580\u0565\u0580\u056b) (<code>min_date<\/code> &amp; <code>max_date<\/code>);<\/li>\n<\/ul>\n<p><\/p>\n<p>\u0531\u0580\u056a\u0565\u0584 \u0578\u0582\u0576\u056b \u0576\u0561\u0587 \u0561\u0572\u0575\u0578\u0582\u057d\u0561\u056f\u0568 <noindex><a rel=\"nofollow\" href=\"https:\/\/clickhouse.yandex\/docs\/ru\/operations\/system_tables\/#system-graphite-retentions\">system.graphite_retentions<\/a><\/noindex>, \u0570\u0565\u057f\u0587\u0575\u0561\u056c \u0570\u0565\u057f\u0561\u0584\u0580\u0584\u056b\u0580 \u0578\u056c\u0578\u0580\u057f\u0576\u0565\u0580\u0578\u057e:<\/p>\n<p><\/p>\n<ul>\n<li>\u056b\u0574 \u0561\u0576\u0578\u0582\u0576\u0568 \u0411\u0414 (<code>Tables.database<\/code>);<\/li>\n<li>\u056b\u0574 \u0561\u0576\u0578\u0582\u0576\u0568 \u0561\u0572\u0575\u0578\u0582\u057d\u0561\u056f\u0578\u0582\u0574 (<code>Tables.table<\/code>);<\/li>\n<li>\u0574\u0565\u057f\u0580\u056b\u056f\u056b \u057f\u0561\u0580\u056b\u0584\u0568, \u0565\u0580\u0562 \u057a\u0565\u057f\u0584 \u0567 \u056f\u056b\u0580\u0561\u057c\u057e\u056b \u0570\u0561\u057b\u0578\u0580\u0564 \u0561\u0563\u0580\u0565\u0563\u0561\u0581\u0578\u0582\u0574\u0568 (<code>age<\/code>);<\/li>\n<\/ul>\n<p><\/p>\n<p>\u0531\u0575\u057d\u056b\u0576\u0584\u0576:<\/p>\n<p><\/p>\n<ol>\n<li>\u0544\u0565\u0576\u0584 \u0578\u0582\u0576\u0565\u0576\u0584 \u056f\u057f\u0578\u0580\u0576\u0565\u0580\u056b \u0561\u0572\u0575\u0578\u0582\u057d\u0561\u056f \u0587 \u0561\u0563\u0580\u0565\u0563\u0561\u0581\u0574\u0561\u0576 \u056f\u0561\u0576\u0578\u0576\u0576\u0565\u0580\u056b \u0561\u0572\u0575\u0578\u0582\u057d\u0561\u056f:<\/li>\n<li>\u0544\u056b\u0561\u0576\u0578\u0582\u0574 \u0565\u0576\u0584 \u0576\u0580\u0561\u0576\u0581 \u0570\u0561\u057f\u0574\u0561\u0576 \u0587 \u057d\u057f\u0561\u0576\u0578\u0582\u0574 \u0565\u0576\u0584 \u0562\u0578\u056c\u0578\u0580 \u0561\u0572\u0575\u0578\u0582\u057d\u0561\u056f\u0576\u0565\u0580\u0568 *GraphiteMergeTree.<\/li>\n<li>\u0548\u0580\u0578\u0576\u0578\u0582\u0574 \u0565\u0576\u0584 \u0562\u0578\u056c\u0578\u0580 \u0570\u0561\u057f\u0561\u056f\u0561\u0580\u0563\u0565\u0580, \u0578\u0580\u057f\u0565\u0572:\n<ul>\n<li>\u0561\u057e\u0565\u056c\u056b \u0584\u0561\u0576 \u0574\u0565\u056f \u056f\u057f\u0578\u0580<\/li>\n<li>\u056f\u0561\u0574 \u0570\u0561\u057d\u0565\u056c \u0567 \u0570\u0561\u057b\u0578\u0580\u0564 \u0561\u0563\u0580\u0565\u0563\u0561\u0581\u0574\u0561\u0576 \u056f\u0561\u0576\u0578\u0576\u056b \u056f\u056b\u0580\u0561\u057c\u0565\u056c\u0578\u0582\u0576, \u0587 <code>modification_time<\/code> \u0570\u056b\u0576 \u0567 \u0561\u0575\u057d \u057a\u0561\u0570\u056b\u0576:<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><\/p>\n<h3 id=\"realizaciya\">\u053b\u0574\u0561\u0581\u0578\u0582\u0574<\/h3>\n<p>\n<b class=\"spoiler_title\">\u0531\u0575\u057d \u0570\u0561\u0580\u0581\u0578\u0582\u0574\u0576<\/b><\/p>\n<pre><code class=\"sql\">SELECT\n    concat(p.database, '.', p.table) AS table,\n    p.partition_id AS partition_id,\n    p.partition AS partition,\n    -- \u0531\u0574\u0565\u0576\u0561\u0565\u0580\u056b\u057f\u0561\u057d\u0561\u0580\u0564 \"\u056f\u0561\u0576\u0578\u0576\", \u0578\u0580\u0568 \u056f\u0561\u0580\u0578\u0572 \u0567 \u056f\u056b\u0580\u0561\u057c\u057e\u0565\u056c\n    -- \u0570\u0561\u057f\u0569\u0561\u0581\u056b \u0570\u0561\u0574\u0561\u0580, \u0562\u0561\u0575\u0581 \u0578\u0579 \u0561\u057a\u0561\u0563\u0561\u0575\u0578\u0582\u0574, \u0576\u0561\u0575\u0565\u0584 (*)\n    max(g.age) AS age,\n    -- \u0540\u0561\u057f\u0561\u0564\u0561\u0580\u0571\u0576\u0565\u0580\u0578\u0582\u0574 \u056f\u057f\u0578\u0580\u0576\u0565\u0580\u056b \u0584\u0561\u0576\u0561\u056f\u0568\n    countDistinct(p.name) AS parts,\n    -- \u0531\u057c\u0561\u057b\u056b\u0576 \u0561\u0574\u0565\u0576\u0561\u0565\u0580\u056b\u057f\u0561\u057d\u0561\u0580\u0564 \u0574\u057f\u0580\u056b\u056f\u0568 \u0570\u0561\u0577\u057e\u057e\u0578\u0582\u0574 \u0567 \u0585\u0580\u057e\u0561 00:00:00-\u0576\n    toDateTime(max(p.max_date + 1)) AS max_time,\n    -- \u0535\u0580\u0562 \u0570\u0561\u057f\u0561\u0569\u056b\u057e\u0568 \u057a\u0565\u057f\u0584 \u0567 \u0585\u057a\u057f\u056b\u0574\u056b\u0566\u0561\u0581\u057e\u056b\n    max_time + age AS rollup_time,\n    -- \u0535\u0580\u0562 \u0570\u0561\u057f\u057e\u0561\u056e\u056b \u0561\u0574\u0565\u0576\u0561\u0570\u056b\u0576 \u056f\u057f\u0578\u0580\u0568 \u0569\u0561\u0580\u0574\u0561\u0581\u057e\u0565\u056c \u0567\n    min(p.modification_time) AS modified_at\nFROM system.parts AS p\nINNER JOIN\n(\n    -- \u0531\u0574\u0565\u0576 \u057f\u0565\u057d\u0561\u056f \u056f\u0561\u0576\u0578\u0576\u0576\u0565\u0580 \u0562\u0578\u056c\u0578\u0580 \u0561\u0572\u0575\u0578\u0582\u057d\u0561\u056f\u0576\u0565\u0580\u056b \u0570\u0561\u0574\u0561\u0580 *GraphiteMergeTree\n    SELECT\n        Tables.database AS database,\n        Tables.table AS table,\n        age\n    FROM system.graphite_retentions\n    ARRAY JOIN Tables\n    GROUP BY\n        database,\n        table,\n        age\n) AS g ON\n    (p.table = g.table)\n    AND (p.database = g.database)\nWHERE\n    -- \u0544\u056b\u0561\u0575\u0576 \u0561\u056f\u057f\u056b\u057e \u056f\u057f\u0578\u0580\u0576\u0565\u0580\n    p.active\n    -- (*) \u0535\u057e \u0574\u056b\u0561\u0575\u0576 \u0561\u0575\u0564 \u0577\u0561\u0580\u0584\u0565\u0580\u0568, \u0578\u0580\u057f\u0565\u0572 \u0561\u0563\u0580\u0565\u0563\u0561\u0581\u0574\u0561\u0576 \u056f\u0561\u0576\u0578\u0576\u0576\u0565\u0580\u0568 \u0561\u0580\u0564\u0565\u0576 \u057a\u0565\u057f\u0584 \u0567 \u056f\u056b\u0580\u0561\u057c\u057e\u0565\u0576\n    AND ((toDateTime(p.max_date + 1) + g.age) &lt; now())\nGROUP BY\n    table,\n    partition\nHAVING\n    -- \u0544\u056b\u0561\u0575\u0576 \u0570\u0561\u057f\u056f\u0561\u0581\u0578\u0582\u0574\u0576\u0565\u0580\u0568, \u0578\u0580\u0578\u0576\u0584 \u0583\u0578\u0584\u0580 \u0565\u0576 \u0585\u057a\u057f\u056b\u0574\u0561\u0581\u0574\u0561\u0576 \u057a\u0561\u0570\u056b\u0576\n    (modified_at  1)\nORDER BY\n    table ASC,\n    partition ASC,\n    age ASC<\/code><\/pre>\n<p><\/p>\n<p>\u0531\u0576\u057e\u057f\u0561\u0576\u0563\u0578\u0582\u0569\u0575\u0578\u0582\u0576\u0568 \u057e\u0565\u0580\u0561\u0564\u0561\u0580\u0571\u0576\u0578\u0582\u0574 \u0567 \u0561\u0575\u0576 \u0562\u0578\u056c\u0578\u0580 *GraphiteMergeTree \u057f\u0561\u0580\u057e\u0578\u0572 \u0570\u0561\u057f\u057e\u0561\u056e\u0576\u0565\u0580\u0568, \u0578\u0580\u0578\u0576\u0581 \u0574\u056b\u0561\u057e\u0578\u0580\u0578\u0582\u0574 \u057a\u0565\u057f\u0584 \u0567 \u0570\u0561\u0576\u0563\u0565\u0581\u0576\u056b \u057d\u056f\u0561\u057e\u0561\u057c\u0561\u056f\u056b \u057f\u0565\u0572\u0561\u057f\u0565\u0572\u056b \u0561\u0566\u0561\u057f\u0578\u0572\u0589 \u0531\u0575\u056a\u0574 \u0574\u0576\u0578\u0582\u0574 \u0567 \u0574\u056b\u0561\u0575\u0576 \u057e\u0565\u0580\u0570\u057d\u056f\u0565\u056c \u0564\u0580\u0561\u0576\u0584 \u0562\u0578\u056c\u0578\u0580\u0578\u057e \u0574\u0565\u056f \u0570\u0561\u0580\u0581\u0574\u0561\u0574\u0562 <code>OPTIMIZE ... FINAL<\/code>. \u0533\u0576\u0561\u0570\u0561\u057f\u057e\u0561\u056e \u0562\u0561\u0572\u0561\u0564\u0580\u056b\u0579\u0568 \u056b\u0580\u0561\u0563\u0578\u0580\u056e\u0574\u0561\u0576 \u0561\u057e\u0561\u0580\u057f\u0561\u056f\u0561\u0576 \u057f\u0561\u0580\u0562\u0565\u0580\u0561\u056f\u0578\u0582\u0574 \u0576\u0578\u0582\u0575\u0576\u057a\u0565\u057d \u0570\u0561\u0577\u057e\u056b \u0567 \u0561\u057c\u0576\u057e\u0565\u056c \u0561\u0575\u0576, \u0578\u0580 \u0561\u056f\u057f\u056b\u057e \u0563\u0580\u0561\u057c\u0578\u0582\u0574 \u0578\u0582\u0576\u0565\u0581\u0578\u0572 \u0570\u0561\u057f\u057e\u0561\u056e\u0576\u0565\u0580\u0568 \u0570\u057a\u057e\u0565\u056c \u0579\u056b \u056f\u0561\u0580\u0565\u056c\u056b\u0589<\/p>\n<p><\/p>\n<p>\u054d\u0561 \u0570\u0565\u0576\u0581 \u0561\u0575\u0576 \u0567, \u056b\u0576\u0579 \u0561\u0576\u0578\u0582\u0574 \u0567 \u0576\u0561\u056d\u0561\u0563\u056b\u056e\u0568 <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/innogames\/graphite-ch-optimizer\">graphite-ch-optimizer<\/a><\/noindex>. \u0535\u0580\u0565\u056f\u057e\u0561 \u0563\u0578\u0580\u056e\u0568\u0576\u056f\u0565\u0580\u0576\u0565\u0580\u0568 Yandex.Market-\u0578\u0582\u0574 \u0583\u0578\u0580\u0571\u0561\u0580\u056f\u0565\u0581\u056b\u0576 \u0561\u0575\u0576 \u057a\u0580\u0578\u0564\u0578\u0582\u056f\u057f\u056b\u057e \u0574\u056b\u057b\u0561\u057e\u0561\u0575\u0580\u0578\u0582\u0574, \u0561\u0580\u0564\u0575\u0578\u0582\u0576\u0584\u0568 \u056f\u0561\u0580\u0565\u056c\u056b \u0567 \u057f\u0565\u057d\u0576\u0565\u056c \u057d\u057f\u0578\u0580\u0587\u0589 <\/p>\n<p><\/p>\n<p><img decoding=\"async\" alt=\"ClickHouse + Graphite: \u056b\u0576\u0579\u057a\u0565\u057d \u0567 \u0567\u0561\u057a\u0565\u057d \u0576\u057e\u0561\u0566\u0565\u0581\u057e\u0578\u0582\u0574 \u0564\u056b\u057d\u056f\u056b \u057f\u0561\u0580\u0561\u056e\u0584\u056b \u057d\u057a\u0561\u057c\u0578\u0582\u0574\u0568\" src=\"\/wp-content\/uploads\/2019\/12\/858dcbf538135d8d57964a71b2b6ca23.png\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p>\u0535\u0569\u0565 \u056e\u0580\u0561\u0563\u0580\u0561\u0575\u056b\u0576 \u0561\u057a\u0561\u0570\u0578\u057e\u0578\u0582\u0574\u0568 \u0563\u0578\u0580\u056e\u0561\u0580\u056f\u057e\u056b ClickHouse-\u056b \u0570\u0565\u057f \u057d\u0565\u0580\u057e\u0565\u0580\u0578\u0582\u0574, \u0561\u057a\u0561 \u0561\u0575\u0576 \u057a\u0561\u0580\u0566\u0561\u057a\u0565\u057d \u056f\u057d\u056f\u057d\u056b \u0561\u0577\u056d\u0561\u057f\u0565\u056c \u0564\u0565\u056f\u0561\u0576\u0561\u0575\u056b\u0576 \u057c\u0565\u056a\u056b\u0574\u0578\u0582\u0574\u0589 \u0544\u0565\u056f \u056a\u0561\u0574\u0578\u0582\u0574 \u0574\u056b \u0570\u0561\u0580\u0581\u0578\u0582\u0574 \u056f\u056f\u0561\u057f\u0561\u0580\u057e\u056b, \u057d\u057f\u0578\u0582\u0563\u0565\u056c\u0578\u057e, \u0569\u0565 \u0561\u0580\u0564\u0575\u0578\u0584 \u0565\u0580\u0565\u0584 \u0585\u0580\u056b\u0581 \u0574\u0565\u056e \u0576\u0578\u0580 \u0570\u0561\u057f\u057e\u0561\u056e\u0576\u0565\u0580 \u0579\u0565\u0576 \u0570\u0561\u0575\u057f\u0576\u057e\u0565\u056c, \u0578\u0580\u0578\u0576\u0584 \u056f\u0561\u0580\u0565\u056c\u056b \u0567 \u0562\u0561\u0580\u0565\u056c\u0561\u057e\u0565\u056c\u0589<\/p>\n<p><\/p>\n<p>\u0531\u057c\u0561\u057b\u056b\u056f\u0561 \u056e\u0580\u0561\u0563\u0580\u0565\u0580\u0568\u055d \u0561\u057a\u0561\u0570\u0578\u057e\u0565\u056c, \u0561\u0574\u0565\u0576\u0561\u0584\u056b\u0579\u0568, deb \u0583\u0561\u0569\u0565\u0569\u0576\u0565\u0580\u0578\u057e, \u056b\u057d\u056f \u0570\u0576\u0561\u0580\u0561\u057e\u0578\u0580\u0578\u0582\u0569\u0575\u0561\u0576 \u0564\u0565\u057a\u0584\u0578\u0582\u0574\u055d \u0576\u0561\u0587 rpm-\u0576\u0565\u0580\u0568\u0589<\/p>\n<p><\/p>\n<h3 id=\"vmesto-zaklyucheniya\">\u054e\u0565\u0580\u057b\u0578\u0582\u0574<\/h3>\n<p><\/p>\n<p>\u0531\u057e\u0565\u056c\u056b \u0584\u0561\u0576 9 \u0561\u0574\u056b\u057d \u0561\u057c\u0561\u057b \u0565\u057d \u056b\u0574 \u0568\u0576\u056f\u0565\u0580\u0578\u0582\u0569\u0575\u0578\u0582\u0576\u0578\u0582\u0574 <noindex><a rel=\"nofollow\" href=\"https:\/\/www.innogames.com\/ru\/\">InnoGames<\/a><\/noindex> \u057e\u057f\u0561\u0576\u0563\u0565\u056c \u0565\u0574 \u0577\u0561\u057f \u056a\u0561\u0574\u0561\u0576\u0561\u056f, \u0563\u0578\u0580\u056e\u0578\u0572 \u056f\u0561\u0566\u0574\u0561\u056f\u0565\u0580\u057a\u0578\u0582\u0569\u0575\u0578\u0582\u0576\u0576\u0565\u0580\u056b \u0587 graphite-web \u0574\u056b\u057b\u0561\u057e\u0561\u0575\u0580\u056b \u056d\u0561\u0579\u0574\u0565\u0580\u0581\u0578\u0582\u0574\u0578\u057e\u0589 \u054d\u0561 \u0570\u056b\u0577\u057e\u0578\u0572 \u0583\u0578\u0580\u0571 \u0567\u0580, \u0578\u0580\u056b \u0561\u0580\u0564\u0575\u0578\u0582\u0576\u0584\u0578\u0582\u0574 \u0570\u0576\u0561\u0580\u0561\u057e\u0578\u0580 \u0564\u0561\u0580\u0571\u0561\u057e \u0561\u0580\u0561\u0563 \u0563\u0578\u0580\u056e\u0561\u0564\u0580\u0565\u056c whisper-\u056b\u0581 ClickHouse-\u0568 \u0578\u0580\u057a\u0565\u057d \u0574\u0565\u057f\u0580\u056b\u056f\u0561\u0575\u056b \u057a\u0561\u0570\u0565\u057d\u057f\u0561\u0580\u0561\u0576\u0589 Espero \u0578\u0580 \u0561\u0575\u057d \u0570\u0578\u0564\u057e\u0561\u056e\u0568\u055d \u0574\u056b \u057f\u0565\u057d\u0561\u056f\u056b \u0585\u056a\u0561\u0576\u0564\u0561\u056f\u0578\u0582\u0569\u0575\u0578\u0582\u0576 \u0567, \u0569\u0565 \u056b\u0576\u0579 \u0562\u0561\u0580\u0565\u056c\u0561\u057e\u0578\u0582\u0574\u0576\u0565\u0580 \u0574\u0565\u0576\u0584 \u057f\u0561\u0580\u0565\u056c \u0565\u0576\u0584 \u0561\u0575\u057d \u0570\u0561\u057f\u057e\u0561\u056e\u056b \u057f\u0561\u0580\u0562\u0565\u0580 \u0574\u0561\u057d\u0565\u0580\u0578\u0582\u0574, \u0587 \u056b\u0576\u0579 \u0561\u0576\u0565\u056c\u0578\u0582 \u0565\u0576\u0584 \u0561\u057a\u0561\u0563\u0561\u0575\u0578\u0582\u0574\u0589<\/p>\n<p><\/p>\n<p>\u0540\u0561\u0580\u0581\u056b \u0574\u0577\u0561\u056f\u0574\u0561\u0576\u0568 \u0574\u056b \u0584\u0561\u0576\u056b \u056c\u056b\u057f\u0580 \u0563\u0561\u0580\u0565\u057b\u0578\u0582\u0580 \u0587 \u056f\u0561\u057c\u0561\u057e\u0561\u0580\u0574\u0561\u0576 \u0585\u0580\u0565\u0580 \u0565\u0576 \u056e\u0561\u056d\u057d\u057e\u0565\u056c \u0574\u056b\u0561\u057d\u056b\u0576 \u0570\u0565\u057f <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/users\/v0devil\/\" class=\"user_link\">v0devil<\/a><\/noindex>, \u0578\u0580\u056b \u0570\u0561\u0574\u0561\u0580 \u0578\u0582\u0566\u0578\u0582\u0574 \u0565\u0574 \u0570\u0561\u0575\u057f\u0576\u0565\u056c \u0576\u0580\u0561 \u0577\u0576\u0578\u0580\u0570\u0561\u056f\u0561\u056c\u0578\u0582\u0569\u0575\u0578\u0582\u0576\u0568\u0589 \u0531\u0575\u0564\u057a\u056b\u057d\u0578\u057e, \u0576\u0578\u0582\u0575\u0576\u057a\u0565\u057d \u056b\u0580 \u0563\u0576\u0561\u0570\u0561\u057f\u0574\u0561\u0576 \u0570\u0561\u0574\u0561\u0580 \u0561\u0575\u057d \u0570\u0578\u0564\u057e\u0561\u056e\u056b\u0589<\/p>\n<p><\/p>\n<p><noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/innogames\/graphite-ch-optimizer\">\u0533\u0578\u0580\u056e\u0578\u0582\u0576\u0565\u0578\u0582\u0569\u0575\u0561\u0576 \u0567\u057b\u0568 github-\u0578\u0582\u0574<\/a><\/noindex><\/p>\n<p>\u0538\u0576\u057f\u0561\u0576\u056b\u0584: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/479564\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e, habr. \u0415\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0438\u0440\u0443\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 graphite-web \u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 whisper (IO, \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u043c\u043e\u0435 \u0434\u0438\u0441\u043a\u043e\u0432\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e), \u0442\u043e \u0448\u0430\u043d\u0441 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0431\u044b\u043b \u0431\u0440\u043e\u0448\u0435\u043d \u0432\u0437\u0433\u043b\u044f\u0434 \u043d\u0430 ClickHouse \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u0430\u043c\u0435\u043d\u044b, \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0442\u0440\u0435\u043c\u0438\u0442\u044c\u0441\u044f \u043a \u0435\u0434\u0438\u043d\u0438\u0446\u0435. \u0414\u0430\u043d\u043d\u043e\u0435 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442 \u0442\u043e, \u0447\u0442\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0435\u0433\u043e \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0434\u0435\u043c\u043e\u043d\u0430 \u0443\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u044f\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 carbonwriter \u0438\u043b\u0438 go-carbon. ClickHouse \u0445\u043e\u0440\u043e\u0448\u043e \u0440\u0435\u0448\u0430\u0435\u0442 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-53944","post","type-post","status-publish","format-standard","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\".\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/hy\/blog\/administrirovanie\/clickhouse-graphite-kak-znachitelno-umenshit-potreblyaemoe-mesto-na-diskah\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47ClickHouse + Graphite: \u043a\u0430\u043a \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u043c\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u043d\u0430 \u0434\u0438\u0441\u043a\u0430\u0445 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\".\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/hy\/blog\/administrirovanie\/clickhouse-graphite-kak-znachitelno-umenshit-potreblyaemoe-mesto-na-diskah\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-12-12T21:00:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-02-18T11:01:53+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47ClickHouse + Graphite: \u056b\u0576\u0579\u057a\u0565\u057d \u0566\u0563\u0561\u056c\u056b\u0578\u0580\u0565\u0576 \u0576\u057e\u0561\u0566\u0565\u0581\u0576\u0565\u056c \u057d\u056f\u0561\u057e\u0561\u057c\u0561\u056f\u056b \u0585\u0563\u057f\u0561\u0563\u0578\u0580\u056e\u0578\u0582\u0574\u0568 | ProHoster","description":".","canonical_url":"https:\/\/prohoster.info\/hy\/blog\/administrirovanie\/clickhouse-graphite-kak-znachitelno-umenshit-potreblyaemoe-mesto-na-diskah","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"en_US","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47ClickHouse + Graphite: \u043a\u0430\u043a \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u043c\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u043d\u0430 \u0434\u0438\u0441\u043a\u0430\u0445 | ProHoster","og:description":".","og:url":"https:\/\/prohoster.info\/hy\/blog\/administrirovanie\/clickhouse-graphite-kak-znachitelno-umenshit-potreblyaemoe-mesto-na-diskah","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-12-12T21:00:00+00:00","article:modified_time":"2020-02-18T11:01:53+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"53944","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-24 09:26:21","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 20:15:54","updated":"2026-01-24 09:26:21","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/hy\/wp-json\/wp\/v2\/posts\/53944","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/hy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/hy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hy\/wp-json\/wp\/v2\/comments?post=53944"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/hy\/wp-json\/wp\/v2\/posts\/53944\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/hy\/wp-json\/wp\/v2\/media?parent=53944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/hy\/wp-json\/wp\/v2\/categories?post=53944"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/hy\/wp-json\/wp\/v2\/tags?post=53944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}