Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: rqbit vs qBittorrent API - compatibility with qbit_manage? (would be awesome is possible) #135

Open
petalas opened this issue Jun 4, 2024 · 4 comments

Comments

@petalas
Copy link

petalas commented Jun 4, 2024

Just found this and it looks very promising!

I haven't had a chance to look at source code yet but wanted to ask, any chance this could be compatible with qbit_manage?

I guess would need tags and/or categories as a feature first but that should be easy compared to everything else.

I'm looking for a replacement for qBittorrent, ideally something that could saturate 10 or even 25 gigabit with a single instance but really don't want to give up qbit_manage.

Cheers!

@ikatson
Copy link
Owner

ikatson commented Jun 4, 2024

Any chance this could be compatible with qbit_manage

By a quick look, it's incompatible today, of course, because API wasn't modeled after any existing one, including qbittorrent.

It should be relatively easy to create new endpoints that mimic existing APIs, but of course, only for features that exist today (add,remove,pause,unpause).

You can look at http_api.rs for the existing API structure.

I'm looking for a replacement for qBittorrent, ideally something that could saturate 10 or even 25 gigabit with a single instance but really don't want to give up qbit_manage.

Did you test if rqbit can saturate 10 or 25 gigabit? Would be awesome if it can, but I've never tested on such a link.

@petalas
Copy link
Author

petalas commented Jun 4, 2024

It should be relatively easy to create new endpoints that mimic existing APIs, but of course, only for features that exist today (add,remove,pause,unpause).

Fair enough, makes sense 🙂

Did you test if rqbit can saturate 10 or 25 gigabit? Would be awesome if it can, but I've never tested on such a link.

I'll be happy to test if/when I rent a seedbox or colo a server, just trying to plan ahead.

Also, someone said they need two qBittorrent instances to maintain 1 Gbps with ~30 active torrents, and that "qBittorrent is multithreaded on IO (with mmap), but the network loop is single-threaded". Is rqbit fully multithreaded (or planned to be in the future at least)?

@ikatson
Copy link
Owner

ikatson commented Jun 4, 2024

Is rqbit fully multithreaded (or planned to be in the future at least)?

It's fully multi-threaded as to librqbit/rqbit itself.
There's a few tokio tasks per torrent and a task per peer, and they all run in the tokio (by default multi-threaded) runtime.
However I don't know how many event loops does tokio run under the hood - maybe it's only one.

@ikatson
Copy link
Owner

ikatson commented Jun 4, 2024

I've definitely seen it saturate 1gbps with 1 torrent. Didn't check 30 at a time though :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants