mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
Merge pull request #4615 from carlaKC/healthcheck-disabledisk
config: disable disk space health check by default
This commit is contained in:
commit
fe1d131ea4
11
config.go
11
config.go
@ -95,15 +95,16 @@ const (
|
||||
defaultChainBackoff = time.Second * 30
|
||||
defaultChainAttempts = 3
|
||||
|
||||
// By default, we will shutdown if less than 10% of disk space is
|
||||
// available. We allow a longer interval for disk space checks, because
|
||||
// this check is less likely to deteriorate quickly. However, we allow
|
||||
// fewer retries because this should not be a flakey check.
|
||||
// Set defaults for a health check which ensures that we have space
|
||||
// available on disk. Although this check is off by default so that we
|
||||
// avoid breaking any existing setups (particularly on mobile), we still
|
||||
// set the other default values so that the health check can be easily
|
||||
// enabled with sane defaults.
|
||||
defaultRequiredDisk = 0.1
|
||||
defaultDiskInterval = time.Hour * 12
|
||||
defaultDiskTimeout = time.Second * 5
|
||||
defaultDiskBackoff = time.Minute
|
||||
defaultDiskAttempts = 2
|
||||
defaultDiskAttempts = 0
|
||||
|
||||
// defaultRemoteMaxHtlcs specifies the default limit for maximum
|
||||
// concurrent HTLCs the remote party may add to commitment transactions.
|
||||
|
Loading…
Reference in New Issue
Block a user