Skip to content

Latest commit

 

History

History
61 lines (52 loc) · 2.06 KB

File metadata and controls

61 lines (52 loc) · 2.06 KB

p2pHashtable

  • Final Project for FA24-CSE-40771 Distributed Systems
    • @ University of Notre Dame

Authors

Project Description

Usage

Environment

  • python stardard library
Python 3.10.14 | packaged by conda-forge | (main, Mar 20 2024, 12:45:18) [GCC 12.3.0] on linux

Parameters

  • Fingertable size: 16
  • Max key: 2**16 = 65536
    • can change FINGER_NUM in server/SpreadSheetServer.py and client/Test*.py

Run Server(s)

run the following command python3 ./server/SpreadSheetServer.py <project_name> <node_id>

  • at least three times (more is better), each in one terminal
  • with the same project_name (string)
  • with different node_id (int)

Run Tests

Test Basic Functions

you can edit the TestBasics.py to test the client operations

python3 ./client/TestBasics.py <project_name>

Test Throughputs

Test the throughput for each operation:

  • insert (insert 1000 random keys)
python3 ./client/TestInsert.py <project_name>
  • remove (remove 1000 random keys)
python3 ./client/TestRemove.py <project_name>
  • lookup (lookup 1000 random keys)
python3 ./client/TestLookUp.py <project_name>

Documents (Require access)