storj/satellite/orders
Jessica Grebenschikov 89bdb20a62 storagenodedb/orders: select unsent satellite with expiration
In production we are seeing ~115 storage nodes (out of ~6,500) are not using the new SettlementWithWindow endpoint (but they are upgraded to > v1.12).

We analyzed data being reported by monkit for the nodes who were above version 1.11 but were not successfully submitting orders to the new endpoint.
The nodes fell into a few categories:
1. Always fail to list orders from the db; never get to try sending orders from the filestore
2. Successfully list/send orders from the db; never get to calling satellite endpoint for submitting filestore orders
3. Successfully list/send orders from the db; successfully list filestore orders, but satellite endpoint fails (with "unauthenticated" drpc error)

The code change here add the following to address these issues:
- modify the query for ordersDB.listUnsentBySatellite so that we no longer select expired orders from the unsent_orders table
- always process any orders that are in the ordersDB and also any orders stored in the filestore
- add monkit monitoring to filestore.ListUnsentBySatellite so that we can see the failures/successes

Change-Id: I0b473e5d75252e7ab5fa6b5c204ed260ab5094ec
2020-10-21 15:02:23 +00:00
..
encryptionkey_test.go satellite/orders: add EncryptionKey encryption 2020-07-13 16:10:19 +00:00
encryptionkey.go satellite/orders: add bucket id to order limit 2020-09-03 10:50:11 +03:00
endpoint_test.go satellite/orders: 3-phase rollout 2020-08-03 17:01:42 +00:00
endpoint.go satellite/orders: upgrade to phase 2 rollout ordersWithWindow 2020-10-15 21:20:19 +00:00
orders_test.go storagenodedb/orders: select unsent satellite with expiration 2020-10-21 15:02:23 +00:00
rollups_chore.go satellite/orders: Flush all pending bandwidth rollup writes on shutdown 2020-01-23 08:12:41 -07:00
rollups_write_cache_test.go satellite/orders: add settled amount to rollups write cache 2020-07-07 14:46:06 +00:00
rollups_write_cache.go all: fix dots 2020-07-16 14:58:28 +00:00
serials_test.go satellite: remove some unnecessary UTC() calls 2020-03-13 13:49:44 +00:00
service.go satellite/audit: use LastIPAndPort preferentially 2020-10-21 13:34:40 +00:00
signer_test.go satellite/orders: add bucket id to order limit 2020-09-03 10:50:11 +03:00
signer.go satellite/orders: add bucket id to order limit 2020-09-03 10:50:11 +03:00
window_endpoint_phase.go satellite/orders: 3-phase rollout 2020-08-03 17:01:42 +00:00