日期:2014-05-16  浏览次数:20572 次

Cassandra学习笔记3

初学cassandra?如有错误请指正 谢谢???????????????????

??????????????? ?Cassandra? 性能测试

目的:

验证Cassandra? 是否达到如下性能:

在数据量为5000万下,读写数据1000/单台每秒,

准备工作:

一、Cassandra运行环境配置linux ?jdk64位)

1、????????? Cassandra性能相关参数修改(cassandra.yaml文件)

(1) 最好将数据文件和日志文件存储在不同硬盘

# directories where Cassandra should store data on disk.

data_file_directories:

??? - /var/lib/cassandra/data

# commit log

commitlog_directory: /var/lib/cassandra/commitlog

(2) 修改并发写的线程数量为128

# On the other hand, since writes are almost never IO bound, the ideal

# number of "concurrent_writes" is dependent on the number of cores in

# your system; (8 * number_of_cores) is a good rule of thumb.

concurrent_reads: 32

concurrent_writes: 128