The ability have each users torrents separate is needed.
Yeah, this is a good idea. I'm still not sure how best to handle multiple users...
I think it could be as simple as adding an user id to each torrent, then setting the basedir to /downloads/username or something like that, so when the user logs in it will display torrents that have there userid
What's wrong with a Flood instance per user?
@varyoo that would be a rtorrent and flood instance per user?
Yes of course! How would it be bad?
Very heavy on resources, terrible idea.
Very heavy on resources, terrible idea.
Please be more specific sir.
Requiring a separate instance of rtorrent & flood for each user does not scale at all and wastes excessive amounts of memory (rtorrent uses 40mb and flood 60mb when idle).
Thus the lowest tier from DigitalOcean would only be able to physically allow 5 users (with 0 memory left to do anything). The tier can easily support 20-30 users with a single instance and wouldn't ever have to worry about memory usage
@wopian how many torrents for those values?
0
Yea, separate instances are not the the way to go about this, like I said earlier, assigning the id of the user who added the torrent to the torrent in a db then calling all torrents with the logged in users id and display them, then we can have a single instance of rtorrent and flood.
A long time ago I think I suggested that multi-users be handled by multiple instances of rtorrent. I agree with @wopian that this is a bad idea.
I think true multiuser support would be cool, but would be a huge amount of work, and it's not a big priority for me. If someone else wants to take it on, then let's come to an agreement about how it should be implemented first, and then you can run with it.
[Edited as I actually read up above]
(summary of #518) What about multiple rtorrent instances and one flood server that can have multiple users that can each just connect to the right socket as an option?
It would allow more people to switch from their current setups and might just be easier to do. Having an option to switch between single-rtorrent and multi-rtorrent would be nicer, and would prevent some of the issues I think could arise when running one rtorrent instance for more users below.
I don't have good enough rtorrent knowledge to say this is exactly how it works, but it might be a start for some of the development.
I would personally definitely be in favour of being able to use multiple rotrrent instances, as it will just be easier for everyone, and I cannot see that much added benefit from using one single instance when it comes to resources. It might be more hustle than it's worth to develop around one single rtorrent instance.
The #549 PR is good, has anyone else tested it out yet? nudge nudge :)
Most helpful comment
Yea, separate instances are not the the way to go about this, like I said earlier, assigning the id of the user who added the torrent to the torrent in a db then calling all torrents with the logged in users id and display them, then we can have a single instance of rtorrent and flood.