Replies: 1 comment
|
Cross-domain JetStream sourcing in a supercluster with leafnodes is a bit tricky. The leafnodes need to be able to reach the JetStream streams in the supercluster, and the way to do this is through account-level imports/exports of the JetStream API subjects. In your supercluster account config, you need to export the For the sourcing itself, when you create a stream on the leafnode that sources from the supercluster, the stream's Make sure the leafnode's credentials have permission to subscribe to the subjects being sourced. TLS cert-based auth should work fine here as long as the cert maps to the right user/account on both sides. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi.
** My setup:
All of the above seems to be working fine.
** What I'd like to do:
Now, I'd like to configure this so that:
** My issues:
I haven't been able to figure out how to do this, in the documentation and examples I've found either this is not done using TLS, og it's done using 'nsc' which I haven't been able to get to work when the NATS server uses TLS(and we also have a requirement to use plaintext(readable) config files for automation, so JWT is probably not going to be acceptable).
I've added some exports and imports on the clusternodeas and leafnodes, but I just end up with errors like:
So:
A) Can anyone point me to where I can find some documentation for setting this up? I've been through NATS by example, "jetstream-leaf-nodes-demo" and a bunch of other places without any luck at all.
B) I also find it close to impossible to figure out what all the different messages in the log about adding JetStream domain mapping etc. means. Any pointers to documentation explaining this is much appreciated.
C) Furthermore it's unclear to me if all 3 accounts should exist in the config files on all hosts, clusternodes and leafnodes -and if so how they should be configured.
Thanks in advance.
/tony
All reactions