Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update clickhouse, carbon-clickhouse, graphite-clickhouse. use new in…
…dex table and auto rollup
- Loading branch information
Showing
5 changed files
with
25 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,28 @@ | ||
CREATE TABLE IF NOT EXISTS default.graphite_reverse ( | ||
CREATE TABLE IF NOT EXISTS default.graphite_reverse ( | ||
Path String, | ||
Value Float64, | ||
Time UInt32, | ||
Date Date, | ||
Timestamp UInt32 | ||
) ENGINE = GraphiteMergeTree(Date, (Path, Time), 8192, 'graphite_rollup'); | ||
) ENGINE = GraphiteMergeTree('graphite_rollup') | ||
PARTITION BY toYYYYMM(Date) | ||
ORDER BY (Path, Time); | ||
|
||
CREATE TABLE IF NOT EXISTS default.graphite_tree ( | ||
CREATE TABLE IF NOT EXISTS default.graphite_index ( | ||
Date Date, | ||
Level UInt32, | ||
Path String, | ||
Deleted UInt8, | ||
Version UInt32 | ||
) ENGINE = ReplacingMergeTree(Date, (Level, Path), 1024, Version); | ||
|
||
CREATE TABLE IF NOT EXISTS default.graphite_series_reverse ( | ||
Date Date, | ||
Level UInt32, | ||
Path String, | ||
Deleted UInt8, | ||
Version UInt32 | ||
) ENGINE = ReplacingMergeTree(Date, (Level, Path, Date), 1024, Version); | ||
) ENGINE = ReplacingMergeTree(Version) | ||
PARTITION BY toYYYYMM(Date) | ||
ORDER BY (Level, Path, Date); | ||
|
||
CREATE TABLE IF NOT EXISTS default.graphite_tagged ( | ||
Date Date, | ||
Tag1 String, | ||
Path String, | ||
Tags Array(String), | ||
Version UInt32, | ||
Deleted UInt8 | ||
) ENGINE = ReplacingMergeTree(Date, (Tag1, Path, Date), 1024, Version); | ||
Version UInt32 | ||
) ENGINE = ReplacingMergeTree(Version) | ||
PARTITION BY toYYYYMM(Date) | ||
ORDER BY (Tag1, Path, Date); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,4 @@ | |
</retention> | ||
</default> | ||
</graphite_rollup> | ||
</yandex> | ||
</yandex> |