Skip to content
/ 3pc Public

Three-phase commit protocol; theoretical project

Notifications You must be signed in to change notification settings

matb4r/3pc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Three-phase commit protocol

Example usage:

go run coordinator/coordinator.go 172.17.0.1 5672 4 failure1
go run cohort/cohort.go 172.17.0.1 5672 
go run cohort/cohort.go 172.17.0.1 5672 abort
go run cohort/cohort.go 172.17.0.1 5672 failure2
go run cohort/cohort.go 172.17.0.1 5672 write /tmp/file.txt hello world 

Docker with shell:

docker build -t "matb4r:3pc" .
docker run -it matb4r:3pc /bin/sh

Docker exec:

docker build -t matb4r:coordinator coordinator
docker build -t "matb4r:cohort" cohort
docker run -it --network=host matb4r:coordinator 192.168.0.17 5672 1 failure2
docker run -it --network=host matb4r:cohort 192.168.0.17 5672 write /tmp/file.txt hello world

About

Three-phase commit protocol; theoretical project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages