11. Cassandra 参考信息¶
在此,对关于 Cassandra 的参考信息进行介绍。
11.1. cassandra.yaml主要项目一览¶
项目名 | 初始值 | 说明 |
cluster_name | Test Cluster | 集群名称。 |
initial_token | <无记述> | 指定Token,要参加集群时在此处记述。
若此处为空,则会按照分担负荷最高的节点所主管范围的方式
来分配Token。
对于全新节点等没有负荷信息的情况,会随机分配。
|
hinted_handoff_enabled | true | 详细信息请参照Cassandra官方wiki的提示移交(Hinted Handoff)部分。 |
authenticator | org.apache.cassandra.auth.AllowAllAuthenticator | |
authority | org.apache.cassandra.auth.AllowAllAuthority | |
partitioner | org.apache.cassandra.dht.RandomPartitioner | 对集群内节点如何配置数据的设定。 |
data_file_directories | /var/lib/cassandra/data | 实际数据保存场所。 |
commitlog_directory | /var/lib/cassandra/commitlog | CommitLog保存场所。 |
saved_caches_directory | /var/lib/cassandra/saved_caches | 缓存数据保存场所。 |
commitlog_sync | periodic | CommitLog的保存方法。通过“periodic/batch”选择是批量写入
还是一点一点写入。
|
commitlog_sync_period_in_ms | 10000 | 指定毫秒数。在每个指定的期间写入CommitLog |
seeds | 127.0.0.1 | 使其加入到集群中时,指定其自身IP和集群内其他节点
。
|
disk_access_mode | auto | mmaped I/O的使用设定。在64bit的JVM中使用时有效。
建议使用初始值auto。(到Cassandra1.1.4为止)
|
concurrent_reads | 32 | 同时进行的读入处理个数。建议为1CPU核心数x2。 |
concurrent_writes | 32 | 同时进行的读入处理个数。 |
storage_port | 7000 | 指定在节点间进行数据交互时使用的端口号。 |
listen_address | localhost | 与其他节点通信时使用的地址。
记述节点加入多个网络时想使用的
网络地址。
|
rpc_address | localhost | 许可其使用Thrift与外部连接的IP地址。 |
rpc_port | 9160 | 使用Thrift与外部连接时使用的端口号。
|
rpc_keepalive | true | 选择在RPC连接中是否使用KeepAlive属性。 |
thrift_framed_transport_size_in_mb | 15 | 以MB为单位指定在Thrift中使用的帧缓存Size。 |
snapshot_before_compaction | false | 是否在Compaction前进行快照。 |
in_memory_compaction_limit_in_mb | 64 | 被压缩到内存中的列的大小限制。
推荐值是可使用的Java堆大小的5%到10%
|
rpc_timeout_in_ms | 10000 | 到返回命令错误为止的超时值。 |
dynamic_snitch | true | 从由于正在实施Compaction等原因所造成的响应速度低下的节点
之外读入数据。(到Cassandra1.1.4为止)
|
request_scheduler | org.apache.cassandra.scheduler.NoScheduler | 指定在请求发行次数中设置限制时使用的算法。 |
11.2. 外部网站¶
网站名 | URL |
Apache Cassandra | http://cassandra.apache.org/ (English) |
Cassandra Wiki | |
Cassandra的硬件调整 | |
datastax的Apache Cassandra 1.1文档 | http://www.datastax.com/docs/1.1/index (English) |