Changed the DeleteAllFailedFetchStrategy so that it affects all nodes.
[voldemort.git] / README.md
blob9b4934d00fe76f839282ae39a782ce88039a4cf1
1 # Voldemort is a distributed key-value storage system #
3 ## Overview ##
5 * Data is automatically replicated over multiple servers across multiple datacenters.
6 * Data is automatically partitioned so each server contains only a subset of the total data
7 * Server failure is handled transparently
8 * Pluggable serialization is supported to allow rich keys and values including lists and tuples with named fields, as well as to integrate with common serialization frameworks like Protocol Buffers, Thrift, and Java Serialization
9 * Data items are versioned to maximize data integrity in failure scenarios without compromising availability of the system
10 * Each node is independent of other nodes with no central point of failure or coordination
11 * Pluggable storage engines, to cater to different workloads
12 * SSD Optimized Read Write storage engine, with support for multi-tenancy
13 * Built in mechanism to fetch & serve batch computed data from Hadoop 
14 * Support for pluggable data placement strategies to support things like distribution across data centers that are geographical far apart.
16 It is used at LinkedIn by numerous critical services powering a large portion of the site. .
18 ## QuickStart ##
20 *You can refer to http://www.project-voldemort.com for more info*
22 ### Download Code ###
24 ```bash
25 cd ~/workspace
26 git clone https://github.com/voldemort/voldemort.git
27 cd voldemort
28 ./gradlew clean jar
29 ```
31 ### Start Server ###
33 ```
34 # in one terminal
35 bin/voldemort-server.sh config/single_node_cluster
36 ```
38 ### Use Client Shell ###
40 Client shell gives you fast access to the store. We already have a test store defined in the "single_node_cluster", whose key and value are both String.
42 ```bash
43 # in another terminal
44 cd ~/workspace/voldemort
45 bin/voldemort-shell.sh test tcp://localhost:6666/
46 ```
48 Now you have the the voldemort shell running. You can try these commands in the shell
50 ```
51 put "k1" "v1"
52 put "k2" "v2"
53 get "k1"
54 getall "k1" "k2"
55 delete "k1"
56 get "k1"
57 ```
59 You can find more commands by running```help```
61 Want to dig into the detailed implementation or even contribute to Voldemort? [A quick git guide for people who want to make contributions to Voldemort](https://github.com/voldemort/voldemort/wiki/A-quick-git-guide-for-people-who-want-to-make-contributions-to-Voldemort).
64 ## Comparison to relational databases ##
66 Voldemort is not a relational database, it does not attempt to satisfy arbitrary relations while satisfying ACID properties. Nor is it an object database that attempts to transparently map object reference graphs. Nor does it introduce a new abstraction such as document-orientation. It is basically just a big, distributed, persistent, fault-tolerant hash table. For applications that can use an O/R mapper like ActiveRecord or Hibernate this will provide horizontal scalability and much higher availability but at great loss of convenience. For large applications under internet-type scalability pressure, a system may likely consist of a number of functionally partitioned services or apis, which may manage storage resources across multiple data centers using storage systems which may themselves be horizontally partitioned. For applications in this space, arbitrary in-database joins are already impossible since all the data is not available in any single database. A typical pattern is to introduce a caching layer which will require hashtable semantics anyway. For these applications Voldemort offers a number of advantages:
68 * Voldemort combines in memory caching with the storage system so that a separate caching tier is not required (instead the storage system itself is just fast).
69 * Unlike MySQL replication, both reads and writes scale horizontally
70 * Data partioning is transparent, and allows for cluster expansion without rebalancing all data
71 * Data replication and placement is decided by a simple API to be able to accommodate a wide range of application specific strategies
72 * The storage layer is completely mockable so development and unit testing can be done against a throw-away in-memory storage system without needing a real cluster (or even a real storage system) for simple testing
74 ## Contribution ##
76 The source code is available under the Apache 2.0 license. We are actively looking for contributors so if you have ideas, code, bug reports, or fixes you would like to contribute please do so.
78 For help please see the [discussion group](http://groups.google.com/group/project-voldemort), or the IRC channel chat.us.freenode.net #voldemort. Bugs and feature requests can be filed on [Github](https://github.com/voldemort/voldemort/issues).
80 ## Special Thanks ##
82 We would like to thank [JetBrains](http://www.jetbrains.com) for supporting Voldemort Project by offering open-source license of their [IntelliJ IDE](http://www.jetbrains.com/idea/) to us.