Hello.
I deployed the stan helm chart with the following values
stan:
replicas: 3
affinity: # I have only 2 nodes now
podAntiAffinity: {}
store:
cluster:
enabled: true
So, messages from nats-pub are not available with stan-pub:
~ # stan-sub -c nats -s nats foo &
~ # Connected to nats clusterID: [nats] clientID: [stan-sub]
Listening on [foo], clientID=[stan-sub], qgroup=[] durable=[]
[#1] Received: sequence:1 subject:"foo" data:"hello" timestamp:1618008322728517083
~ # stan-pub -c nats -s nats foo "Hello from stan-pub"
Published [foo] : 'Hello from stan-pub'
[#2] Received: sequence:2 subject:"foo" data:"Hello from stan-pub" timestamp:1618008403324659235
~ # nats-pub -s nats foo "Hello from nats-pub"
~ #
Could you please point me where I am wrong?
Why I need ->NATS -> NATS Streaming?
1. Fluentbit can send only to NATS
2. It is working in your video :-)
Also question - should we use NATS Streaming or JetStream?
Our requirements are:
1. Clustering for HA
2. Persistence to avoid data loss before we get messages from NATS. NATS/NATS Streaming /JetStream is a reliable buffer for messages.
3. We have several publishers (fluentbit) and only one subscriber (which consume NATS messages from external k8s cluster)
Thanks