-
Notifications
You must be signed in to change notification settings - Fork 9
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
[Discussion] Multiple Invidious process using the same signature helper server #1
Comments
The issue is that we have many people that are running multiple Invidious processes at the same time, often the processes are even restarted very often. In a Docker context, it's difficult to bind each Invidious process to one individual signature server when you are running multiple Invidious processes. So currently that is not feasible to have multiple Invidious process for the same signature helper? |
I didn't make it clear, the server CAN handle multiple processes and connections, but if each invidious process tries to update the player in the server with |
I would have to make the server have its own scheduler for updating the player, rather than for Invidious to handle it, so that it'll reduce load on YouTube's servers. |
ok! to be fair people that are running multiple invidious processes are already using a lot of bandwidth. it's public instances that are major users of this. public instances are already transferring a lot of data between postgres and invidious anyway. same goes for the video streams. if it's like 10MB/s constant for me it's fine. I'm not sure what amount of data you would think? maybe I can do some testing. |
If the server has an outdated player ID: it'll download the YouTube video page that it has hardcoded right now ("Me at the zoo") and the base.js inside it (total: ~3.4MB) If the server already has an updated player ID: it'll only download the YouTube video page (total: ~1MB) Multiply that by the amount of processes doing |
That's what docker networks are for, or just have a different hostname configured per signer (and bind each invidious process to a single signer) Or am I missing something? |
Worst case if there are 4 processes doing Best case if there are 4 processes doing As i can see from the invidious implementation, it'll try to update every minute I think. |
That would make the bandwidth usage worse, and besides the program is written to handle multiple connections and requests at once |
Thank you for the insights, I now understand much more. (All of this is quite new to me, @SamantazFox knows a lot more than me 😃) I think it's great for me every minute! Maybe we can wait a little more to have the feedback from @SamantazFox |
I don't think that doing many force-update from different processes is a problem. We can always change the timing to two minutes (or more) inside invidious! Though getting track of that timestamp inside inv_sig_helper would be nice! @techmetx11 can you do that? |
Yes, I can. Thank you |
A new opcode has been implemented (
I just implemented TCP/IP support, maybe it'll help with this a little. |
@unixfox:
@techmetx11:
@unixfox:
@techmetx11
The text was updated successfully, but these errors were encountered: