storj/satellite/metainfo
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
..
expireddeletion satellite/gc/sender: new service to send retain filters 2022-09-20 11:49:40 +00:00
piecedeletion satellite/{metabase/rangedloop,metainfo/piecedeletion}: fix flaky tests 2023-02-09 16:07:00 +02:00
pointerverification satellite/metabase: add piece size calculation to segment 2023-02-22 11:04:02 +00:00
attribution_test.go satellite: remove rewards package 2023-01-31 11:46:50 +00:00
attribution.go satellite: remove rewards package 2023-01-31 11:46:50 +00:00
batch_test.go satellite/metainfo: add missing metadata validation 2022-08-23 16:56:45 +02:00
batch.go satellite/metainfo: endpoint cleanup 2021-08-26 09:52:38 +00:00
config_test.go Merge 'master' branch 2020-11-10 11:58:59 +00:00
config.go satellite/metainfo: enable multiple versions fix by default 2023-01-26 09:35:20 +00:00
endpoint_bucket_test.go satellite/metainfo: ListBuckets extended with value attribution assigned to bucket 2022-07-18 18:23:50 +00:00
endpoint_bucket.go satellite/metainfo: ListBuckets extended with value attribution assigned to bucket 2022-07-18 18:23:50 +00:00
endpoint_object_test.go go.mod: bump storj.io/uplink 2023-02-21 16:09:19 +00:00
endpoint_object.go satellite/metainfo: fix duplicates while listing pending objects 2023-02-15 16:52:53 +00:00
endpoint_segment_test.go satellite/metainfo: RetryBeginSegmentPieces RPC implementation 2023-01-27 15:04:59 +00:00
endpoint_segment.go satellite/metabase: add piece size calculation to segment 2023-02-22 11:04:02 +00:00
endpoint_test.go satellite/metainfo: add missing metadata validation 2022-08-23 16:56:45 +02:00
endpoint.go satellite/metainfo: use project limit cache with limiter 2023-03-14 08:11:11 +00:00
signing.go satellite/metainfo: use deterministic signing for satStreamID 2021-01-19 15:56:29 +00:00
validation_test.go satellite: use evenkit instead of evenstat/top endpoint 2022-10-24 11:45:12 +02:00
validation.go satellite/metainfo: use project limit cache with limiter 2023-03-14 08:11:11 +00:00
version_collector_test.go all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
version_collector.go satellite/metainfo: add storj-downloader as a known user agent 2022-11-17 16:03:54 +00:00