diff --git a/data/common/cassandra.yaml b/data/common/cassandra.yaml index d472423f..5e8239f9 100644 --- a/data/common/cassandra.yaml +++ b/data/common/cassandra.yaml @@ -1,87 +1,88 @@ cassandra::base_data_directory: /srv/cassandra cassandra::base_config_directory: /etc/cassandra cassandra::base_log_directory: /var/log/cassandra cassandra::version: 4.0.5 cassandra::listen_network: "%{lookup('internal_network')}" cassandra::nodes: cassandra01.internal.softwareheritage.org: instances: instance1: cluster_name: archive_production cassandra02.internal.softwareheritage.org: instances: instance1: cluster_name: archive_production cassandra03.internal.softwareheritage.org: instances: instance1: cluster_name: archive_production cassandra04.internal.softwareheritage.org: instances: instance1: cluster_name: archive_production cassandra05.internal.softwareheritage.org: instances: instance1: cluster_name: archive_production cassandra06.internal.softwareheritage.org: instances: instance1: cluster_name: archive_production cassandra::clusters: archive_production: seed_provider: - class_name: org.apache.cassandra.locator.SimpleSeedProvider parameters: - seeds: "cassandra01.internal.softwareheritage.org:7000" cassandra::default_instance_configuration: cluster_name: "%{lookup('cassandra::default_cluster_name')}" datacenter: "%{::subnet}" # rack: "%{::hostname}" rack: rack1 native_transport_port: 9042 storage_port: 7000 jmx_port: 7199 jmx_exporter_port: 7070 jmx_remote: true jmx_user: "%{lookup('cassandra::jmx::user')}" jmx_password: "%{lookup('cassandra::jmx::password')}" heap: "%{lookup('cassandra::heap')}" cassandra::jmx::user: cassandra -cassandra::heap: 16G +cassandra::heap: 32G # cassandra::jmx::password in private data # Reflect the base of the cassandra.yaml content # These list is completed and/or overridden in cassandra::instance cassandra::base_instance_configuration: num_tokens: 16 allocate_tokens_for_local_replication_factor: 3 disk_optimization_strategy: ssd concurrent_compactors: 4 # should be min(nb core, nb disks) internode_compression: dc # default dc possible all|dc|none concurrent_reads: 64 # 16 x number of drives concurrent_writes: 128 # 8 x number of cores concurrent_counter_writes: 48 commitlog_sync: periodic # default periodic commitlog_sync_period_in_ms: 10000 # default 10000 commitlog_total_space_in_mb: 16384 # default 8192 commitlog_segment_size_in_mb: 256 # default 32 (due to oversize mutation on revision table) partitioner: org.apache.cassandra.dht.Murmur3Partitioner endpoint_snitch: GossipingPropertyFileSnitch enable_user_defined_functions: true # needed by swh-storage compaction_throughput_mb_per_sec: 160 read_request_timeout_in_ms: 5000 range_request_timeout_in_ms: 10000 write_request_timeout_in_ms: 2000 counter_write_request_timeout_in_ms: 5000 cas_contention_timeout_in_ms: 1000 truncate_request_timeout_in_ms: 60000 request_timeout_in_ms: 10000 slow_query_log_timeout_in_ms: 1000 + repair_session_space_in_mb: 1024