Hello Dojo,
Customer had a specific question about this transition and thought it best to post it here. Currently they are opening ports 4222,6222,9090 for NATs and upgrade to 10.2 but were curious about the new ports required by Jetstream for the future and any dates for this.
"I did a quick Google and noticed nats-streaming-server seems to be deprecated per next June, to be replaced by JetStream. Is the switch to JetStream already scheduled for Dataminer and would this perhaps involve different ports?"
https://github.com/nats-io/nats-streaming-server
They are also wondering what are the risks of not having ports 6222 and 9090 open to NATs in a DMS?
Thank you in advance for any info and kind regards,
Hi Ryan,
Dataminer doesn't actually use the streaming part of nats-streaming-server (STAN) anymore.
Since we don't use STAN (anymore), port 6222 shouldn't be necessary anymore. However, port 4222 will still be necessary, as well as port 9090.
These ports are used for general communication and authentication, respectively.
UPDATE: It seems I've had it wrong. I was convinced port 6222 was only used by RAFT but this is incorrect. NATS Clustering requires the additional port.
Summary:
- Port 4222: Used for regular communication (data transfer, needs to be accessible to all nodes in the same cluster)
- Port 6222: Used for clustering (only required in a cluster, needs to be accessible to all nodes in the same cluster)
- Port 8222: Monitoring port (Does not need to be exposed, only for management/monitoring purposes)
- Port 9090: Used by nats-account-server (NAS) to facilitate authentication on NATS. Needs to be accessible to all nodes in the same cluster.
Apologies for the misinformation, which I believed to be true.
There are already plans in action to replace our current usage of NATS with the newest version available and have support for JetStream as well.
However, there is no targeted release version for this functionality yet.