github.com/qsunny/k8s@v0.0.0-20220101153623-e6dca256d5bf/examples-master/cassandra/java/src/test/resources/cassandra.yaml (about)

     1  # Copyright (C) 2015 Google Inc.
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License"); you may not
     4  # use this file except in compliance with the License. You may obtain a copy of
     5  # the License at
     6  #
     7  # http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
    11  # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
    12  # License for the specific language governing permissions and limitations under
    13  # the License.
    14  #
    15  # Warning!
    16  # Consider the effects on 'o.a.c.i.s.LegacySSTableTest' before changing schemas in this file.
    17  #
    18  cluster_name: Test Cluster
    19  # memtable_allocation_type: heap_buffers
    20  memtable_allocation_type: offheap_objects
    21  commitlog_sync: batch
    22  commitlog_sync_batch_window_in_ms: 1.0
    23  commitlog_segment_size_in_mb: 5
    24  commitlog_directory: target/cassandra/commitlog
    25  hints_directory: target/cassandra/hints
    26  partitioner: org.apache.cassandra.dht.ByteOrderedPartitioner
    27  listen_address: 127.0.0.1
    28  storage_port: 7010
    29  rpc_port: 9170
    30  start_native_transport: true
    31  native_transport_port: 9042
    32  column_index_size_in_kb: 4
    33  saved_caches_directory: target/cassandra/saved_caches
    34  data_file_directories:
    35      - target/cassandra/data
    36  disk_access_mode: mmap
    37  seed_provider:
    38      - class_name: io.k8s.cassandra.KubernetesSeedProvider
    39        parameters:
    40            - seeds: "8.4.4.4,8.8.8.8"
    41  endpoint_snitch: org.apache.cassandra.locator.SimpleSnitch
    42  dynamic_snitch: true
    43  request_scheduler: org.apache.cassandra.scheduler.RoundRobinScheduler
    44  request_scheduler_id: keyspace
    45  server_encryption_options:
    46      internode_encryption: none
    47      keystore: conf/.keystore
    48      keystore_password: cassandra
    49      truststore: conf/.truststore
    50      truststore_password: cassandra
    51  incremental_backups: true
    52  concurrent_compactors: 4
    53  compaction_throughput_mb_per_sec: 0
    54  row_cache_class_name: org.apache.cassandra.cache.OHCProvider
    55  row_cache_size_in_mb: 16
    56  enable_user_defined_functions: true
    57  enable_scripted_user_defined_functions: true