Reputation: 4158
I would like to increase the tombstone_failure_threshold
value in cassandra.yaml
file, By default the value is 100K
I am not sure about the value to set.
I have gone through some documentations, I saw like decreasing default gc_grace_seconds
is 864000
(10 days). If your TTL
data is set to 6 days
then you might want to change gc_grace_seconds
to 604800 (7 days)
to remove tombstones sooner. But I am not setting TTL
for my data. If I decrease gc_grace_seconds
value, will it effect the tombstone_failure_threshold
or better to change the tombstone_failure_threshold
value in cassandra.yaml
file?
`CREATE TABLE test.topics (
topic_name text PRIMARY KEY,
latest_time_stamp double
) WITH bloom_filter_fp_chance = 0.01
AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND crc_check_chance = 1.0
AND dclocal_read_repair_chance = 0.1
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.0
AND speculative_retry = '99PERCENTILE';
Upvotes: 2
Views: 2481
Reputation: 2982
These values should only be changed upwards if you are really confident about the memory use patterns in your cluster.
Upvotes: 5