Created
December 29, 2015 19:10
-
-
Save jippi/18cc22360a280296f6c2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| CREATE KEYSPACE metric WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '3'} AND durable_writes = true; | |
| CREATE TABLE metric.metric ( | |
| tenant text, | |
| period int, | |
| rollup int, | |
| path text, | |
| time bigint, | |
| data list<double>, | |
| PRIMARY KEY ((tenant, period, rollup, path), time) | |
| ) WITH CLUSTERING ORDER BY (time ASC) | |
| AND bloom_filter_fp_chance = 0.01 | |
| AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}' | |
| AND comment = '' | |
| AND compaction = {'min_threshold': '4', 'max_sstable_age_days': '15', 'base_time_seconds': '3600', 'class': 'org.apache.cassandra.db.compaction.DateTieredCompactionStrategy'} | |
| AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'} | |
| AND dclocal_read_repair_chance = 0.0 | |
| AND default_time_to_live = 0 | |
| AND gc_grace_seconds = 864000 | |
| AND max_index_interval = 2048 | |
| AND memtable_flush_period_in_ms = 0 | |
| AND min_index_interval = 128 | |
| AND read_repair_chance = 0.1 | |
| AND speculative_retry = 'NONE'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment