GithubHelp home page GithubHelp logo

cassandra-test's Introduction

Cassandra Tests

##Information about the Cluster

There are three nodes in the local cluster and they are listening on IP addresses 127.0.0.1, 127.0.0.5, 127.0.010. Every time we add a node to the cluster, we must reassign tokens to all of the existing nodes. Use the cassandra_token.py script to get the appopriate tokens. That script is taken from http://www.datastax.com/docs/0.8/install/adding_nodes#adding-nodes.

##Questions/Discoveries about Cassandra

  • Connection Pools

    •   When we create the connection pool, we only need to add one server to the server_list parameter. Cassandra will use it's own internal communication to figure out the rest of the nodes in the cluster.
      
    •   Can't direct a write to a specific node.
      
  • Eventual Consistency

    •   Strongly consistent: R + W > ReplicationFactor
      
    •   As stated [here](http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/meaning-of-eventual-consistency-in-Cassandra-td5885445.html), eventualy consistency depends on our choice of consistency level. If we read from multiple nodes, as in QUORUM or ALL, then the value with the most recent timestamp is returned.
      
    •   Cassandra uses Read Repair--if whenever Cassandra reads from replicas of the same key and the most recent timestamped value is different from the other values, the newest version will be sent to all the out-of-date replicas.
      
  • Querying

    •   If we query the database to get a key that is not in the column family, NotFoundException will be returned instead of None.
      

cassandra-test's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.