storj/satellite/gracefulexit
Egon Elbre cb781d66c7 satellite/overlay: optimize FindStorageNodes
Reduce the number of fields returned from the query.

Benchmark results in `satellite/overlay`:

benchstat before.txt after2.txt
name                               old time/op  new time/op  delta
SelectStorageNodes-32              7.85ms ± 1%  6.27ms ± 1%  -20.18%  (p=0.002 n=10+4)
SelectNewStorageNodes-32           8.21ms ± 1%  6.61ms ± 0%  -19.53%  (p=0.002 n=10+4)
SelectStorageNodesExclusion-32     17.2ms ± 1%  15.9ms ± 1%   -7.55%  (p=0.002 n=10+4)
SelectNewStorageNodesExclusion-32  17.8ms ± 2%  16.1ms ± 0%   -9.38%  (p=0.002 n=10+4)
FindStorageNodes-32                48.4ms ± 1%  45.1ms ± 0%   -6.69%  (p=0.002 n=10+4)
FindStorageNodesExclusion-32       79.2ms ± 1%  76.1ms ± 1%   -3.89%  (p=0.002 n=10+4)

Benchmark results from `satellite/overlay` after making them parallel:

benchstat before-parallel.txt after2-parallel.txt
name                               old time/op  new time/op  delta
SelectStorageNodes-32               548µs ± 1%   353µs ± 1%  -35.60%  (p=0.029 n=4+4)
SelectNewStorageNodes-32            562µs ± 0%   368µs ± 0%  -34.51%  (p=0.029 n=4+4)
SelectStorageNodesExclusion-32     1.02ms ± 1%  0.84ms ± 0%  -18.08%  (p=0.029 n=4+4)
SelectNewStorageNodesExclusion-32  1.03ms ± 1%  0.86ms ± 2%  -16.22%  (p=0.029 n=4+4)
FindStorageNodes-32                3.11ms ± 0%  2.79ms ± 1%  -10.27%  (p=0.029 n=4+4)
FindStorageNodesExclusion-32       4.75ms ± 0%  4.43ms ± 1%   -6.56%  (p=0.029 n=4+4)

Change-Id: I1d85e2764eb270f4c2b1998303ccfc1179d65b26
2020-03-30 18:36:23 +03:00
..
chore_test.go satellite: remove some unnecessary UTC() calls 2020-03-13 13:49:44 +00:00
chore.go satellite: add control panel 2020-01-30 08:06:43 -05:00
common.go satellite/gracefulexit: increase performance and tolerate higher error 2020-02-12 11:40:15 +00:00
db_test.go satellite: remove some unnecessary UTC() calls 2020-03-13 13:49:44 +00:00
db.go common: separate repository 2019-12-27 14:11:15 +02:00
endpoint_test.go private/testplanet: allow modifying created database 2020-03-27 19:14:48 +00:00
endpoint.go satellite/overlay: optimize FindStorageNodes 2020-03-30 18:36:23 +03:00
getnodes_test.go satellite: use IP for all uplink operations, use hostname for audit and repairs 2020-03-11 09:11:40 -07:00
pathcollector.go go.mod: update uplink 2020-02-21 16:08:12 +02:00
pending_test.go common: separate repository 2019-12-27 14:11:15 +02:00
pending.go common: separate repository 2019-12-27 14:11:15 +02:00
validation.go common: separate repository 2019-12-27 14:11:15 +02:00