Replies: 4 comments
-
|
oh dear, github sux at handling code blocks it seems.. I'll see if I can get it to work.. done. |
Beta Was this translation helpful? Give feedback.
-
|
And of course I just found out why (at least I think so): When I do that, and create a stream on the leafnode, it shows up in the cluster. But does it then have disk persistency on the leafnode if the connection to the cluster is lost? |
Beta Was this translation helpful? Give feedback.
-
|
na.. I'll start over |
Beta Was this translation helpful? Give feedback.
-
|
closing |
Beta Was this translation helpful? Give feedback.
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,
I'm obviously missing something here. I've set up a 3-node cluster with JetStream using TLS certs for internal communication in the cluster and I've also managed to connect a leaf node also using TLS certs.
The certificates all contain an email address(which is different from user to user) in their SAN-field which I map to a user account.
All certs are from the same CA.
So what I have is this:
3 clusternodes using certA for internal stuff and client connections.
1 leafnode using certB for connecting to the cluster.
I've also set the jetstream domain to the same value on all 4 hosts
All clusternodes connects fine to one another and the leafnode also connects to the cluster.
However, while a JetStream created on one clusternode is visible on all nodes, it doesn't show up on the leafnode.
I've set the 'jetstream domain' to the same value, and I can see in the logs that the leafnode is connected.
I've also tried to get the system account connected between the cluster and the leafnode -but I'm not sure that part works since it seems impossible to be able to specify a password for a user on the system_account when using TLS.
And these are my issues:
a) If I create a jetstream stream on the cluster, it doesn't show up on the leafnode.
b) If I create a jetstream stream on the leafnode, it doesn't show up on the cluster.
c) If I do a 'server report jetstream' on the leafnode, it only lists the leafnode.
d) If I do a 'server report jetstream' on the cluster, it only lists the cluster nodes.
BUT:
e) If I change the jetstream domain to be e.g. "nlx000013" on the cluster nodes and "notnlx000013" on the leafnode(using --js-domain), and I then create a jetstream stream on either the cluster or the leafnode, it shows up in both places. That is really weird.
Any advice is most welcome, the documentation is unfortunately very limited when it comes to using TLS.
Thanks in advance,
/tony
Configuration:
This is nats.conf on a cluster node:
And this is nats-leafnodes.conf on a cluster node:
And this is nats-auth.conf on a cluster node:
And nats.conf on the leafnode:
nats-leafnodes.conf on the leafnode:
nats-auth.conf on the leafnode:
Beta Was this translation helpful? Give feedback.
All reactions