mirror of
https://github.com/status-im/consul.git
synced 2025-02-23 02:48:19 +00:00
Merges config changes after rebase.
This commit is contained in:
parent
7255ddd086
commit
01d2452ea3
@ -466,17 +466,17 @@ func DefaultConfig() *Config {
|
|||||||
DNSConfig: DNSConfig{
|
DNSConfig: DNSConfig{
|
||||||
MaxStale: 5 * time.Second,
|
MaxStale: 5 * time.Second,
|
||||||
},
|
},
|
||||||
StatsitePrefix: "consul",
|
StatsitePrefix: "consul",
|
||||||
SyslogFacility: "LOCAL0",
|
SyslogFacility: "LOCAL0",
|
||||||
Protocol: consul.ProtocolVersionMax,
|
Protocol: consul.ProtocolVersionMax,
|
||||||
CheckUpdateInterval: 5 * time.Minute,
|
CheckUpdateInterval: 5 * time.Minute,
|
||||||
AEInterval: time.Minute,
|
AEInterval: time.Minute,
|
||||||
SyncCoordinateInterval: 15 * time.Second,
|
SyncCoordinateInterval: 15 * time.Second,
|
||||||
ACLTTL: 30 * time.Second,
|
ACLTTL: 30 * time.Second,
|
||||||
ACLDownPolicy: "extend-cache",
|
ACLDownPolicy: "extend-cache",
|
||||||
ACLDefaultPolicy: "allow",
|
ACLDefaultPolicy: "allow",
|
||||||
RetryInterval: 30 * time.Second,
|
RetryInterval: 30 * time.Second,
|
||||||
RetryIntervalWan: 30 * time.Second,
|
RetryIntervalWan: 30 * time.Second,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -254,21 +254,21 @@ func DefaultConfig() *Config {
|
|||||||
}
|
}
|
||||||
|
|
||||||
conf := &Config{
|
conf := &Config{
|
||||||
Datacenter: DefaultDC,
|
Datacenter: DefaultDC,
|
||||||
NodeName: hostname,
|
NodeName: hostname,
|
||||||
RPCAddr: DefaultRPCAddr,
|
RPCAddr: DefaultRPCAddr,
|
||||||
RaftConfig: raft.DefaultConfig(),
|
RaftConfig: raft.DefaultConfig(),
|
||||||
SerfLANConfig: serf.DefaultConfig(),
|
SerfLANConfig: serf.DefaultConfig(),
|
||||||
SerfWANConfig: serf.DefaultConfig(),
|
SerfWANConfig: serf.DefaultConfig(),
|
||||||
ReconcileInterval: 60 * time.Second,
|
ReconcileInterval: 60 * time.Second,
|
||||||
ProtocolVersion: ProtocolVersionMax,
|
ProtocolVersion: ProtocolVersionMax,
|
||||||
ACLTTL: 30 * time.Second,
|
ACLTTL: 30 * time.Second,
|
||||||
ACLDefaultPolicy: "allow",
|
ACLDefaultPolicy: "allow",
|
||||||
ACLDownPolicy: "extend-cache",
|
ACLDownPolicy: "extend-cache",
|
||||||
TombstoneTTL: 15 * time.Minute,
|
TombstoneTTL: 15 * time.Minute,
|
||||||
TombstoneTTLGranularity: 30 * time.Second,
|
TombstoneTTLGranularity: 30 * time.Second,
|
||||||
SessionTTLMin: 10 * time.Second,
|
SessionTTLMin: 10 * time.Second,
|
||||||
EnableCoordinates: true,
|
EnableCoordinates: true,
|
||||||
CoordinateUpdatePeriod: time.Duration(30) * time.Second,
|
CoordinateUpdatePeriod: time.Duration(30) * time.Second,
|
||||||
CoordinateUpdateMaxBatchSize: 1000,
|
CoordinateUpdateMaxBatchSize: 1000,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user