Merge branch 'master' of https://github.com/influxdb/influxdb into group-by
commit
1ad79470c6
|
@ -93,7 +93,7 @@ join-cluster creates a completely new node that will attempt to join an existing
|
||||||
'combined' means it will do both. The default is 'combined'. In role other than
|
'combined' means it will do both. The default is 'combined'. In role other than
|
||||||
these three is invalid.
|
these three is invalid.
|
||||||
|
|
||||||
-seedservers <servers>
|
-seed-servers <servers>
|
||||||
Set the list of servers the node should contact, to join the cluster. This
|
Set the list of servers the node should contact, to join the cluster. This
|
||||||
should be comma-delimited list of servers, in the form host:port. This option
|
should be comma-delimited list of servers, in the form host:port. This option
|
||||||
is REQUIRED.
|
is REQUIRED.
|
||||||
|
|
|
@ -130,14 +130,14 @@ func execRun(args []string) {
|
||||||
// Start up HTTP server(s)
|
// Start up HTTP server(s)
|
||||||
if config.ApiHTTPListenAddr() != config.RaftListenAddr() {
|
if config.ApiHTTPListenAddr() != config.RaftListenAddr() {
|
||||||
if serverHandler != nil {
|
if serverHandler != nil {
|
||||||
func() { log.Fatal(http.ListenAndServe(config.ApiHTTPListenAddr(), serverHandler)) }()
|
go func() { log.Fatal(http.ListenAndServe(config.ApiHTTPListenAddr(), serverHandler)) }()
|
||||||
}
|
}
|
||||||
if brokerHandler != nil {
|
if brokerHandler != nil {
|
||||||
func() { log.Fatal(http.ListenAndServe(config.RaftListenAddr(), brokerHandler)) }()
|
go func() { log.Fatal(http.ListenAndServe(config.RaftListenAddr(), brokerHandler)) }()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
h := NewHandler(brokerHandler, serverHandler)
|
h := NewHandler(brokerHandler, serverHandler)
|
||||||
func() { log.Fatal(http.ListenAndServe(config.ApiHTTPListenAddr(), h)) }()
|
go func() { log.Fatal(http.ListenAndServe(config.ApiHTTPListenAddr(), h)) }()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wait indefinitely.
|
// Wait indefinitely.
|
||||||
|
@ -157,7 +157,7 @@ use Distributed Consensus, but is otherwise fully-functional.
|
||||||
-hostname <name>
|
-hostname <name>
|
||||||
Override the hostname, the 'hostname' configuration option will be overridden.
|
Override the hostname, the 'hostname' configuration option will be overridden.
|
||||||
|
|
||||||
-seedservers <servers>
|
-seed-servers <servers>
|
||||||
If joining a cluster, overrides any previously configured or discovered
|
If joining a cluster, overrides any previously configured or discovered
|
||||||
Data node seed servers.
|
Data node seed servers.
|
||||||
|
|
||||||
|
|
|
@ -377,7 +377,7 @@ func (l *Log) readConfig() (*Config, error) {
|
||||||
// Marshal file to a config type.
|
// Marshal file to a config type.
|
||||||
var config *Config
|
var config *Config
|
||||||
if f != nil {
|
if f != nil {
|
||||||
config := &Config{}
|
config = &Config{}
|
||||||
if err := NewConfigDecoder(f).Decode(config); err != nil {
|
if err := NewConfigDecoder(f).Decode(config); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue