甚至不确定从哪里开始寻找这个答案 .

我有四个t2.micro节点运行几乎空闲的Cassandra集群进行测试 . 两个节点在一个DC中,两个节点在另一个DC中 . 我正在使用EC2飞贼,一切似乎都在工作 .

Datacenter: us-east
===================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address        Load       Tokens       Owns (effective)  Host     ID                               Rack
UN  192.168.1.160  89.35 MB   256          51.3%             62ed3b67-aaa0-4ada-bcfc-240559ee25d5  1e
UN  192.168.1.161  35.09 MB   256          48.7%             ea485c5a-10a2-42fc-8e97-67b164cd7e5d  1e
UN  192.168.2.195  65.39 MB   256          48.4%             3697ef93-8312-4783-8112-38959690c005  1a
UN  192.168.2.196  59.97 MB   256          51.6%             7ae1e1d3-1e4b-4f45-809c-863c786f48af  1a

我有一个非常小的 table ,每秒约10-20次写入 .

让我感到震惊的是,这个小集群每天要进行大约10-30GB的数据传输 . 有些事情是错的,我是一个Cassandra noob,我不知道从哪里开始 . 我擦了一下簇,然后有一个小小的倾角,但很快又回来了 . 我想了解这种用法是什么以及它如何随负载而变化 .

以下是CloudWatch图:
enter image description here

这是我的配置的复制/粘贴,我认为这是“大部分”库存(删除注释以使其成为合适的长度):

cluster_name: 'Test Cluster'
num_tokens: 256
hinted_handoff_enabled: true
max_hint_window_in_ms: 10800000 # 3 hours
hinted_handoff_throttle_in_kb: 1024
max_hints_delivery_threads: 2
hints_flush_period_in_ms: 10000
max_hints_file_size_in_mb: 128
batchlog_replay_throttle_in_kb: 1024
authenticator: AllowAllAuthenticator
authorizer: AllowAllAuthorizer
role_manager: CassandraRoleManager
roles_validity_in_ms: 2000
permissions_validity_in_ms: 2000
partitioner: org.apache.cassandra.dht.Murmur3Partitioner
disk_failure_policy: stop
commit_failure_policy: stop
key_cache_size_in_mb:
key_cache_save_period: 14400
row_cache_size_in_mb: 0
row_cache_save_period: 0
counter_cache_size_in_mb:
counter_cache_save_period: 7200
commitlog_sync: periodic
commitlog_sync_period_in_ms: 10000
commitlog_segment_size_in_mb: 32
seed_provider:
    - class_name: org.apache.cassandra.locator.SimpleSeedProvider
      parameters:
          - seeds: "192.168.1.161, 192.168.2.196"
concurrent_reads: 32
concurrent_writes: 32
concurrent_counter_writes: 32
concurrent_materialized_view_writes: 32
memtable_allocation_type: heap_buffers
index_summary_capacity_in_mb:
index_summary_resize_interval_in_minutes: 60
trickle_fsync: false
trickle_fsync_interval_in_kb: 10240
storage_port: 7000
ssl_storage_port: 7001
listen_interface: eth0
start_native_transport: true
native_transport_port: 9042
start_rpc: false
rpc_interface: eth0
rpc_port: 9160
rpc_keepalive: true
rpc_server_type: sync
thrift_framed_transport_size_in_mb: 15
incremental_backups: false
snapshot_before_compaction: false
auto_snapshot: true
tombstone_warn_threshold: 1000
tombstone_failure_threshold: 100000
column_index_size_in_kb: 64
batch_size_warn_threshold_in_kb: 5
batch_size_fail_threshold_in_kb: 50
compaction_throughput_mb_per_sec: 16
compaction_large_partition_warning_threshold_mb: 100
sstable_preemptive_open_interval_in_mb: 50
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
cross_node_timeout: false
endpoint_snitch: Ec2Snitch
dynamic_snitch_update_interval_in_ms: 100
dynamic_snitch_reset_interval_in_ms: 600000
dynamic_snitch_badness_threshold: 0.1
request_scheduler: org.apache.cassandra.scheduler.NoScheduler
server_encryption_options:
    internode_encryption: none
    keystore: conf/.keystore
    keystore_password: cassandra
    truststore: conf/.truststore
    truststore_password: cassandra
client_encryption_options:
    enabled: false
    optional: false
    keystore: conf/.keystore
    keystore_password: cassandra
internode_compression: all
inter_dc_tcp_nodelay: false
tracetype_query_ttl: 86400
tracetype_repair_ttl: 604800
gc_warn_threshold_in_ms: 1000
enable_user_defined_functions: false
enable_scripted_user_defined_functions: false
windows_timer_interval: 1

这是我的密钥空间的副本:

CREATE KEYSPACE stuff WITH replication = {'class': 'NetworkTopologyStrategy', 'us-east': '2'}  AND durable_writes = true;