Skip to content

Source stream form multiple leaf nodes #5889

Closed Answered by jnmoyne
ZarkoRunjevac asked this question in Q&A
Discussion options

You must be logged in to vote
  1. You can update a stream's configuration to add or remove sources at any time.
    Using the nats CLI tool one easy way to do that is through using JSON config files. For example if you have a stream 'c' that sources a stream 'a' and wanted to add a sourcing for stream 'b' to 'c'.

First get the current config for 'c'
nats stream info c --json | jq .config > c-config.json

{
  "name": "c",
  "retention": "limits",
  "max_consumers": -1,
  "max_msgs_per_subject": -1,
  "max_msgs": -1,
  "max_bytes": -1,
  "max_age": 0,
  "max_msg_size": -1,
  "storage": "file",
  "discard": "old",
  "num_replicas": 1,
  "duplicate_window": 120000000000,
  "sources": [
    {
      "name": "a"
    }
  ],
  "seale…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@ZarkoRunjevac
Comment options

@derekcollison
Comment options

@ZarkoRunjevac
Comment options

Answer selected by jnmoyne
Comment options

You must be logged in to vote
1 reply
@derekcollison
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants