2024-07-24 18:05:37 +02:00
|
|
|
# Cluster name
|
|
|
|
cluster_name: ${CASSANDRA_CLUSTER_NAME}
|
|
|
|
|
|
|
|
# Addresses
|
|
|
|
listen_address: ${CASSANDRA_LISTEN_ADDRESS}
|
|
|
|
broadcast_address: ${CASSANDRA_BROADCAST_ADDRESS}
|
|
|
|
# rpc_address: 0.0.0.0
|
|
|
|
broadcast_rpc_address: ${CASSANDRA_RPC_ADDRESS}
|
|
|
|
|
|
|
|
# Seed nodes
|
2024-07-24 15:41:02 +02:00
|
|
|
seed_provider:
|
|
|
|
- class_name: org.apache.cassandra.locator.SimpleSeedProvider
|
|
|
|
parameters:
|
2024-07-24 18:05:37 +02:00
|
|
|
- seeds: "cassandra1,cassandra2,cassandra3"
|
|
|
|
|
|
|
|
# Directories
|
|
|
|
data_file_directories:
|
|
|
|
- /var/lib/cassandra/data
|
|
|
|
|
|
|
|
commitlog_directory: /var/lib/cassandra/commitlog
|
|
|
|
|
|
|
|
saved_caches_directory: /var/lib/cassandra/saved_caches
|
|
|
|
|
|
|
|
# Tokens and allocation
|
|
|
|
num_tokens: ${CASSANDRA_NUM_TOKENS}
|
|
|
|
allocate_tokens_for_local_replication_factor: 3
|
|
|
|
|
|
|
|
# Hinted handoff settings
|
|
|
|
hinted_handoff_enabled: true
|
|
|
|
max_hint_window: 3h
|
|
|
|
hinted_handoff_throttle: 1024KiB
|
|
|
|
max_hints_delivery_threads: 2
|
|
|
|
hints_flush_period: 10000ms
|
|
|
|
max_hints_file_size: 128MiB
|
|
|
|
auto_hints_cleanup_enabled: false
|
2024-07-24 15:41:02 +02:00
|
|
|
|
2024-07-24 18:05:37 +02:00
|
|
|
# Batchlog settings
|
|
|
|
batchlog_replay_throttle: 1024KiB
|
2024-07-24 15:41:02 +02:00
|
|
|
|
2024-07-24 18:05:37 +02:00
|
|
|
# Authentication and authorization
|
|
|
|
authenticator: AllowAllAuthenticator
|
|
|
|
authorizer: AllowAllAuthorizer
|
|
|
|
role_manager: CassandraRoleManager
|
|
|
|
network_authorizer: AllowAllNetworkAuthorizer
|
|
|
|
roles_validity: 2000ms
|
|
|
|
permissions_validity: 2000ms
|
|
|
|
credentials_validity: 2000ms
|
2024-07-24 15:41:02 +02:00
|
|
|
|
2024-07-24 18:05:37 +02:00
|
|
|
# Partitioner
|
|
|
|
partitioner: org.apache.cassandra.dht.Murmur3Partitioner
|
2024-07-24 15:41:02 +02:00
|
|
|
|
2024-07-24 18:05:37 +02:00
|
|
|
# Commit log settings
|
|
|
|
cdc_enabled: false
|
|
|
|
disk_failure_policy: stop
|
|
|
|
commit_failure_policy: stop
|
|
|
|
commitlog_sync: periodic
|
|
|
|
commitlog_sync_period: 10000ms
|
|
|
|
commitlog_segment_size: 32MiB
|
2024-07-24 15:41:02 +02:00
|
|
|
|
2024-07-24 18:05:37 +02:00
|
|
|
# Cache settings
|
|
|
|
prepared_statements_cache_size:
|
|
|
|
key_cache_size:
|
|
|
|
key_cache_save_period: 4h
|
|
|
|
row_cache_size: 0MiB
|
|
|
|
row_cache_save_period: 0s
|
|
|
|
counter_cache_size:
|
|
|
|
counter_cache_save_period: 7200s
|
|
|
|
|
|
|
|
# Concurrent operations settings
|
|
|
|
concurrent_reads: 32
|
|
|
|
concurrent_writes: 32
|
|
|
|
concurrent_counter_writes: 32
|
|
|
|
concurrent_materialized_view_writes: 32
|
|
|
|
|
|
|
|
# Memtable allocation
|
|
|
|
memtable_allocation_type: heap_buffers
|
|
|
|
|
|
|
|
# Index summary settings
|
|
|
|
index_summary_capacity:
|
|
|
|
index_summary_resize_interval: 60m
|
|
|
|
|
|
|
|
# Fsync settings
|
|
|
|
trickle_fsync: false
|
|
|
|
trickle_fsync_interval: 10240KiB
|
|
|
|
|
|
|
|
# Ports
|
|
|
|
storage_port: 7000
|
|
|
|
ssl_storage_port: 7001
|
|
|
|
|
|
|
|
# Native transport settings
|
|
|
|
start_native_transport: true
|
2024-07-24 15:41:02 +02:00
|
|
|
native_transport_port: 9042
|
2024-07-24 18:05:37 +02:00
|
|
|
native_transport_allow_older_protocols: true
|
|
|
|
rpc_keepalive: true
|
|
|
|
|
|
|
|
# Backup settings
|
|
|
|
incremental_backups: false
|
|
|
|
snapshot_before_compaction: false
|
|
|
|
auto_snapshot: true
|
|
|
|
snapshot_links_per_second: 0
|
2024-07-24 15:41:02 +02:00
|
|
|
|
2024-07-24 18:05:37 +02:00
|
|
|
# SSTable settings
|
|
|
|
column_index_size: 64KiB
|
|
|
|
column_index_cache_size: 2KiB
|
|
|
|
concurrent_materialized_view_builders: 1
|
|
|
|
compaction_throughput: 64MiB/s
|
|
|
|
sstable_preemptive_open_interval: 50MiB
|
|
|
|
uuid_sstable_identifiers_enabled: false
|
|
|
|
|
|
|
|
# Request timeouts
|
|
|
|
read_request_timeout: 1000000ms
|
|
|
|
range_request_timeout: 1000000ms
|
|
|
|
write_request_timeout: 1000000ms
|
|
|
|
counter_write_request_timeout: 1000000ms
|
|
|
|
cas_contention_timeout: 1000000ms
|
|
|
|
truncate_request_timeout: 1000000ms
|
|
|
|
request_timeout: 1000000ms
|
|
|
|
slow_query_log_timeout: 500ms
|
|
|
|
|
|
|
|
# Snitch settings
|
2024-07-24 15:41:02 +02:00
|
|
|
endpoint_snitch: GossipingPropertyFileSnitch
|
2024-07-24 18:05:37 +02:00
|
|
|
dynamic_snitch_update_interval: 100ms
|
|
|
|
dynamic_snitch_reset_interval: 600000ms
|
|
|
|
dynamic_snitch_badness_threshold: 1.0
|
|
|
|
|
|
|
|
# Encryption options
|
|
|
|
server_encryption_options:
|
|
|
|
internode_encryption: none
|
|
|
|
legacy_ssl_storage_port_enabled: false
|
|
|
|
keystore: conf/.keystore
|
|
|
|
keystore_password: cassandra
|
|
|
|
require_client_auth: false
|
|
|
|
truststore: conf/.truststore
|
|
|
|
truststore_password: cassandra
|
|
|
|
require_endpoint_verification: false
|
|
|
|
client_encryption_options:
|
|
|
|
enabled: false
|
|
|
|
keystore: conf/.keystore
|
|
|
|
keystore_password: cassandra
|
|
|
|
require_client_auth: false
|
|
|
|
|
|
|
|
# Inter-node communication settings
|
|
|
|
internode_compression: dc
|
|
|
|
inter_dc_tcp_nodelay: false
|
|
|
|
|
|
|
|
# Trace settings
|
|
|
|
trace_type_query_ttl: 1d
|
|
|
|
trace_type_repair_ttl: 7d
|
|
|
|
|
|
|
|
# User-defined functions
|
|
|
|
user_defined_functions_enabled: false
|
|
|
|
scripted_user_defined_functions_enabled: false
|
|
|
|
|
|
|
|
# Transparent data encryption
|
|
|
|
transparent_data_encryption_options:
|
|
|
|
enabled: false
|
|
|
|
chunk_length_kb: 64
|
|
|
|
cipher: AES/CBC/PKCS5Padding
|
|
|
|
key_alias: testing:1
|
|
|
|
key_provider:
|
|
|
|
- class_name: org.apache.cassandra.security.JKSKeyProvider
|
|
|
|
parameters:
|
|
|
|
- keystore: conf/.keystore
|
|
|
|
keystore_password: cassandra
|
|
|
|
store_type: JCEKS
|
|
|
|
key_password: cassandra
|
|
|
|
|
|
|
|
# Tombstone settings
|
|
|
|
tombstone_warn_threshold: 1000
|
|
|
|
tombstone_failure_threshold: 100000
|
|
|
|
|
|
|
|
# Replica filtering protection
|
|
|
|
replica_filtering_protection:
|
|
|
|
cached_rows_warn_threshold: 2000
|
|
|
|
cached_rows_fail_threshold: 32000
|
|
|
|
|
|
|
|
# Batch size settings
|
|
|
|
batch_size_warn_threshold: 5KiB
|
|
|
|
batch_size_fail_threshold: 50KiB
|
|
|
|
unlogged_batch_across_partitions_warn_threshold: 10
|
|
|
|
|
|
|
|
# Compaction settings
|
|
|
|
compaction_large_partition_warning_threshold: 100MiB
|
|
|
|
compaction_tombstone_warning_threshold: 100000
|
|
|
|
|
|
|
|
# Audit logging options
|
|
|
|
audit_logging_options:
|
|
|
|
enabled: false
|
|
|
|
logger:
|
|
|
|
- class_name: BinAuditLogger
|
|
|
|
|
|
|
|
# Diagnostic events
|
|
|
|
diagnostic_events_enabled: false
|
|
|
|
|
|
|
|
# Repaired data tracking
|
|
|
|
repaired_data_tracking_for_range_reads_enabled: false
|
|
|
|
repaired_data_tracking_for_partition_reads_enabled: false
|
|
|
|
report_unconfirmed_repaired_data_mismatches: false
|
2024-07-24 15:41:02 +02:00
|
|
|
|
2024-07-24 18:05:37 +02:00
|
|
|
# Feature flags
|
|
|
|
materialized_views_enabled: false
|
|
|
|
sasi_indexes_enabled: false
|
|
|
|
transient_replication_enabled: false
|
|
|
|
drop_compact_storage_enabled: false
|