-
-
Save pauloricardomg/e9e23feea1b172b4f084cb01d7a89b05 to your computer and use it in GitHub Desktop.
cassandra.yaml refactoring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############# | |
# core.yaml # | |
############## | |
# | |
# Core Database Configuration | |
# | |
# Other configurations: | |
# - features.yaml: any optional feature. | |
# - guardrails.yaml: any fail/warn thresholds. | |
############ | |
# CLUSTER # | |
############ | |
cluster_name: 'Test Cluster' | |
num_tokens: 16 | |
allocate_tokens_for_local_replication_factor: 3 | |
seed_provider: | |
- class_name: org.apache.cassandra.locator.SimpleSeedProvider | |
parameters: | |
- seeds: "127.0.0.1:7000" | |
############## | |
# COMMIT LOG # | |
############## | |
commitlog_sync: periodic | |
commitlog_sync_period: 10000ms | |
commitlog_segment_size: 32MiB | |
############### | |
# CONCURRENCY # | |
############### | |
concurrent_reads: 32 | |
concurrent_writes: 32 | |
concurrent_counter_writes: 32 | |
concurrent_materialized_view_writes: 32 | |
concurrent_materialized_view_builders: 1 | |
############ | |
# TIMEOUTS # | |
############ | |
read_request_timeout: 5000ms | |
range_request_timeout: 10000ms | |
write_request_timeout: 2000ms | |
counter_write_request_timeout: 5000ms | |
cas_contention_timeout: 1000ms | |
truncate_request_timeout: 60000ms | |
request_timeout: 10000ms | |
slow_query_log_timeout: 500ms | |
########### | |
# NETWORK # | |
########### | |
storage_port: 7000 | |
ssl_storage_port: 7001 | |
listen_address: localhost | |
start_native_transport: true | |
native_transport_port: 9042 | |
native_transport_allow_older_protocols: true | |
rpc_address: localhost | |
rpc_keepalive: true | |
internode_compression: dc | |
inter_dc_tcp_nodelay: false | |
######################## | |
# SNAPSHOTS / BACKUPS # | |
######################## | |
auto_backups: false | |
auto_snapshot: true | |
snapshot_before_compaction: false | |
snapshot_links_per_second: 0 | |
############## | |
# COMPACTION # | |
############## | |
compaction_throughput: 64MiB/s | |
sstable_preemptive_open_interval: 50MiB | |
############## | |
# ENCRYPTION # | |
############## | |
# Server Encryption | |
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 | |
client_encryption_options: | |
enabled: false | |
keystore: conf/.keystore | |
keystore_password: cassandra | |
require_client_auth: 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################# | |
# features.yaml # | |
################# | |
# | |
# Any optional Cassandra feature | |
# | |
# Other configurations: | |
# - core.yaml: core database configuration. | |
# - guardrails.yaml: any fail/warn thresholds. | |
# Hinted Handoffs | |
hinted_handoff: | |
enabled: true | |
auto_hints_cleanup: false | |
max_hint_window: 3h | |
hinted_handoff_throttle: 1024KiB | |
max_hints_delivery_threads: 2 | |
hints_flush_period: 10000ms | |
max_hints_file_size: 128MiB | |
# UDFs | |
user_defined_functions: | |
enabled: false | |
allow_scripted_user_defined_functions: false | |
# Diagnostics Events | |
diagnostic_events: | |
enabled: false | |
######################### | |
# EXPERIMENTAL FEATURES # | |
######################### | |
# CDC | |
cdc: | |
enabled: false | |
legacy_ssl_storage_port_enabled: false | |
# MVs | |
materialized_views: | |
enabled: false | |
# SSTable-Attached Secondary Indexes | |
sasi_indexes: | |
enabled: false | |
# Transient Replication | |
transient_replication: | |
enabled: false | |
# DROP COMPACT STORAGE feature | |
drop_compact_storage: | |
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################### | |
# guardrails.yaml # | |
################### | |
# | |
# All fail/warn thresholds | |
# | |
# Other configurations: | |
# - core.yaml: core database configuration. | |
# - features.yaml: any optional feature. | |
# Tombstone Guardrails | |
tombstone_warn_threshold: 1000 | |
tombstone_failure_threshold: 100000 | |
# Replica Filtering Protection Guardrails | |
replica_filtering_protection: | |
cached_rows_warn_threshold: 2000 | |
cached_rows_fail_threshold: 32000 | |
# Batch Guardrails | |
batch_size_warn_threshold: 5KiB | |
batch_size_fail_threshold: 50KiB | |
unlogged_batch_across_partitions_warn_threshold: 10 | |
# Compaction Guardrails | |
compaction_large_partition_warning_threshold: 100MiB | |
compaction_tombstone_warning_threshold: 100000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment