Project

General

Profile

Actions

Feature #7024

open

[Keep] keepstore status.json should report runtime environment

Added by Tom Clegg over 8 years ago. Updated about 2 months ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
Keep
Target version:
Story points:
-
Release:
Release relationship:
Auto

Description

Some useful/easy things to report in /status.json that can be useful for troubleshooting:
  • GOGC env (or 100 if not set) - see https://golang.org/pkg/runtime/debug/#SetGCPercent
  • GOMAXPROCS env
  • Startup and current timestamps (in nanoseconds, like the times in MemStats)
  • A list of all the operations in progress, with these fields: operation (GET/PUT/HEAD/...), hash, remote ip, how long since it was received (or timestamp received), requests state (reading request body, checking for existing copy on disk, writing to disk, etc)
  • For each integer x in 0..600, number of requests received and number of requests completed as of x seconds ago, bucketed by handler (head, get, put, index, status).
Actions

Also available in: Atom PDF