text stringlengths 0 59.1k |
|---|
# Maximum size of the key cache in memory. |
# |
# Each key cache hit saves 1 seek and each row cache hit saves 2 seeks at the |
# minimum, sometimes more. The key cache is fairly tiny for the amount of |
# time it saves, so it's worthwhile to use it at large numbers. |
# The row cache saves even more time, but must contain the entire row, |
# so it is extremely space-intensive. It's best to only use the |
# row cache if you have hot rows or static rows. |
# |
# NOTE: if you reduce the size, you may not get you hottest keys loaded on startup. |
# |
# Default value is empty to make it "auto" (min(5% of Heap (in MB), 100MB)). Set to 0 to disable key cache. |
key_cache_size_in_mb: |
# Duration in seconds after which Cassandra should |
# save the key cache. Caches are saved to saved_caches_directory as |
# specified in this configuration file. |
# |
# Saved caches greatly improve cold-start speeds, and is relatively cheap in |
# terms of I/O for the key cache. Row cache saving is much more expensive and |
# has limited use. |
# |
# Default is 14400 or 4 hours. |
key_cache_save_period: 14400 |
# Number of keys from the key cache to save |
# Disabled by default, meaning all keys are going to be saved |
# key_cache_keys_to_save: 100 |
# Row cache implementation class name. |
# Available implementations: |
# org.apache.cassandra.cache.OHCProvider Fully off-heap row cache implementation (default). |
# org.apache.cassandra.cache.SerializingCacheProvider This is the row cache implementation availabile |
# in previous releases of Cassandra. |
# row_cache_class_name: org.apache.cassandra.cache.OHCProvider |
# Maximum size of the row cache in memory. |
# Please note that OHC cache implementation requires some additional off-heap memory to manage |
# the map structures and some in-flight memory during operations before/after cache entries can be |
# accounted against the cache capacity. This overhead is usually small compared to the whole capacity. |
# Do not specify more memory that the system can afford in the worst usual situation and leave some |
# headroom for OS block level cache. Do never allow your system to swap. |
# |
# Default value is 0, to disable row caching. |
row_cache_size_in_mb: 0 |
# Duration in seconds after which Cassandra should save the row cache. |
# Caches are saved to saved_caches_directory as specified in this configuration file. |
# |
# Saved caches greatly improve cold-start speeds, and is relatively cheap in |
# terms of I/O for the key cache. Row cache saving is much more expensive and |
# has limited use. |
# |
# Default is 0 to disable saving the row cache. |
row_cache_save_period: 0 |
# Number of keys from the row cache to save. |
# Specify 0 (which is the default), meaning all keys are going to be saved |
# row_cache_keys_to_save: 100 |
# Maximum size of the counter cache in memory. |
# |
# Counter cache helps to reduce counter locks' contention for hot counter cells. |
# In case of RF = 1 a counter cache hit will cause Cassandra to skip the read before |
# write entirely. With RF > 1 a counter cache hit will still help to reduce the duration |
# of the lock hold, helping with hot counter cell updates, but will not allow skipping |
# the read entirely. Only the local (clock, count) tuple of a counter cell is kept |
# in memory, not the whole counter, so it's relatively cheap. |
# |
# NOTE: if you reduce the size, you may not get you hottest keys loaded on startup. |
# |
# Default value is empty to make it "auto" (min(2.5% of Heap (in MB), 50MB)). Set to 0 to disable counter cache. |
# NOTE: if you perform counter deletes and rely on low gcgs, you should disable the counter cache. |
counter_cache_size_in_mb: |
# Duration in seconds after which Cassandra should |
# save the counter cache (keys only). Caches are saved to saved_caches_directory as |
# specified in this configuration file. |
# |
# Default is 7200 or 2 hours. |
counter_cache_save_period: 7200 |
# Number of keys from the counter cache to save |
# Disabled by default, meaning all keys are going to be saved |
# counter_cache_keys_to_save: 100 |
# saved caches |
# If not set, the default directory is $CASSANDRA_HOME/data/saved_caches. |
saved_caches_directory: /cassandra_data/saved_caches |
# commitlog_sync may be either "periodic" or "batch." |
# |
# When in batch mode, Cassandra won't ack writes until the commit log |
# has been fsynced to disk. It will wait |
# commitlog_sync_batch_window_in_ms milliseconds between fsyncs. |
# This window should be kept short because the writer threads will |
# be unable to do extra work while waiting. (You may need to increase |
# concurrent_writes for the same reason.) |
# |
# commitlog_sync: batch |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.