Changeset View
Changeset View
Standalone View
Standalone View
docker/conf/cassandra.yaml
Show All 14 Lines | |||||
# of tokens assuming they have equal hardware capability. | # of tokens assuming they have equal hardware capability. | ||||
# | # | ||||
# If you leave this unspecified, Cassandra will use the default of 1 token for legacy compatibility, | # If you leave this unspecified, Cassandra will use the default of 1 token for legacy compatibility, | ||||
# and will use the initial_token as described below. | # and will use the initial_token as described below. | ||||
# | # | ||||
# Specifying initial_token will override this setting on the node's initial start, | # Specifying initial_token will override this setting on the node's initial start, | ||||
# on subsequent starts, this setting will apply even if initial token is set. | # on subsequent starts, this setting will apply even if initial token is set. | ||||
# | # | ||||
# If you already have a cluster with 1 token per node, and wish to migrate to | # If you already have a cluster with 1 token per node, and wish to migrate to | ||||
# multiple tokens per node, see http://wiki.apache.org/cassandra/Operations | # multiple tokens per node, see http://wiki.apache.org/cassandra/Operations | ||||
num_tokens: 256 | num_tokens: 256 | ||||
# Triggers automatic allocation of num_tokens tokens for this node. The allocation | # Triggers automatic allocation of num_tokens tokens for this node. The allocation | ||||
# algorithm attempts to choose tokens in a way that optimizes replicated load over | # algorithm attempts to choose tokens in a way that optimizes replicated load over | ||||
# the nodes in the datacenter for the replication strategy used by the specified | # the nodes in the datacenter for the replication strategy used by the specified | ||||
# keyspace. | # keyspace. | ||||
# | # | ||||
# The load assigned to each node will be close to proportional to its number of | # The load assigned to each node will be close to proportional to its number of | ||||
# vnodes. | # vnodes. | ||||
# | # | ||||
# Only supported with the Murmur3Partitioner. | # Only supported with the Murmur3Partitioner. | ||||
# allocate_tokens_for_keyspace: KEYSPACE | # allocate_tokens_for_keyspace: KEYSPACE | ||||
# initial_token allows you to specify tokens manually. While you can use it with | # initial_token allows you to specify tokens manually. While you can use it with | ||||
# vnodes (num_tokens > 1, above) -- in which case you should provide a | # vnodes (num_tokens > 1, above) -- in which case you should provide a | ||||
# comma-separated list -- it's primarily used when adding nodes to legacy clusters | # comma-separated list -- it's primarily used when adding nodes to legacy clusters | ||||
# that do not have vnodes enabled. | # that do not have vnodes enabled. | ||||
# initial_token: | # initial_token: | ||||
# See http://wiki.apache.org/cassandra/HintedHandoff | # See http://wiki.apache.org/cassandra/HintedHandoff | ||||
# May either be "true" or "false" to enable globally | # May either be "true" or "false" to enable globally | ||||
hinted_handoff_enabled: true | hinted_handoff_enabled: true | ||||
# When hinted_handoff_enabled is true, a black list of data centers that will not | # When hinted_handoff_enabled is true, a black list of data centers that will not | ||||
▲ Show 20 Lines • Show All 197 Lines • ▼ Show 20 Lines | |||||
# ignore | # ignore | ||||
# ignore fatal errors and let the batches fail | # ignore fatal errors and let the batches fail | ||||
commit_failure_policy: stop | commit_failure_policy: stop | ||||
# Maximum size of the native protocol prepared statement cache | # Maximum size of the native protocol prepared statement cache | ||||
# | # | ||||
# Valid values are either "auto" (omitting the value) or a value greater 0. | # Valid values are either "auto" (omitting the value) or a value greater 0. | ||||
# | # | ||||
# Note that specifying a too large value will result in long running GCs and possbily | # Note that specifying a too large value will result in long running GCs and possibly | ||||
# out-of-memory errors. Keep the value at a small fraction of the heap. | # out-of-memory errors. Keep the value at a small fraction of the heap. | ||||
# | # | ||||
# If you constantly see "prepared statements discarded in the last minute because | # If you constantly see "prepared statements discarded in the last minute because | ||||
# cache limit reached" messages, the first step is to investigate the root cause | # cache limit reached" messages, the first step is to investigate the root cause | ||||
# of these messages and check whether prepared statements are used correctly - | # of these messages and check whether prepared statements are used correctly - | ||||
# i.e. use bind markers for variable parts. | # i.e. use bind markers for variable parts. | ||||
# | # | ||||
# Do only change the default value, if you really have more prepared statements than | # Do only change the default value, if you really have more prepared statements than | ||||
# fit in the cache. In most cases it is not neccessary to change this value. | # fit in the cache. In most cases it is not necessary to change this value. | ||||
# Constantly re-preparing statements is a performance penalty. | # Constantly re-preparing statements is a performance penalty. | ||||
# | # | ||||
# Default value ("auto") is 1/256th of the heap or 10MB, whichever is greater | # Default value ("auto") is 1/256th of the heap or 10MB, whichever is greater | ||||
prepared_statements_cache_size_mb: | prepared_statements_cache_size_mb: | ||||
# Maximum size of the Thrift prepared statement cache | # Maximum size of the Thrift prepared statement cache | ||||
# | # | ||||
# If you do not use Thrift at all, it is safe to leave this value at "auto". | # If you do not use Thrift at all, it is safe to leave this value at "auto". | ||||
▲ Show 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
# Disabled by default, meaning all keys are going to be saved | # Disabled by default, meaning all keys are going to be saved | ||||
# counter_cache_keys_to_save: 100 | # counter_cache_keys_to_save: 100 | ||||
# saved caches | # saved caches | ||||
# If not set, the default directory is $CASSANDRA_HOME/data/saved_caches. | # If not set, the default directory is $CASSANDRA_HOME/data/saved_caches. | ||||
saved_caches_directory: /var/lib/cassandra/saved_caches | saved_caches_directory: /var/lib/cassandra/saved_caches | ||||
# commitlog_sync may be either "periodic" or "batch." | # commitlog_sync may be either "periodic" or "batch." | ||||
# | # | ||||
# When in batch mode, Cassandra won't ack writes until the commit log | # When in batch mode, Cassandra won't ack writes until the commit log | ||||
# has been fsynced to disk. It will wait | # has been fsynced to disk. It will wait | ||||
# commitlog_sync_batch_window_in_ms milliseconds between fsyncs. | # commitlog_sync_batch_window_in_ms milliseconds between fsyncs. | ||||
# This window should be kept short because the writer threads will | # This window should be kept short because the writer threads will | ||||
# be unable to do extra work while waiting. (You may need to increase | # be unable to do extra work while waiting. (You may need to increase | ||||
# concurrent_writes for the same reason.) | # concurrent_writes for the same reason.) | ||||
# | # | ||||
# commitlog_sync: batch | # commitlog_sync: batch | ||||
Show All 32 Lines | |||||
# commitlog_compression: | # commitlog_compression: | ||||
# - class_name: LZ4Compressor | # - class_name: LZ4Compressor | ||||
# parameters: | # parameters: | ||||
# - | # - | ||||
# any class that implements the SeedProvider interface and has a | # any class that implements the SeedProvider interface and has a | ||||
# constructor that takes a Map<String, String> of parameters will do. | # constructor that takes a Map<String, String> of parameters will do. | ||||
seed_provider: | seed_provider: | ||||
# Addresses of hosts that are deemed contact points. | # Addresses of hosts that are deemed contact points. | ||||
# Cassandra nodes use this list of hosts to find each other and learn | # Cassandra nodes use this list of hosts to find each other and learn | ||||
# the topology of the ring. You must change this if you are running | # the topology of the ring. You must change this if you are running | ||||
# multiple nodes! | # multiple nodes! | ||||
- class_name: org.apache.cassandra.locator.SimpleSeedProvider | - class_name: org.apache.cassandra.locator.SimpleSeedProvider | ||||
parameters: | parameters: | ||||
# seeds is actually a comma-delimited list of addresses. | # seeds is actually a comma-delimited list of addresses. | ||||
# Ex: "<ip1>,<ip2>,<ip3>" | # Ex: "<ip1>,<ip2>,<ip3>" | ||||
- seeds: <will be replaced by docker-entrypoint.sh> | - seeds: <will be replaced by docker-entrypoint.sh> | ||||
▲ Show 20 Lines • Show All 337 Lines • ▼ Show 20 Lines | |||||
# Whether or not to take a snapshot before each compaction. Be | # Whether or not to take a snapshot before each compaction. Be | ||||
# careful using this option, since Cassandra won't clean up the | # careful using this option, since Cassandra won't clean up the | ||||
# snapshots for you. Mostly useful if you're paranoid when there | # snapshots for you. Mostly useful if you're paranoid when there | ||||
# is a data format change. | # is a data format change. | ||||
snapshot_before_compaction: false | snapshot_before_compaction: false | ||||
# Whether or not a snapshot is taken of the data before keyspace truncation | # Whether or not a snapshot is taken of the data before keyspace truncation | ||||
# or dropping of column families. The STRONGLY advised default of true | # or dropping of column families. The STRONGLY advised default of true | ||||
# should be used to provide data safety. If you set this flag to false, you will | # should be used to provide data safety. If you set this flag to false, you will | ||||
# lose data on truncation or drop. | # lose data on truncation or drop. | ||||
auto_snapshot: true | auto_snapshot: true | ||||
# Granularity of the collation index of rows within a partition. | # Granularity of the collation index of rows within a partition. | ||||
# Increase if your rows are large, or if you have a very large | # Increase if your rows are large, or if you have a very large | ||||
# number of rows per partition. The competing goals are these: | # number of rows per partition. The competing goals are these: | ||||
# | # | ||||
# - a smaller granularity means more index entries are generated | # - a smaller granularity means more index entries are generated | ||||
# and looking up rows withing the partition by collation column | # and looking up rows within the partition by collation column | ||||
# is faster | # is faster | ||||
# - but, Cassandra will keep the collation index in memory for hot | # - but, Cassandra will keep the collation index in memory for hot | ||||
# rows (as part of the key cache), so a larger granularity means | # rows (as part of the key cache), so a larger granularity means | ||||
# you can cache more hot rows | # you can cache more hot rows | ||||
column_index_size_in_kb: 64 | column_index_size_in_kb: 64 | ||||
# Per sstable indexed key cache entries (the collation index in memory | # Per sstable indexed key cache entries (the collation index in memory | ||||
# mentioned above) exceeding this size will not be held on heap. | # mentioned above) exceeding this size will not be held on heap. | ||||
Show All 10 Lines | |||||
# workload, by mitigating the tendency of small sstables to accumulate | # workload, by mitigating the tendency of small sstables to accumulate | ||||
# during a single long running compactions. The default is usually | # during a single long running compactions. The default is usually | ||||
# fine and if you experience problems with compaction running too | # fine and if you experience problems with compaction running too | ||||
# slowly or too fast, you should look at | # slowly or too fast, you should look at | ||||
# compaction_throughput_mb_per_sec first. | # compaction_throughput_mb_per_sec first. | ||||
# | # | ||||
# concurrent_compactors defaults to the smaller of (number of disks, | # concurrent_compactors defaults to the smaller of (number of disks, | ||||
# number of cores), with a minimum of 2 and a maximum of 8. | # number of cores), with a minimum of 2 and a maximum of 8. | ||||
# | # | ||||
# If your data directories are backed by SSD, you should increase this | # If your data directories are backed by SSD, you should increase this | ||||
# to the number of cores. | # to the number of cores. | ||||
#concurrent_compactors: 1 | #concurrent_compactors: 1 | ||||
# Throttles compaction to the given total throughput across the entire | # Throttles compaction to the given total throughput across the entire | ||||
# system. The faster you insert data, the faster you need to compact in | # system. The faster you insert data, the faster you need to compact in | ||||
# order to keep the sstable count down, but in general, setting this to | # order to keep the sstable count down, but in general, setting this to | ||||
# 16 to 32 times the rate you are inserting data is more than sufficient. | # 16 to 32 times the rate you are inserting data is more than sufficient. | ||||
# Setting this to 0 disables throttling. Note that this account for all types | # Setting this to 0 disables throttling. Note that this account for all types | ||||
# of compaction, including validation compaction. | # of compaction, including validation compaction. | ||||
compaction_throughput_mb_per_sec: 16 | compaction_throughput_mb_per_sec: 16 | ||||
# When compacting, the replacement sstable(s) can be opened before they | # When compacting, the replacement sstable(s) can be opened before they | ||||
# are completely written, and used in place of the prior sstables for | # are completely written, and used in place of the prior sstables for | ||||
# any range that has been written. This helps to smoothly transfer reads | # any range that has been written. This helps to smoothly transfer reads | ||||
# between the sstables, reducing page cache churn and keeping hot rows hot | # between the sstables, reducing page cache churn and keeping hot rows hot | ||||
sstable_preemptive_open_interval_in_mb: 50 | sstable_preemptive_open_interval_in_mb: 50 | ||||
# Throttles all outbound streaming file transfers on this node to the | # Throttles all outbound streaming file transfers on this node to the | ||||
# given total throughput in Mbps. This is necessary because Cassandra does | # given total throughput in Mbps. This is necessary because Cassandra does | ||||
# mostly sequential IO when streaming data during bootstrap or repair, which | # mostly sequential IO when streaming data during bootstrap or repair, which | ||||
# can lead to saturating the network connection and degrading rpc performance. | # can lead to saturating the network connection and degrading rpc performance. | ||||
# When unset, the default is 200 Mbps or 25 MB/s. | # When unset, the default is 200 Mbps or 25 MB/s. | ||||
Show All 27 Lines | |||||
# How long before a node logs slow queries. Select queries that take longer than | # How long before a node logs slow queries. Select queries that take longer than | ||||
# this timeout to execute, will generate an aggregated log message, so that slow queries | # this timeout to execute, will generate an aggregated log message, so that slow queries | ||||
# can be identified. Set this value to zero to disable slow query logging. | # can be identified. Set this value to zero to disable slow query logging. | ||||
slow_query_log_timeout_in_ms: 500 | slow_query_log_timeout_in_ms: 500 | ||||
# Enable operation timeout information exchange between nodes to accurately | # Enable operation timeout information exchange between nodes to accurately | ||||
# measure request timeouts. If disabled, replicas will assume that requests | # measure request timeouts. If disabled, replicas will assume that requests | ||||
# were forwarded to them instantly by the coordinator, which means that | # were forwarded to them instantly by the coordinator, which means that | ||||
# under overload conditions we will waste that much extra time processing | # under overload conditions we will waste that much extra time processing | ||||
# already-timed-out requests. | # already-timed-out requests. | ||||
# | # | ||||
# Warning: before enabling this property make sure to ntp is installed | # Warning: before enabling this property make sure to ntp is installed | ||||
# and the times are synchronized between the nodes. | # and the times are synchronized between the nodes. | ||||
cross_node_timeout: false | cross_node_timeout: false | ||||
# Set keep-alive period for streaming | # Set keep-alive period for streaming | ||||
# This node will send a keep-alive message periodically with this period. | # This node will send a keep-alive message periodically with this period. | ||||
▲ Show 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | |||||
# writing a custom Snitch class and is provided in that spirit. | # writing a custom Snitch class and is provided in that spirit. | ||||
# | # | ||||
# You can use a custom Snitch by setting this to the full class name | # You can use a custom Snitch by setting this to the full class name | ||||
# of the snitch, which will be assumed to be on your classpath. | # of the snitch, which will be assumed to be on your classpath. | ||||
endpoint_snitch: SimpleSnitch | endpoint_snitch: SimpleSnitch | ||||
# controls how often to perform the more expensive part of host score | # controls how often to perform the more expensive part of host score | ||||
# calculation | # calculation | ||||
dynamic_snitch_update_interval_in_ms: 100 | dynamic_snitch_update_interval_in_ms: 100 | ||||
# controls how often to reset all host scores, allowing a bad host to | # controls how often to reset all host scores, allowing a bad host to | ||||
# possibly recover | # possibly recover | ||||
dynamic_snitch_reset_interval_in_ms: 600000 | dynamic_snitch_reset_interval_in_ms: 600000 | ||||
# if set greater than zero and read_repair_chance is < 1.0, this will allow | # if set greater than zero and read_repair_chance is < 1.0, this will allow | ||||
# 'pinning' of replicas to hosts in order to increase cache capacity. | # 'pinning' of replicas to hosts in order to increase cache capacity. | ||||
# The badness threshold will control how much worse the pinned host has to be | # The badness threshold will control how much worse the pinned host has to be | ||||
# before the dynamic snitch will prefer other replicas over it. This is | # before the dynamic snitch will prefer other replicas over it. This is | ||||
# expressed as a double which represents a percentage. Thus, a value of | # expressed as a double which represents a percentage. Thus, a value of | ||||
Show All 17 Lines | |||||
# Scheduler Options vary based on the type of scheduler | # Scheduler Options vary based on the type of scheduler | ||||
# | # | ||||
# NoScheduler | # NoScheduler | ||||
# Has no options | # Has no options | ||||
# | # | ||||
# RoundRobin | # RoundRobin | ||||
# throttle_limit | # throttle_limit | ||||
# The throttle_limit is the number of in-flight | # The throttle_limit is the number of in-flight | ||||
# requests per client. Requests beyond | # requests per client. Requests beyond | ||||
# that limit are queued up until | # that limit are queued up until | ||||
# running requests can complete. | # running requests can complete. | ||||
# The value of 80 here is twice the number of | # The value of 80 here is twice the number of | ||||
# concurrent_reads + concurrent_writes. | # concurrent_reads + concurrent_writes. | ||||
# default_weight | # default_weight | ||||
# default_weight is optional and allows for | # default_weight is optional and allows for | ||||
# overriding the default which is 1. | # overriding the default which is 1. | ||||
# weights | # weights | ||||
▲ Show 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | |||||
# some virtualized environments may see a negative performance impact from changing this setting | # some virtualized environments may see a negative performance impact from changing this setting | ||||
# below their system default. The sysinternals 'clockres' tool can confirm your system's default | # below their system default. The sysinternals 'clockres' tool can confirm your system's default | ||||
# setting. | # setting. | ||||
windows_timer_interval: 1 | windows_timer_interval: 1 | ||||
# Enables encrypting data at-rest (on disk). Different key providers can be plugged in, but the default reads from | # Enables encrypting data at-rest (on disk). Different key providers can be plugged in, but the default reads from | ||||
# a JCE-style keystore. A single keystore can hold multiple keys, but the one referenced by | # a JCE-style keystore. A single keystore can hold multiple keys, but the one referenced by | ||||
# the "key_alias" is the only key that will be used for encrypt opertaions; previously used keys | # the "key_alias" is the only key that will be used for encrypt operations; previously used keys | ||||
# can still (and should!) be in the keystore and will be used on decrypt operations | # can still (and should!) be in the keystore and will be used on decrypt operations | ||||
# (to handle the case of key rotation). | # (to handle the case of key rotation). | ||||
# | # | ||||
# It is strongly recommended to download and install Java Cryptography Extension (JCE) | # It is strongly recommended to download and install Java Cryptography Extension (JCE) | ||||
# Unlimited Strength Jurisdiction Policy Files for your version of the JDK. | # Unlimited Strength Jurisdiction Policy Files for your version of the JDK. | ||||
# (current link: http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html) | # (current link: http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html) | ||||
# | # | ||||
# Currently, only the following file types are supported for transparent data encryption, although | # Currently, only the following file types are supported for transparent data encryption, although | ||||
# more are coming in future cassandra releases: commitlog, hints | # more are coming in future cassandra releases: commitlog, hints | ||||
transparent_data_encryption_options: | transparent_data_encryption_options: | ||||
enabled: false | enabled: false | ||||
chunk_length_kb: 64 | chunk_length_kb: 64 | ||||
cipher: AES/CBC/PKCS5Padding | cipher: AES/CBC/PKCS5Padding | ||||
key_alias: testing:1 | key_alias: testing:1 | ||||
# CBC IV length for AES needs to be 16 bytes (which is also the default size) | # CBC IV length for AES needs to be 16 bytes (which is also the default size) | ||||
# iv_length: 16 | # iv_length: 16 | ||||
key_provider: | key_provider: | ||||
- class_name: org.apache.cassandra.security.JKSKeyProvider | - class_name: org.apache.cassandra.security.JKSKeyProvider | ||||
parameters: | parameters: | ||||
- keystore: conf/.keystore | - keystore: conf/.keystore | ||||
keystore_password: cassandra | keystore_password: cassandra | ||||
store_type: JCEKS | store_type: JCEKS | ||||
key_password: cassandra | key_password: cassandra | ||||
##################### | ##################### | ||||
# SAFETY THRESHOLDS # | # SAFETY THRESHOLDS # | ||||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |