Skip to content

kkartaltepe/Paxos-Implementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slip days used (this project) 3, slip days used (total): 3

mvn package
java -cp target/paxos-1.0-jar-with-dependencies.jar edu.utexas.kkartal.chat.client.DefaultClient [startPort] [numServers]
java -cp target/paxos-1.0-jar-with-dependencies.jar edu.utexas.kkartal.chat.server.DefaultNode [serverId] [startPort] [numServers]

First compile the project with maven, compiles on chastity.cs.utexas.edu with 'mvn package'.
Then use the previous commands to run a client where [startPort] is the startPort of the servers and [numServers] is the number of servers you are running.
The second command is to run a server node where [serverId] is the server's id. [numServers] is the number of servers participating in the protocol (all servers that are alive or dead). and [startPort] is the listening port of the first server (the other servers will listen on ports startPort+id so make sure you pick an appropriate port.)
Alternately use the "runServers.sh" to run 3 servers on port 2777 (you can change this easily in the script) and save their output to serverX.txt. ***** Using this method you will have to manually kill off the servers because I dont know how to make good bash scripts. *****
and "runClient.sh" will run a client outputing to stdout and allowing you to input text on the command line. (client is coded really shoddily.... :( ).

That should be all you need to get it running!

About

Implementation of paxos as a distributed chat room back end. with a simple client.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published