Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kkartaltepe/paxos-implementation
Implementation of paxos as a distributed chat room back end. with a simple client.
https://github.com/kkartaltepe/paxos-implementation
Last synced: 2 days ago
JSON representation
Implementation of paxos as a distributed chat room back end. with a simple client.
- Host: GitHub
- URL: https://github.com/kkartaltepe/paxos-implementation
- Owner: kkartaltepe
- Created: 2013-04-01T09:29:20.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-12-05T02:43:29.000Z (about 11 years ago)
- Last Synced: 2024-12-12T06:05:25.011Z (22 days ago)
- Language: Java
- Size: 176 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
README
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!