Move Kademlia Hash table file to memory or system drive instead of storing on node drive due to constant file access and small file size

  • adam lentz
  • Apr 5 2019
  • Attach files
  • Ryan Curtis commented
    24 Apr 02:36
    If file is stored in memory, there is risk of losing the hash table on every break in node uptime. This could be negated by flushing back to disk when safely stopping the node. Since the file size is very small, this would be my choice. The risk then would just be if the node crashes unexpectedly. Then you may have to rebuild the hash table from scratch. Perhaps checkpoints every 6 hours to disk or so could be used to defer this risk.