satellite: bump capacity for API keys cache

We have lots of direct DB requests to get API keys. It should be handled
by cache but default value is very low at the moment.

Fixes https://github.com/storj/storj/issues/5665

Change-Id: I214ebebd6e397cacff80b2f36dc4a2eea388f93d
This commit is contained in:
Michal Niewrzal 2023-03-13 16:34:28 +01:00 committed by Storj Robot
parent 97e20bc579
commit 38c7671acb
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ type Satellite struct {
DatabaseOptions struct {
APIKeysCache struct {
Expiration time.Duration `help:"satellite database api key expiration" default:"60s"`
Capacity int `help:"satellite database api key lru capacity" default:"1000"`
Capacity int `help:"satellite database api key lru capacity" default:"10000"`
}
RevocationsCache struct {
Expiration time.Duration `help:"macaroon revocation cache expiration" default:"5m"`

View File

@ -383,7 +383,7 @@ contact.external-address: ""
# database: postgres://
# satellite database api key lru capacity
# database-options.api-keys-cache.capacity: 1000
# database-options.api-keys-cache.capacity: 10000
# satellite database api key expiration
# database-options.api-keys-cache.expiration: 1m0s