Skip to content

Python 3.7 implementation of an available, causally consistent, sharded, distributed key value store.

Notifications You must be signed in to change notification settings

arhartwe/Fault-Tolerant-Key-Value-Store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fault Tolerant Key-Value Store

Python 3.7 implementation of an available, causally consistent, sharded, distributed key value store

Docker Commands

Subnet Creation

docker network create --subnet=10.10.0.0/16 <SUBNET_NAME>

Image Build

docker build -t <ASGN3_IMG> <PATH_TO_ASSIGNMENT>

Run Containers

docker run --rm -p <EXPOSED_PORT>:8085 --net=<SUBNET_NAME> --ip=<IP_ADDRESS> --name=<REPLICA_NAME> -e SOCKET_ADDRESS=<SOCKET_ADDRESS> -e VIEW=<VIEWS> -e SHARD_COUNT=<SHARD_COUNT> <ASGN3_IMG>

Cleanup

If you would like to quickly stop all running containers:

docker stop $(docker ps -a -q)

If you would need to forcibly stop all containers:

docker kill $$(docker ps -q)

If you would like to quickly remove all containers (Note: this will remove ALL containers used and not used):

docker container rm $(docker container ls -aq)

Citations

Flask Quickstart

Flask + Docker

Flask + Docker Tutorial

Flask API

About

Python 3.7 implementation of an available, causally consistent, sharded, distributed key value store.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published