-
Notifications
You must be signed in to change notification settings - Fork 10
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
ability to combine 2 or more line/ providers #137
Comments
I dont understand what you mean. Can you describe it a little more . |
let say i have two m3u lines/ accounts from the same provider (either same domain or different domain) and they both have 1 cxn allow to each line. i would like the ability to group then together and then have the proxy load balance across them base on the defined allowed cxn. so in this case if 1 user is using 1 cxn from line 1, next user that starts watching will use the next line/cxn available from the next line and so on. |
let me know if u still confuse and i will try to break it down more |
i have some more ideas about this feature request, i will add it soon |
It is certainly a lot of effort to implement, but in my view, the best approach for this feature request would be the following implementation:
This implementation would ensure high availability and a smooth user experience while allowing for flexibility and manual intervention where needed. |
yes this all are good ideas. i still need to break down mines. btw this is related to that discussion i mentioned and the webui admin idea is a whole another discussion i wanted to tell you about but i don't want to overwhelm or push my luck with you, so u know one thing at the time. |
@jojo141185 my comment might be a little off because I thought it was @euzu who replied. |
@jojo141185 No, any help and contributions are welcome. The more people get involved, the better. So please don’t hesitate to share your opinion. |
I have started working on this feature. The initial implementation will support multiple credentials for the same provider. This means that the content remains identical across these credentials and is fetched only once. In the first step, we are assuming that the content is identical across different credentials for the same provider. This is because we currently lack the capability to determine whether the content provided by different providers might overlap or be identical. Addressing this challenge is a complex task and will require further investigation in the future. This feature introduces "input aliases" for the same provider, assuming the content is identical but accessed using different credentials. This approach simplifies access management while ensuring that content is fetched only once, thereby improving efficiency. @aniel300 and @jojo141185 any suggestions or improvements to this initial draft are highly welcome! - sources:
- inputs:
- url: 'http://provider.net'
name: my_provider
username: xyz
password: secret1
aliases:
- url: 'http://provider.net'
username: abcd
password: secret2
- url: 'http://provider.net'
username: defg
password: secret3
targets:
- name: test |
@euzu u are cooking. am sending u a edit version of my latest break down when it comes to this via discord as i have new ideas and concerns. |
@euzu I don't know if @aniel300 had the same thought when he opened this feature request. With my contribution I just wanted to try to describe and concretize this feature from my point of view, as there seem to have been open questions and unclarities for some time. |
@jojo141185 i don't need anything done in the ui except for maybe fallbacks adjustments since i cant come up with a good way to do that via config. i actually prefer to do as much initial manual work in the config that way it can pay up in the long run. since u could change providers but your pre done work should work for the most part across provider and if anything, few tweaks might be need but that is about it. i have sent him a new edited broken-down logic on this and am waiting to see what he says. send me an invite on discord and i will send it to u. |
@aniel300 here your ideas url: '/xxx.txt'
priority: 1,2,
max_connections_per_line: option 1,5,3
|
Based on our discussions, I’ve implemented an initial version of a Provider Manager. The core idea behind this implementation is to keep the initial input configuration unchanged while extending it with the capability to add backup providers. To prioritize provider selection, we can fine-tune the configuration using max_connections and priority. I’ve described in the method documentation how providers are selected. It’s important to note that the main input configuration and alias structure do not imply that the main input config acts as a master. Provider selection is solely based on priority. While the current structure may not seem like the perfect fit, it needs to be maintained to ensure compatibility with the old configuration style, where one provider corresponds to one input by default. If you have any suggestions on how to improve this approach, feel free to share your thoughts.
@jojo141185 currently it is only for 1:1 same providers. I need to think about howto wrap channel based provider mappings in this structure. If you have any suggestions to the current implementation please let me know. |
ability to combine 2 or more line/ providers using either same domain or different domains
The text was updated successfully, but these errors were encountered: