app/vminsert/netstorage: log vmstorage addr, which cannot accept new samples due to overload and/or unavailability

This commit is contained in:
Aliaksandr Valialkin 2022-02-07 15:02:47 +02:00
parent 5da7f08be6
commit 9fb5ce5fb6
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -60,7 +60,7 @@ func (sn *storageNode) push(buf []byte, rows int) error {
}
if *dropSamplesOnOverload {
sn.rowsDroppedOnOverload.Add(rows)
logger.WithThrottler("droppedSamplesOnOverload", 5*time.Second).Warnf("some rows dropped, because -dropSamplesOnOverload is set and the current vmstorage node cannot accept new rows now. See vm_rpc_rows_dropped_on_overload_total metric at /metrics page")
logger.WithThrottler("droppedSamplesOnOverload", 5*time.Second).Warnf("some rows dropped, because -dropSamplesOnOverload is set and vmstorage %s cannot accept new rows now. See vm_rpc_rows_dropped_on_overload_total metric at /metrics page", sn.dialer.Addr())
return nil
}
// Slow path - sn cannot accept buf now, so re-route it to other vmstorage nodes.