-
Hello, In the reverse proxy example, the nginx and SN nodes are on the same host. In that case, can the The reason I ask this is because in this example, when starting SN, the P2P service name (which is usually expected to translate to the nginx IP address) is listed, but nginx does not listen on port 30303. swarm-learning/examples/reverse-proxy/mnist/run-all Lines 178 to 192 in 7772029 swarm-learning/examples/reverse-proxy/mnist/nginx.conf Lines 50 to 55 in 7772029 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This example is more like a quick start for understanding swarm learning with reverse proxy. As of now sn-p2p-service still uses the 30303 port for communication, having it on the Nginx is more like a placeholder within this example. Please refer to the note highlighted in read me files of these examples. Yes, when you have Nginx and SN running on two different machines then you have to change the configurations. The tables mentioned in the readme in such a scenario will be different. Please try with the Bind 9 configuration where only sn-p2p-service resolves to the host where SN is running. |
Beta Was this translation helpful? Give feedback.
-
Thank you.
|
Beta Was this translation helpful? Give feedback.
Thank you.
I have confirmed that it works by setting the following.
(It does not seem to work when the port number is not specified.)
--sn-p2p-service=<SN FQDN>:30303