Skip to content

2 Gether Until Death is a super simple and naive way to have redundancy in a distributed setting. Written for fun and as a programming task for a job role

Notifications You must be signed in to change notification settings

chirag-parmar/2GUD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2GUD - 2 Gether Until Death

This was originally a programming task submission for a job role at zama.ai. Though in vain, I completely enjoyed the task. Read the report here

Setup nodes

cd node
docker build --tag zama-node .
cd ../client/uploadables
python ./create_dummies.py
cd ..
docker build --tag zama-client .
docker compose up -d
docker exec -it zama-client-1 /bin/sh

Client operations

The above command will start a shell inside the client node for you, then use the below operations to interact with other nodes.

upload dummy files to the servers

./client --upload=true

use the first merkle hash from the above printed log and run the query beloe to download the file

./client --merkle=<FIRST MERKLE HASH FROM PREVIOUS STEP> --ip 172.10.0.2 --index 12

kill 1st node and then alternate IPs from 172.10.0.5-7 (one of them must be the replicas turned primary)

./client --merkle=<FIRST MERKLE HASH FROM PREVIOUS STEP> --ip <IP> --index 12

About

2 Gether Until Death is a super simple and naive way to have redundancy in a distributed setting. Written for fun and as a programming task for a job role

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published