Sharing a multi-GB library stalls MuWire
Created by: LoveIsGrief
I have a media library that's about pretty big (a few hundred GB). Trying to share that simply shuts down MuWire after a while. The number of connections drop to 1 and files.json
contains nothing.
I have a feeling files.json
is the bottleneck here. It might be better to either:
- use a DB (sqlite is slow af, maybe there are other file DBs)
- use a folder structure e.g :
files/<filepath hash 0-5>/<filepath hash 6-31>.json
files/<filepath hash>.json
files/<share root>/<path to file>/<filename>.json
Maybe I'm wrong.
Maybe it's unrelated, but I also go this error in my I2P router
ERROR [JobQueue 2/5] .client.ClientConnectionRunner: Disconnecting the client - Too many leaseset request fails