ee720040c9
Metainfo needs to know rate and burst limit to be able to limit users requests. We made cache for per project limiter but to make single instance we need to know about limits. So far we were doing direct DB call to get rate/burst limit for project but it's generating lots of DB requests and can be easily cached as we even have project limit cache. This change extends project limit cache with rate/burst limit and starts using this change while creating project limiter instance for metainfo. Because data size kept in project limit cache is quite small this change also bumps a bit default capacity of the cache. Fixes https://github.com/storj/storj/issues/5663 Change-Id: Icb42ec1632bfa0c9f74857b559083dcbd054d071 |
||
---|---|---|
.. | ||
live | ||
nodetally | ||
projectbwcleanup | ||
rollup | ||
rolluparchive | ||
tally | ||
billing_test.go | ||
bucketstats.go | ||
bucketusage.go | ||
common.go | ||
db_test.go | ||
db.go | ||
projectlimitcache_test.go | ||
projectlimitcache.go | ||
projectusage_test.go | ||
projectusage.go |