storj/cmd/satellite
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
..
reports satellite/{satellitedb,attribution,console}: value attribution changes that add userAgent field to buckets table and all tables that have partner_id 2021-10-18 13:56:19 +00:00
admin.go Allow for DB application names per process. (#3983) 2020-12-04 11:24:39 +01:00
api.go satellite/metabase: limit maximum number of parts and size 2021-10-22 10:16:37 +00:00
billing.go satellite/{payments,satellitedb}: Remove custom coupon implementation 2021-10-11 19:47:00 +00:00
compensation.go compensation: always generate invoices for every node 2021-03-29 14:15:45 +00:00
Dockerfile Makefile: bump node to v16 2021-10-14 12:46:28 +00:00
entrypoint all: remove code related to PointerDB 2021-04-21 12:35:31 +00:00
gc.go satellite/metabase: limit maximum number of parts and size 2021-10-22 10:16:37 +00:00
gracefulexit.go satellite/satellitedb: Use CRDB AS OF SYSTEM & batch for GE 2021-05-07 13:09:19 -04:00
main.go cmd/satellite: add register-lost-segments command 2021-10-26 15:03:52 +00:00
output.go satellite: compensation package and commands 2020-03-30 14:08:14 -06:00
README.md hc to satellite rename (#282) 2018-08-29 14:32:41 -04:00
repairer.go satellite/metabase: limit maximum number of parts and size 2021-10-22 10:16:37 +00:00
satellite.yaml all: fix comments about grpc 2020-05-11 13:05:34 +03:00
usage.go Allow for DB application names per process. (#3983) 2020-12-04 11:24:39 +01:00

Satellite

Documentation for developing and building the satellite service

Usage:

First make an identity:

go install storj.io/storj/cmd/satellite
satellite setup

You can edit ~/.storj/satellite/config.yaml to your liking. Then run it!

satellite run