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
  • Will not implement
  • Attach files
  • Ryan Curtis commented
    April 24, 2019 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.
  • Admin
    Brandon Iglesias commented
    September 09, 2019 19:16

    Hey Ryan,

    We are going to be removing Kademlia because its no longer going to be used for node discovery. there is a great discussion and design doc on this topic in our forum.