Skip to content

support an array of url for a single leafnode remote #1063

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
ripienaar opened this issue Jul 9, 2019 · 0 comments · Fixed by #1069
Closed
1 task done

support an array of url for a single leafnode remote #1063

ripienaar opened this issue Jul 9, 2019 · 0 comments · Fixed by #1069
Assignees

Comments

@ripienaar
Copy link
Contributor

  • Feature Request or Change Proposal

Use Case:

Today leafnodes take a single seed url and then rely on discovery to find the rest of the cluster for failover. This dynamic nature is problematic for more enterprise orientated setups or just people who prefer clarity in configuration == reality. Further if the seed node is down for maintenance or due to failure its trouble and would then require config changes etc.

Gateways accept both a url and urls, the intention is that you'd give it a number of remote hosts in the same single leafnode remote and have it try to connect to any of those.

Proposed Change:

Support this:

leafnodes {
    remotes = [ 
        { urls: nats-leaf://r2:4000, nats-leaf://r1:4000, 
          credentials: /Users/synadia/.nkeys/O/accounts/A/users/leaf.creds 
        },
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants