satellite/{gracefulexit,overlay}: enable as of system time queries
Change-Id: I2af5eb0e8a51fca7893ce07b78b5633be71dfef8
This commit is contained in:
parent
b582c974c3
commit
59e3b586e7
@ -393,8 +393,6 @@ func (planet *Planet) newSatellite(ctx context.Context, prefix string, index int
|
||||
// cfgstruct devDefaults. we need to make sure it's safe to remove
|
||||
// these lines and then remove them.
|
||||
config.Debug.Control = false
|
||||
config.Overlay.Node.AsOfSystemTime.Enabled = false
|
||||
config.Overlay.Node.AsOfSystemTime.DefaultInterval = 0
|
||||
config.Overlay.AuditHistory.OfflineDQEnabled = false
|
||||
config.Server.Config.Extensions.Revocation = false
|
||||
config.Orders.OrdersSemaphoreSize = 0
|
||||
@ -428,7 +426,6 @@ func (planet *Planet) newSatellite(ctx context.Context, prefix string, index int
|
||||
config.Console.DocumentationURL = ""
|
||||
config.Console.LinksharingURL = ""
|
||||
config.Console.PathwayOverviewEnabled = false
|
||||
config.GracefulExit.AsOfSystemTimeInterval = 0
|
||||
config.Compensation.Rates.AtRestGBHours = compensation.Rate{}
|
||||
config.Compensation.Rates.GetTB = compensation.Rate{}
|
||||
config.Compensation.Rates.GetRepairTB = compensation.Rate{}
|
||||
|
@ -39,6 +39,6 @@ type Config struct {
|
||||
MaxOrderLimitSendCount int `help:"maximum number of order limits a satellite sends to a node before marking piece transfer failed" default:"10" testDefault:"3"`
|
||||
NodeMinAgeInMonths int `help:"minimum age for a node on the network in order to initiate graceful exit" default:"6" testDefault:"0"`
|
||||
|
||||
AsOfSystemTimeInterval time.Duration `help:"interval for AS OF SYSTEM TIME clause (crdb specific) to read from db at a specific time in the past" default:"-10s"`
|
||||
AsOfSystemTimeInterval time.Duration `help:"interval for AS OF SYSTEM TIME clause (crdb specific) to read from db at a specific time in the past" default:"-10s" testDefault:"-1µs"`
|
||||
TransferQueueBatchSize int `help:"batch size (crdb specific) for deleting and adding items to the transfer queue" default:"1000"`
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ type Config struct {
|
||||
// AsOfSystemTimeConfig is a configuration struct to enable 'AS OF SYSTEM TIME' for CRDB queries.
|
||||
type AsOfSystemTimeConfig struct {
|
||||
Enabled bool `help:"enables the use of the AS OF SYSTEM TIME feature in CRDB" default:"true"`
|
||||
DefaultInterval time.Duration `help:"default duration for AS OF SYSTEM TIME" devDefault:"-1µs" releaseDefault:"-10s"`
|
||||
DefaultInterval time.Duration `help:"default duration for AS OF SYSTEM TIME" devDefault:"-1ms" releaseDefault:"-10s" testDefault:"-1µs"`
|
||||
}
|
||||
|
||||
// NodeSelectionConfig is a configuration struct to determine the minimum
|
||||
|
@ -32,6 +32,11 @@ var nodeSelectionConfig = overlay.NodeSelectionConfig{
|
||||
OnlineWindow: 4 * time.Hour,
|
||||
DistinctIP: true,
|
||||
MinimumDiskSpace: 100 * memory.MiB,
|
||||
|
||||
AsOfSystemTime: overlay.AsOfSystemTimeConfig{
|
||||
Enabled: true,
|
||||
DefaultInterval: -time.Microsecond,
|
||||
},
|
||||
}
|
||||
|
||||
const (
|
||||
|
Loading…
Reference in New Issue
Block a user