storj/scripts
Jeff Wendling 78c6d5bb32 satellite/satellitedb: reported_serials table for processing orders
this commit introduces the reported_serials table. its purpose is
to allow for blind writes into it as nodes report in so that we have
minimal contention. in order to continue to accurately account for
used bandwidth, though, we cannot immediately add the settled amount.
if we did, we would have to give up on blind writes.

the table's primary key is structured precisely so that we can quickly
find expired orders and so that we maximally benefit from rocksdb
path prefix compression. we do this by rounding the expires at time
forward to the next day, effectively giving us storagenode petnames
for free. and since there's no secondary index or foreign key
constraints, this design should use significantly less space than
the current used_serials table while also reducing contention.

after inserting the orders into the table, we have a chore that
periodically consumes all of the expired orders in it and inserts
them into the existing rollups tables. this is as if we changed
the nodes to report as the order expired rather than as soon as
possible, so the belief in correctness of the refactor is higher.

since we are able to process large batches of orders (typically
a day's worth), we can use the code to maximally batch inserts into
the rollup tables to make inserts as friendly as possible to
cockroach.

Change-Id: I25d609ca2679b8331979184f16c6d46d4f74c1a6
2020-01-15 19:21:21 -07:00
..
testdata satellite/satellitedb: reported_serials table for processing orders 2020-01-15 19:21:21 -07:00
tests scripts/tests/rollingupgrade: create new test files for final upload 2020-01-06 12:31:12 -05:00
waitlist Waitlist script (#573) 2018-11-06 18:43:20 +01:00
benchmark.sh Adding benchmarking script that reports response times. 2019-12-16 16:34:01 -05:00
cert-gating.sh Delete Bootstrap and Kademlia (#2974) 2019-10-04 16:48:41 -04:00
check-satellite-config-lock.sh Update Notification Text to new process (#2120) 2019-06-04 22:43:07 -04:00
deploy-storagenode.sh storagenode/buildscript: Overwrite existing docker manifest file (#2934) 2019-09-04 18:55:03 +02:00
deploy-watchtower.sh Script for deploying the Docker manifest for watchtower (#3015) 2019-09-12 17:38:48 +03:00
gerrit-cla.py gerrit: add cla 2019-06-19 18:28:53 +00:00
install-awscli.sh Travis with go1.11 and modules (#479) 2018-10-16 20:02:00 +03:00
pg-to-crdb.go scripts: Add script that filters postgres plaintext backup to cockroachdb compat. 2019-12-16 22:11:16 +00:00
postgres-dev.sh scripts: use postgres script with all tests (#3404) 2019-10-31 07:03:54 -07:00
release.sh private: rename internal to private (#3573) 2019-11-14 21:46:15 +02:00
tag-release.sh release/script: allow RC release tags 2020-01-07 10:43:03 +00:00
test-aio.sh server side macaroons (#1945) 2019-05-24 10:51:27 -06:00
test-aws-benchmark.sh aws s3 performance tests (#2060) 2019-05-28 11:46:58 -07:00
test-backwards.sh jenkins: use lower segment size for back comp test (#3097) 2019-11-06 05:53:38 -08:00
test-certificates.sh fix certificates auth export command (#3110) 2019-09-24 10:38:18 -06:00
test-network-stalls.go common: separate repository 2019-12-27 14:11:15 +02:00
test-sim-aws.sh jenkins: run storj-sim integration tests with cockraochdb (#3723) 2019-12-10 11:18:02 -08:00
test-sim-backwards-dev.sh scripts: use postgres script with all tests (#3404) 2019-10-31 07:03:54 -07:00
test-sim-backwards.sh storagenode/trust: wire up list into pool 2019-12-13 20:32:50 +00:00
test-sim-benchmark.sh aws s3 performance tests (#2060) 2019-05-28 11:46:58 -07:00
test-sim-dev.sh scripts: use postgres script with all tests (#3404) 2019-10-31 07:03:54 -07:00
test-sim.sh all: remove code to default to grpc 2019-12-20 20:12:04 +02:00
test-uplink.sh cmd/uplink: import imports 'access' into existing configuration 2020-01-14 13:18:48 +00:00
update-satellite-config-lock.sh scripts: Fix warn message update sat config lock (#3029) 2019-09-12 18:10:22 +02:00
utils.sh cmd/certificates: auth export improvements & certificates test script (#2897) 2019-09-04 19:58:38 +02:00