clusterplex icon indicating copy to clipboard operation
clusterplex copied to clipboard

force certain IP to certain worker and vise versa

Open thecoolreaver opened this issue 2 years ago • 5 comments

I am looking at this project as a alt from Unicorn Transcoder. I had to modify code to allow me to set when certain IPs play content, it would go to certain transcoders/workers. This was done as my main server is in a datacenter but I have a copy of all the content locally at home and have a small system that transcodes locally instead of pulling from the internet.

Reviewing the code, I wouldn't know where to start or if this is possible but I am asking here to see if it be possible to build but based on the style I am not sure?

thecoolreaver avatar May 10 '22 07:05 thecoolreaver

Ah, I see. Now, I think there are a few differences with how Unicorn works, in this case. AFAIK, in Unicorn the client is forwarded to the worker and streams directly from there. Clusterplex works a bit differently. The transcode job is offloaded to the worker, but the content is streamed by Plex. If in your case when you mention main server you are referrin to PMS, then it might not be ideal since the content would still be streamed through your datacenter, yet transcoded locally. In the case of Clusterplex workers don't have a copy of the content, they actually access the central content through a network share shared by all. But it is an interesting take on how you manage media. I hadn't thought of that decentralized approach. Food for thought on how something like that can be implemented. If just routing the transcoding to a specific worker is all you need, I think something like that could be supported. Workers are chosen using a few strategies available, maybe a rules based one could be implemented. But I don't know if that would be enough in your case, if the content still gets streamed by PMS.

pabloromeo avatar May 10 '22 21:05 pabloromeo

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jun 10 '22 03:06 github-actions[bot]

Would it be possible for ClusterPlex to stream the content instead of having Plex handle it? If the workers have access to the media, then couldn't ClusterPlex handle all the heavy lifting?

obsidiangroup avatar Jun 19 '22 17:06 obsidiangroup

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jul 20 '22 03:07 github-actions[bot]

It would probably be possible, but it would require a considerable rearchitecture of how all of this works, I think. You'd probably need an architecture more similar to unicorn transcoder, where Plex redirects all traffic to workers directly. Not sure how they implement the actual streaming and have support for the different streaming mechanisms Plex clients use.

pabloromeo avatar Jul 21 '22 17:07 pabloromeo

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Aug 22 '22 03:08 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Sep 05 '22 04:09 github-actions[bot]