Merge pull request #4615 from carlaKC/healthcheck-disabledisk

config: disable disk space health check by default
This commit is contained in:
Carla Kirk-Cohen
2020-09-15 20:31:40 +02:00
committed by GitHub

View File

@@ -95,15 +95,16 @@ const (
defaultChainBackoff = time.Second * 30 defaultChainBackoff = time.Second * 30
defaultChainAttempts = 3 defaultChainAttempts = 3
// By default, we will shutdown if less than 10% of disk space is // Set defaults for a health check which ensures that we have space
// available. We allow a longer interval for disk space checks, because // available on disk. Although this check is off by default so that we
// this check is less likely to deteriorate quickly. However, we allow // avoid breaking any existing setups (particularly on mobile), we still
// fewer retries because this should not be a flakey check. // set the other default values so that the health check can be easily
// enabled with sane defaults.
defaultRequiredDisk = 0.1 defaultRequiredDisk = 0.1
defaultDiskInterval = time.Hour * 12 defaultDiskInterval = time.Hour * 12
defaultDiskTimeout = time.Second * 5 defaultDiskTimeout = time.Second * 5
defaultDiskBackoff = time.Minute defaultDiskBackoff = time.Minute
defaultDiskAttempts = 2 defaultDiskAttempts = 0
// defaultRemoteMaxHtlcs specifies the default limit for maximum // defaultRemoteMaxHtlcs specifies the default limit for maximum
// concurrent HTLCs the remote party may add to commitment transactions. // concurrent HTLCs the remote party may add to commitment transactions.