Skip to content
Snippets Groups Projects

Update README.md

Merged prajwal5 requested to merge prajwal5-main-patch-09824 into main
1 file
+ 22
1
Compare changes
  • Side-by-side
  • Inline
+ 22
1
@@ -60,4 +60,25 @@ go run test_client/test_client.go create
To delete the test logs
```
go run test_client/test_client.go delete
```
\ No newline at end of file
```
## CS 425 MP2
This repository also contains the code for running a failure detector system(peer director). It is written in go.
## Description
With this project, we orchestrate a p2p system of nodes that are able to detect when one of them fails. We use a SWIM style algorithm with a suspicion mechanism where each node pings its neighbours and checks if they're alive.
##Setup
Hostname must be provided to the peer.go file via a file called hostname.
## Usage
### To start Introducer
```go run peer/peer.go i```
### To start Peers
```go run peer/peer.go```
Once the process is up, we can use the cli following cli:
- join : to join the system
- leave : to leave the system
- list_mem : to display membership list
- list_self : to display node details
Loading