satellite/metainfo: enable segment limit by default
Change-Id: I26cc0bbd97d6cc2ffc96213788f261efb749d028
This commit is contained in:
parent
513ad99756
commit
6188c4c0dd
@ -520,6 +520,11 @@ func setUpBucketBandwidthAllocations(ctx *testcontext.Context, projectID uuid.UU
|
||||
func TestProjectUsageCustomLimit(t *testing.T) {
|
||||
testplanet.Run(t, testplanet.Config{
|
||||
SatelliteCount: 1, StorageNodeCount: 4, UplinkCount: 1,
|
||||
Reconfigure: testplanet.Reconfigure{
|
||||
Satellite: func(log *zap.Logger, index int, config *satellite.Config) {
|
||||
config.LiveAccounting.AsOfSystemInterval = 0
|
||||
},
|
||||
},
|
||||
}, func(t *testing.T, ctx *testcontext.Context, planet *testplanet.Planet) {
|
||||
satDB := planet.Satellites[0].DB
|
||||
acctDB := satDB.ProjectAccounting()
|
||||
|
@ -114,7 +114,7 @@ type RateLimiterConfig struct {
|
||||
// ProjectLimitConfig is a configuration struct for default project limits.
|
||||
type ProjectLimitConfig struct {
|
||||
MaxBuckets int `help:"max bucket count for a project." default:"100" testDefault:"10"`
|
||||
ValidateSegmentLimit bool `help:"whether segment limit validation is enabled." default:"false"`
|
||||
ValidateSegmentLimit bool `help:"whether segment limit validation is enabled." default:"true"`
|
||||
}
|
||||
|
||||
// Config is a configuration struct that is everything you need to start a metainfo.
|
||||
|
2
scripts/testdata/satellite-config.yaml.lock
vendored
2
scripts/testdata/satellite-config.yaml.lock
vendored
@ -536,7 +536,7 @@ identity.key-path: /root/.local/share/storj/identity/satellite/identity.key
|
||||
# metainfo.project-limits.max-buckets: 100
|
||||
|
||||
# whether segment limit validation is enabled.
|
||||
# metainfo.project-limits.validate-segment-limit: false
|
||||
# metainfo.project-limits.validate-segment-limit: true
|
||||
|
||||
# number of projects to cache.
|
||||
# metainfo.rate-limiter.cache-capacity: 10000
|
||||
|
Loading…
Reference in New Issue
Block a user