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
ips are changing #123
Comments
Hey! I should actually explain it better in the docs. The PMS_IP is actually sent over to the orchestrator and it's used by the worker to later report transcode status back to the actual Plex server. So technically it's just the location at where to report back, and in the case of Swarm, that can be any node in the cluster. It's used to replace a hardcoded 127.0.0.1 specified by Plex in the transcode instructions. Come to think of it, maybe I can find a workaround so that this setting isn't even mandatory and resolved internally to the IP assigned by docker to the "plex" service. And just have the PMS_IP as an override in case someone runs Plex OUTSIDE of the cluster. In fact, if you want to give it a shot, just set the PMS_IP value to the string "plex". Since "plex" is the service name in the stack it should resolve to it's IP. In my case I'm doing it a bit differently: I run Keepalived as a replicated service on all nodes in order to have a virtual floating IP across the cluster with a single fixed IP from my real LAN. But that isn't necessary. That's the IP I referred to as "Cluster-IP", a virtual IP from your network that points to any available node at any given time. That's just for high availability in case any node is down temporarily. Let me know if this helps |
If u r right regarding to replacing IPs with Service names, this should be the recommended YAML-File.
|
I changed now all services to: start_period: 600s |
Yeah, it looked like the healthcheck for your plex service was failing. It might have been that on first run Plex takes longer to start up and is was being shut down by the orchestrator. After your question I did try using "plex" as an IP, and in fact the worker transcoding did work and reported back, however, there might be issues with plex itself rejecting that network traffic and playback would appear to be waiting. Plex is a bit restrictive with what source IPs can send status posts to it, it seems, and you'll have to set up proper network ranges for both external traffic as well as docker ip ranges for it not to reject the status updates from the worker. There's info regarding that in the README. |
Thank u. Is reference plex-orchestrator as hostname working? I have currently some iptables problems to fix, so it would be glad to know, that this is not the issue. |
You mean for ORCHESTRATOR_URL? Yeah, I see no reason why that wouldn't work just using the service name. That's how I have it running. That's just docker resolving service names to internal IPs, nothing specific being done by the app itself. |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Hello,
please don't judge me that hard, in case this is the wrong place to ask. How do I choose the right IPs? Everytime I start the stack, new subnet and new IPs r assigned. what is the best way to assign IPs? The ip of which container schould be specified as "pms ip"? What is a Cluster-IP? Is it the first ip of the subnet?
The text was updated successfully, but these errors were encountered: