feat: dfdaemon add default healthy config (#1472)
Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
parent
abec6d3a84
commit
96e62223b4
|
|
@ -92,4 +92,5 @@ const (
|
||||||
DefaultPeerStartPort = 65000
|
DefaultPeerStartPort = 65000
|
||||||
DefaultUploadStartPort = 65002
|
DefaultUploadStartPort = 65002
|
||||||
DefaultObjectStorageStartPort = 65004
|
DefaultObjectStorageStartPort = 65004
|
||||||
|
DefaultHealthyStartPort = 40901
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -157,6 +157,22 @@ var peerHostConfig = func() *DaemonOption {
|
||||||
Multiplex: false,
|
Multiplex: false,
|
||||||
DiskGCThresholdPercent: 95,
|
DiskGCThresholdPercent: 95,
|
||||||
},
|
},
|
||||||
|
Health: &HealthOption{
|
||||||
|
ListenOption: ListenOption{
|
||||||
|
Security: SecurityOption{
|
||||||
|
Insecure: true,
|
||||||
|
TLSVerify: false,
|
||||||
|
},
|
||||||
|
TCPListen: &TCPListenOption{
|
||||||
|
Listen: net.IPv4zero.String(),
|
||||||
|
PortRange: TCPListenPortRange{
|
||||||
|
Start: DefaultHealthyStartPort,
|
||||||
|
End: DefaultEndPort,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Path: "/server/ping",
|
||||||
|
},
|
||||||
Reload: ReloadOption{
|
Reload: ReloadOption{
|
||||||
Interval: util.Duration{
|
Interval: util.Duration{
|
||||||
Duration: time.Minute,
|
Duration: time.Minute,
|
||||||
|
|
|
||||||
|
|
@ -156,6 +156,22 @@ var peerHostConfig = func() *DaemonOption {
|
||||||
Multiplex: false,
|
Multiplex: false,
|
||||||
DiskGCThresholdPercent: 95,
|
DiskGCThresholdPercent: 95,
|
||||||
},
|
},
|
||||||
|
Health: &HealthOption{
|
||||||
|
ListenOption: ListenOption{
|
||||||
|
Security: SecurityOption{
|
||||||
|
Insecure: true,
|
||||||
|
TLSVerify: false,
|
||||||
|
},
|
||||||
|
TCPListen: &TCPListenOption{
|
||||||
|
Listen: net.IPv4zero.String(),
|
||||||
|
PortRange: TCPListenPortRange{
|
||||||
|
Start: DefaultHealthyStartPort,
|
||||||
|
End: DefaultEndPort,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Path: "/server/ping",
|
||||||
|
},
|
||||||
Reload: ReloadOption{
|
Reload: ReloadOption{
|
||||||
Interval: util.Duration{
|
Interval: util.Duration{
|
||||||
Duration: time.Minute,
|
Duration: time.Minute,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue