engine-consistent-hashing-service
engine-consistent-hashing-service is designed to provide high available consistent-hashing service, and supported by HA policies (replication + oplog).
Get Started
Prerequisites
Installation
Clone
Setup
# build the binary
make build
# start the service
./engine-consistent-hashing-service --conf=conf/worker.json
Example
# add shard
curl -XPOST -d \
'{"shard": {"uuid": "192.168.0.11"}, "record": true, "replay": false, "sender": "SENDER_TYPE_CLIENT"}' \
http://localhost:18181/v1/shard
# list shards
curl http://localhost:18181/v1/shards
# delete shard
curl -XPOST -d \
'{"uuid": "192.168.0.11", "record": true, "replay": false, "sender": "SENDER_TYPE_CLIENT"}' \
http://localhost:18181/v1/delshard
# map key
curl -XPOST -d \
'{"key":{"key": "foo"}, "record": true, "replay": false, "sender": "SENDER_TYPE_CLIENT"}' \
http://localhost:18181/v1/key
Documentation
Api Design
Reference
Contributing
Step 1
Step 2
Step 3
Support
License
- This project is licensed under the MIT License - see the MIT license for details.