storj/satellite/accounting
Ivan Fraixedes ce26616647
satellite/accounting/live: Use Redis client directly
We have to adapt the live accounting to allow the packages that use it
to differentiate about errors for being able to ignore them and make our
satellite resilient to Redis downtime.

For differentiating errors we should make changes in the live accounting
but also in the storage/redis.Client, however, we may need to do some
dirty workarounds or break other parts of the implementation that
depends on it.

On the other hand we want to get rid of the storage/redis.Client because
it has more functionality that the one that we are using and some
process has been started to remove it.

Hence, we have refactored the live accounting to directly use the Redis
client library for later on (in a future commit) adapt the satellite for
being resilient to Redis downtime.

Last but not least, a test for expired bandwidth keys have been added
and with it a bug was spotted and fix it.

Change-Id: Ibd191522cd20f6a9a15e5ccb7beb83a678e530ff
2021-01-12 15:33:29 +01:00
..
live satellite/accounting/live: Use Redis client directly 2021-01-12 15:33:29 +01:00
projectbwcleanup satellite/accounting: fix build - time rounding 2020-08-31 09:37:13 -04:00
reportedrollup satellite/orders: add storagenode_bw_phase2 table and dont delete tallies for longer 2020-11-13 17:15:24 +00:00
rollup accounting: rollup test is broken for the hour before midnight UTC 2020-12-22 14:14:52 -07:00
tally all: golangci-lint v1.33.0 fixes (#3985) 2020-12-05 17:01:42 +01:00
billing_test.go satellite/orders: get bucketID from encrypted metadata in order instead of serial_numbers table 2020-12-01 15:29:32 +00:00
bucketstats.go satellite/metainfo: use metabase in loop 2020-09-01 10:06:16 +00:00
bucketusage.go all: fix dots 2020-07-16 14:58:28 +00:00
common.go satellite/accounting/live: Use Redis client directly 2021-01-12 15:33:29 +01:00
db_test.go satellite/accounting: account for old orders that can be submitted in satellite rollup 2020-11-18 14:46:00 -05:00
db.go satellite/accounting/live: Use Redis client directly 2021-01-12 15:33:29 +01:00
projectlimitcache_test.go satellite/satellitedb: make limits per default NULL 2020-10-14 20:28:16 +00:00
projectlimitcache.go satellite/accounting: add cache for getting project storage and bw limits 2020-09-25 16:28:49 +00:00
projectusage_test.go all: minor cleanups 2020-12-16 10:47:46 +00:00
projectusage.go satellite/accounting/live: Use Redis client directly 2021-01-12 15:33:29 +01:00