satellite/metainfo: reduce default user rate limit to 100

Currently the rate limit has kept per satellite api endpoint.
Since we run 9+ api endpoints in production, we do not need
a limit of 1000, since the intention was to allow 1000 total.
This change reduces the effective limit given 9 instances
down to 900, which should be close enough.

Change-Id: Ia579149ccc3a12e8febe0cfd5586b8a39de40f55
This commit is contained in:
Stefan Benten 2022-01-21 23:37:59 +01:00
parent 1c47163eee
commit e7e39fe628
No known key found for this signature in database
GPG Key ID: EF6B5218ACEF6057
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ func (rs *RSConfig) Set(s string) error {
// RateLimiterConfig is a configuration struct for endpoint rate limiting.
type RateLimiterConfig struct {
Enabled bool `help:"whether rate limiting is enabled." releaseDefault:"true" devDefault:"true"`
Rate float64 `help:"request rate per project per second." releaseDefault:"1000" devDefault:"100" testDefault:"1000"`
Rate float64 `help:"request rate per project per second." releaseDefault:"100" devDefault:"100" testDefault:"1000"`
CacheCapacity int `help:"number of projects to cache." releaseDefault:"10000" devDefault:"10" testDefault:"100"`
CacheExpiration time.Duration `help:"how long to cache the projects limiter." releaseDefault:"10m" devDefault:"10s"`
}

View File

@ -506,7 +506,7 @@ identity.key-path: /root/.local/share/storj/identity/satellite/identity.key
# metainfo.rate-limiter.enabled: true
# request rate per project per second.
# metainfo.rate-limiter.rate: 1000
# metainfo.rate-limiter.rate: 100
# redundancy scheme configuration in the format k/m/o/n-sharesize
# metainfo.rs: 29/35/80/110-256 B