Deployment


Replication

replication strategy

  • SimpleStrategy: all nodes confined in the same data center
  • NetworkTopologyStrategy: most flexible, highly recommended

Scale out consideration

ubtc01 connect ubtc02 with networkTopologyStrategy
Both ubtc01 and ubtc02 ndes are in the same rack RACK1 in the same data center NY1

cassamdra.yaml settings

  • -seeds:ubtc01
  • listen_address
  • rpc_address:0.0.0.0
  • endpoint_snitch:GossipingPropertyFileSnitch

cassandra-rackdc.properties

  • dc=NY1
  • rack=RACK1

Data migration of CassandraTrader

  • Copy all SSTables under packtcdma directory to a temporary location
  • Drop keyspace packtcdma in the single node cluster
  • Prepare a new Cassandra node
  • Apply changes in cassandra.yaml and cassandra-rackdc.properties
  • Add the new node to form a multi-node cluster
  • Create keyspace with appropriate replication strategy
  • Create table quote
  • Load the SSTables back to the cluster by SSTableLoader utility

Monitoring

nodetools

  • nodetool status
  • nodetool netstats
  • nodetool info
  • nodetool tpstats
  • nodetool cfstats [keyspace.table]

system log

cassandra-env.sh

http://blog.csdn.net/rzliuwei/article/details/40430031