Docker 验证证据
🚀 运行/交互
CREATE KEYSPACE/TABLE → INSERT → SELECT → DESCRIBE TABLES → tracingdocker-session.out.txt
$ cqlsh -e "DESCRIBE CLUSTER"
Cluster:
Partitioner: org.apache.cassandra.dht.Murmur3Partitioner
Snitch: SimpleSnitch
$ cqlsh -e fixed-session.cql
Warnings :
SimpleStrategy replication class is not recommended, but was used for keyspace hello. You may suppress this warning by delisting SimpleStrategy from replication_strategy_warn_list configuration option, or make it into an error by listing this replication strategy on replication_strategy_fail_list.
Using Replication Factor replication_factor=1 lower than the minimum_replication_factor_warn_threshold=3 is not recommended.
id | name | score
----+-------+-------
1 | Alice | 30
2 | Bob | 20
3 | Carol | 40
(3 rows)
CREATE TABLE hello.items (
id int PRIMARY KEY,
name text,
score int
) WITH bloom_filter_fp_chance = 0.01
AND caching = {'keys': 'ALL', 'rows_per_partition': 'ALL'}
AND comment = ''
AND compaction = {'class': 'IncrementalCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND crc_check_chance = 1.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 speculative_retry = '99.0PERCENTILE';