cassandra备忘
cassandra优化的工作还继续,而且效果不错。等待海量规模数据检验。
平时在测试优化cassandra的时候,经常会用到一些命令,有些还挺不好记的,记录到这里,以备查找:
- 修 改CompactionStrategy update column family data with compaction_strategy=LeveledCompactionStrategy and compaction_strategy_options=[{sstable_size_in_mb:10}];
- 设置压缩失效 update column family data with compression_options=null
- 查看keyspace,column family配置 show schema
用到的比较重要的,不好记的,我就记录在这里。希望对别的同学也能有用途。注:引用中的资比较全。 【引用】
- http://www.datastax.com/docs/1.0/index
- http://www.datastax.com/docs/1.0/configuration/node_configuration
- http://www.datastax.com/docs/1.0/configuration/storage_configuration
- http://www.datastax.com/docs/1.0/references/nodetool
- http://www.datastax.com/docs/1.0/references/stress_java