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:
parent
97e20bc579
commit
38c7671acb
@ -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"`
|
||||
|
2
scripts/testdata/satellite-config.yaml.lock
vendored
2
scripts/testdata/satellite-config.yaml.lock
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user