Skip to content

piyush121/ConsistencyCheckApplication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Consistency Check Server.- project 2: Distributed Systems.

-----Distributed Server Consistency check application-----

java version : 1.8 OS : linux

Refrenced Libraries :

Thrift - 0.9.3

SLF4J - 1.7.21

To compile just type:

javac -cp ".:./Referenced_Libraries/slf4j-simple-1.7.21.jar:./Referenced_Libraries/slf4j-api-1.7.21.jar:./Referenced_Libraries/libthrift-0.9.3.jar" App/*.java

OR

You can also compile by Executing the shell script ./kvCompile.

To run client just type:

java -cp ".:./Referenced_Libraries/slf4j-simple-1.7.21.jar:./Referenced_Libraries/slf4j-api-1.7.21.jar:./Referenced_Libraries/libthrift-0.9.3.jar" App.CheckServer -server 192.168.1.5:9634

Server will run by default on localhost, port 5000.

You can also run the client by Executing the shell script ./consistency_test -server 192.168.1.5:9634.

The client and server are built using java and You just need to run the consistency_test script to run the application with appropriate arguments.

#Internal Working

We begin by initializing a default value on the server. Then we start 20 threads / clients which randomly set and get values. Then we add Time edge according to the algorithm presented in the paper. Then we add data and Hybrid edge to the graph. After that, we run cycle detection algorithm to check the presence of cycle. If cycle is not found then we conclude the server as consistent otherwise inconsistent.

About

Java Application to check the consistency of the Distributed Key Value server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors