Skip to content

Commit

Permalink
Merge pull request rqlite#294 from rqlite/support_multiple_joins
Browse files Browse the repository at this point in the history
Support multiple join addresses
  • Loading branch information
otoolep committed Mar 13, 2017
2 parents 532a9bf + 57495a8 commit 1f3fe1d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,6 @@
## 3.13.0 (unreleased)
- [PR #294](https://github.com/rqlite/rqlite/pull/294): Support multiple explicit join addresses.

## 3.12.1 (March 2nd 2017)
- [PR #291](https://github.com/rqlite/rqlite/pull/291): Don't access Discovery Service if node already part of cluster.

Expand Down
7 changes: 4 additions & 3 deletions cmd/rqlited/main.go
Expand Up @@ -21,6 +21,7 @@ import (
"path/filepath"
"runtime"
"runtime/pprof"
"strings"
"time"

"github.com/rqlite/rqlite/auth"
Expand Down Expand Up @@ -97,7 +98,7 @@ func init() {
flag.StringVar(&authFile, "auth", "", "Path to authentication and authorization file. If not set, not enabled")
flag.StringVar(&raftAddr, "raft", "localhost:4002", "Raft communication bind address")
flag.StringVar(&raftAdv, "raftadv", "", "Advertised Raft communication address. If not set, same as Raft bind")
flag.StringVar(&joinAddr, "join", "", "Join a cluster via node at protocol://host:port")
flag.StringVar(&joinAddr, "join", "", "Comma-delimited list of nodes, through which a cluster can be joined (proto://host:port)")
flag.BoolVar(&noVerify, "noverify", false, "Skip verification of remote HTTPS cert when joining cluster")
flag.StringVar(&discoURL, "disco", "http://discovery.rqlite.com", "Set Discovery Service URL")
flag.StringVar(&discoID, "discoid", "", "Set Discovery ID. If not set, Discovery Service not used")
Expand Down Expand Up @@ -301,8 +302,8 @@ func determineJoinAddresses() ([]string, error) {

var addrs []string
if joinAddr != "" {
// An explicit join address is first priority.
addrs = append(addrs, joinAddr)
// Explicit join addresses are first priority.
addrs = strings.Split(joinAddr, ",")
}

if discoID != "" {
Expand Down

0 comments on commit 1f3fe1d

Please sign in to comment.