storj/cmd
paul cannon 1951450c57 cmd/satellite: add register-lost-segments command
Usage: from a host for the affected satellite, issue this command
and supply the number of segments that have been permanently lost. For
example, to indicate 2 segments permanently lost:

    satellite register-lost-segments 2

If the unthinkable happens and this is necessary to use, it is presumed
that we will also remove the non-recoverable segments from the metainfo
db, so they will not continue to appear as 'temporarily unavailable' to
the repair checker.

The influxQL query for this will probably look something like:

    SELECT sum(total) AS "sum_total"
    FROM "v3_stats_new"."autogen"."lost-segments"
    WHERE time > :dashboardTime: AND "scope" = 'segment-durability'
    GROUP BY time(:interval:), "application", "instance"
    FILL(null)

Or use the Flux language in order to get the benefit of the
cumulativeSum function:

    from(bucket: "v3_stats_new/autogen")
      |> range(start: dashboardTime)
      |> filter(fn: (r) => r._measurement == "lost-segments"
                           and r.scope == "segment-durability"
                           and r._field == "total")
      |> group(columns: ["application", "instance"])
      |> cumulativeSum()

Change-Id: I73d364937705aa815af7520ab79c00bc2aea09f6
2021-10-26 15:03:52 +00:00
..
certificates all: fix error naming 2021-04-29 15:38:21 +03:00
connect-test private/server: use quic implementation from storj.io/common 2021-08-10 13:32:21 +00:00
crashcollect crashcollect: process for receiving panics 2021-04-27 18:57:47 +03:00
identity ci: fix lint errors 2021-05-17 13:37:31 +00:00
inspector satellite: remove irreparabledb leftovers from code 2021-06-22 11:26:17 +00:00
internal/wizard cmd/internal/asset: delete unused code 2021-05-20 18:30:19 +03:00
metabase-orphaned-segments satellite/metabase: limit maximum number of parts and size 2021-10-22 10:16:37 +00:00
metabase-verify satellite/metabase: limit maximum number of parts and size 2021-10-22 10:16:37 +00:00
metric-receiver cmd/metric-receiver: restore minimal metrics server 2020-10-14 20:01:29 +03:00
multinode multinode/multinodedb: add db migration 2021-05-13 15:44:08 +00:00
satellite cmd/satellite: add register-lost-segments command 2021-10-26 15:03:52 +00:00
storagenode satellite/audit,storage: increase sleep delay in TestMaxVerifyCount 2021-09-10 15:30:37 +00:00
storagenode-updater cmd/storagenode-updater: avoid depending on the storagenode code 2021-09-16 11:44:55 +00:00
storj-admin all: fix linter complaints 2020-10-13 15:59:01 +03:00
storj-sim satellite/console: Add reCAPTCHA verification step to registration 2021-07-07 21:34:07 +00:00
uplink cmd/uplink: add ranged download to uplink cli 2021-10-25 13:13:33 +00:00
uplinkng cmd/uplinkng: allow removing pending objects 2021-10-20 12:25:25 -04:00
versioncontrol private/version: minimal fix for tag-release.sh 2020-04-01 13:46:45 +00:00