Skip to content

Commit

Permalink
Add join config option back
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilder committed Feb 18, 2016
1 parent 886a620 commit 04ba794
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions services/meta/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type Config struct {

// RemoteHostname is the hostname portion to use when registering meta node
// addresses. This hostname must be resolvable from other nodes.
RemoteHostname string
RemoteHostname string `toml:"-"`

// this is deprecated. Should use the address from run/config.go
BindAddress string `toml:"bind-address"`
Expand All @@ -61,7 +61,7 @@ type Config struct {
HTTPSCertificate string `toml:"https-certificate"`

// JoinPeers if specified gives other metastore servers to join this server to the cluster
JoinPeers []string `toml:"-"`
JoinPeers []string `toml:"join"`
RetentionAutoCreate bool `toml:"retention-autocreate"`
ElectionTimeout toml.Duration `toml:"election-timeout"`
HeartbeatTimeout toml.Duration `toml:"heartbeat-timeout"`
Expand Down Expand Up @@ -89,6 +89,7 @@ func NewConfig() *Config {
RaftPromotionEnabled: DefaultRaftPromotionEnabled,
LeaseDuration: toml.Duration(DefaultLeaseDuration),
LoggingEnabled: DefaultLoggingEnabled,
JoinPeers: []string{},
}
}

Expand Down

0 comments on commit 04ba794

Please sign in to comment.