storj/satellite/accounting
Michal Niewrzal ee720040c9 satellite/metainfo: use project limit cache with limiter
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
2023-03-14 08:11:11 +00:00
..
live satellite/{accounting,redis}: Use ARGV in redis scripts 2022-09-28 14:43:00 +00:00
nodetally satellite/metabase/rangedloop: few additions for monitoring 2023-02-17 08:46:00 +00:00
projectbwcleanup satellite/satellitedb: create index for interval_day for project_bandwidth_daily_rollup 2023-02-03 10:02:58 +00:00
rollup storj: upgrade to use latest storj/common NodeAddress 2023-01-25 01:37:26 +00:00
rolluparchive satellites/orders: populate egress_dead in project_bandwidth_daily_rollups 2021-10-06 16:54:49 +00:00
tally satellite/accounting/nodetally: add ranged loop 2023-01-17 13:50:18 +01:00
billing_test.go satellite: use segment count for billing 2021-10-27 19:21:50 +00:00
bucketstats.go satellite/accounting: add metrics for total pending objects 2022-06-06 12:04:46 +00:00
bucketusage.go satellite/accounting/tally: use objects iterator instead metaloop 2021-07-20 15:52:18 +00:00
common.go all: fix error naming 2021-04-29 15:38:21 +03:00
db_test.go satellite/satellitedb: add interval_end_time column to accounting_rollups table 2022-07-27 17:53:27 +00:00
db.go satellite/metainfo: use project limit cache with limiter 2023-03-14 08:11:11 +00:00
projectlimitcache_test.go satellite/metainfo: use project limit cache with limiter 2023-03-14 08:11:11 +00:00
projectlimitcache.go satellite/metainfo: use project limit cache with limiter 2023-03-14 08:11:11 +00:00
projectusage_test.go satellite/metabase: add piece size calculation to segment 2023-02-22 11:04:02 +00:00
projectusage.go satellite/accounting: fix project limit cache usage 2023-03-10 14:42:38 +00:00