1
0
Fork 0

Support multiple join addresses

master
Philip O Toole 8 years ago
parent d3a5e58576
commit 57495a8457

@ -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) ## 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. - [PR #291](https://github.com/rqlite/rqlite/pull/291): Don't access Discovery Service if node already part of cluster.

@ -21,6 +21,7 @@ import (
"path/filepath" "path/filepath"
"runtime" "runtime"
"runtime/pprof" "runtime/pprof"
"strings"
"time" "time"
"github.com/rqlite/rqlite/auth" "github.com/rqlite/rqlite/auth"
@ -97,7 +98,7 @@ func init() {
flag.StringVar(&authFile, "auth", "", "Path to authentication and authorization file. If not set, not enabled") 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(&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(&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.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(&discoURL, "disco", "http://discovery.rqlite.com", "Set Discovery Service URL")
flag.StringVar(&discoID, "discoid", "", "Set Discovery ID. If not set, Discovery Service not used") flag.StringVar(&discoID, "discoid", "", "Set Discovery ID. If not set, Discovery Service not used")
@ -301,8 +302,8 @@ func determineJoinAddresses() ([]string, error) {
var addrs []string var addrs []string
if joinAddr != "" { if joinAddr != "" {
// An explicit join address is first priority. // Explicit join addresses are first priority.
addrs = append(addrs, joinAddr) addrs = strings.Split(joinAddr, ",")
} }
if discoID != "" { if discoID != "" {

Loading…
Cancel
Save