Merge pull request #992 from prometheus/term-docs

Storage: Tell users how to avoid crash recovery.
This commit is contained in:
Fabian Reinartz 2015-08-16 12:00:02 +02:00
commit 4ee88017f3

View file

@ -37,6 +37,7 @@ import (
func (p *persistence) recoverFromCrash(fingerprintToSeries map[clientmodel.Fingerprint]*memorySeries) error {
// TODO(beorn): We need proper tests for the crash recovery.
log.Warn("Starting crash recovery. Prometheus is inoperational until complete.")
log.Warn("To avoid crash recovery in future, shutdown Prometheus with SIGTERM or a HTTP POST to /-/quit.")
fpsSeen := map[clientmodel.Fingerprint]struct{}{}
count := 0