Workarounds to mask port usage due to active queue? #31
-
#25 (reply in thread) and #27 (comment) make me really optimistic and excited about using With an active queue, the servers dial directly into the active queue daemon instead of the actual client, right? What if the active queue were to run inside a VM or Docker/Singularity container? Wouldn't that create a whole new IP address and port range without risk of conflicting with other users? Is there a simpler and more platform-independent and idiomatic way to give the active queue daemon complete freedom and flexibility with ports? NAT and port forwarding seem like similar concepts but perhaps not helpful here. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
On the bright side, the real endgame is the cloud. If the client and active queue run in their own instance in a VPC, port usage will not be a problem. |
Beta Was this translation helpful? Give feedback.
-
This is now the definitive answer. Suggestion straight from Garrett D'Amore, author of NNG. Instead of specifying a TCP URL, specify a Websocket URL starting As of fce31f9, I have implemented auto-incrementing the path numerically so we only need to supply one URL as before e.g. daemons("ws://:5555", nodes = 4) Or specify a vector and use something more descriptive: daemons(c("ws://:5555/cpuserver", "ws://:5555/gpuserver"), nodes = 2) Apparently what we were previously considering to solve this issue was, quote "similar to the old RPCBIND approach used 30 years ago"!! |
Beta Was this translation helpful? Give feedback.
This is now the definitive answer. Suggestion straight from Garrett D'Amore, author of NNG.
Instead of specifying a TCP URL, specify a Websocket URL starting
ws://
. As we can append arbitrary paths to ws addresses, suddenly we have no limits on the number of connections over one port!As of fce31f9, I have implemented auto-incrementing the path numerically so we only need to supply one URL as before e.g.
Or specify a vector and use something more descriptive:
Apparently what we were previously considering to solve this issue was, quote "similar to the old RPCBIND approach used 30 years a…