storj/satellite/repair/checker
Michal Niewrzal 5dc5f076c9 satellite/repair/checker: remove monitoring from fast methods
It looks that monikt monitoring can give high CPU overhead for
segments loop observer. With this code we are changing how monitoring
is initialized for observer methods. This optimization affects mainly
path where segment is healthy and doesn't require repair. Benchmark
is also added to show difference between old and new approach.

Benchmark against 'main':
name                                       old time/op    new time/op    delta
RemoteSegment/Cockroach/healthy_segment-8    8.55µs ± 4%    1.37µs ± 6%  -84.03%  (p=0.008 n=5+5)

name                                       old alloc/op   new alloc/op   delta
RemoteSegment/Cockroach/healthy_segment-8    2.63kB ± 0%    0.17kB ± 0%  -93.62%  (p=0.008 n=5+5)

name                                       old allocs/op  new allocs/op  delta
RemoteSegment/Cockroach/healthy_segment-8      54.0 ± 0%       8.0 ± 0%  -85.19%  (p=0.008 n=5+5)

Change-Id: Ie138eab0d59e436395b13f57bdfb11f9871d4c18
2022-10-03 12:15:03 +00:00
..
checker_test.go satellite/repair/checker: remove monitoring from fast methods 2022-10-03 12:15:03 +00:00
checker.go satellite/repair/checker: remove monitoring from fast methods 2022-10-03 12:15:03 +00:00
checkerstats.go satellite/repair/checker: move checker to segment loop 2021-07-01 13:51:56 +00:00
config.go satellite/repair/checker: buffer repair queue 2022-05-12 16:28:05 +00:00
online_test.go satellite/overlay: use ReadCache in Download/UploadSelectionCache 2022-07-12 13:52:48 +03:00
online.go satellite/repair/checker: remove monitoring from fast methods 2022-10-03 12:15:03 +00:00
override_test.go satellite/repair: Update repair override config to support multiple RS schemes. 2020-11-23 18:01:15 +00:00