Categorygithub.com/EliriaT/distributed-store
modulepackage
0.0.0-20240602111018-10961763d242
Repository: https://github.com/eliriat/distributed-store.git
Documentation: pkg.go.dev

# README

distributed-key-value-store

To compile and install the package:

go install -v

To run one sample node:

distributed-store -db-location=$PWD/my.db -http-addr=127.0.0.2:8080 -config-file=$PWD/sharding.toml -shard Chisinau

To run an example cluster you can run:

launch.sh

To run benchmarking, in the bench folder:

go run main.go -iterations=1000 -concurrency=16 -read-iterations=1000

To rebalance the key among the nodes, run for each node:

curl 'http://127.0.0.1:8080/purge'

Run tests:

go test ./...

go run main.go -db-location my.db -shard Chisinau

curl 'http://127.0.0.2:8080/set?key=utm&value=fcim' curl 'http://127.0.0.2:8080/get?key=utm'

docker build -t node .

docker run --rm -p 8080:8080 node

docker compose up

docker compose -f stats.yaml up

Index of shards should be consecutive!

db-location for badger db should be a path to a directory, for bold db a path to a file.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author