satellite/metainfo: enable segment limit by default

Change-Id: I26cc0bbd97d6cc2ffc96213788f261efb749d028
This commit is contained in:
Michał Niewrzał 2022-04-13 15:40:59 +02:00 committed by Michal Niewrzal
parent 513ad99756
commit 6188c4c0dd
3 changed files with 7 additions and 2 deletions

View File

@ -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()

View File

@ -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.

View File

@ -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