Tune cassandra configuration to reduce resources consumption
@@ -22,7 +22,7 @@ cluster_name: 'Test Cluster'
#initial_token:
# See http://wiki.apache.org/cassandra/HintedHandoff
-hinted_handoff_enabled: true
+hinted_handoff_enabled: false
# this defines the maximum amount of time a dead host will have hints
# generated. After it has been dead this long, new hints for it will not be
# created until it has been seen alive and gone down again.
@@ -121,7 +121,7 @@ disk_failure_policy: stop
# 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:
+key_cache_size_in_mb: 1
# Duration in seconds after which Cassandra should
# safe the keys cache. Caches are saved to saved_caches_directory as
@@ -132,7 +132,7 @@ key_cache_size_in_mb:
# has limited use.
#
# Default is 14400 or 4 hours.
-key_cache_save_period: 14400
+key_cache_save_period: 0
# Number of keys from the key cache to save
# Disabled by default, meaning all keys are going to be saved
@@ -186,7 +186,7 @@ commitlog_sync_period_in_ms: 10000
# archiving commitlog segments (see commitlog_archiving.properties),
# then you probably want a finer granularity of archiving; 8 or 16 MB
# is reasonable.
-commitlog_segment_size_in_mb: 32
+commitlog_segment_size_in_mb: 1
# any class that implements the SeedProvider interface and has a
# constructor that takes a Map<String, String> of parameters will do.
@@ -211,8 +211,8 @@ seed_provider:
# On the other hand, since writes are almost never IO bound, the ideal
# number of "concurrent_writes" is dependent on the number of cores in
# your system; (8 * number_of_cores) is a good rule of thumb.
-concurrent_reads: 32
-concurrent_writes: 32
+concurrent_reads: 2
+concurrent_writes: 2
# Total memory to use for memtables. Cassandra will flush the largest
# memtable when this much memory is used.
@@ -223,7 +223,7 @@ concurrent_writes: 32
# If space gets above this value (it will round up to the next nearest
# segment multiple), Cassandra will flush every dirty CF in the oldest
# segment and remove it.
-# commitlog_total_space_in_mb: 4096
+commitlog_total_space_in_mb: 1
# This sets the amount of memtable flush writer threads. These will
# be blocked by disk io, and each one will hold a memtable in memory
@@ -264,7 +264,7 @@ start_native_transport: true
native_transport_port: 9142
# Whether to start the thrift rpc server.
-start_rpc: true
+start_rpc: false
# Address to broadcast to other Cassandra nodes
# Leaving this blank will set it to the same value as listen_address
@@ -370,7 +370,7 @@ column_index_size_in_kb: 64
#
# concurrent_compactors defaults to the number of cores.
# Uncomment to make compaction mono-threaded, the pre-0.8 default.
-#concurrent_compactors: 1
+concurrent_compactors: 1
# Throttles compaction to the given total throughput across the entire
# system. The faster you insert data, the faster you need to compact in
