Distributed Database

Consistent Hashing

How-to-run:

  1. Bootstrap Name Server side:
    1). $ cd BootstrapNameServer
    2). $ bash run.sh

  2. Name Server side:
    1). $ cd NameServer
    2). Change server ID and port in nsconfig_example.txt.
    3). $ bash run.sh

  3. Run command:
    It can successfully complete lookup key, insert key value, delete key in BNS side, and complete enter, exit in NS side. And you can use command “info” to see detailed information of the server.