tailscale/derp
julianknodt fe54721e31 derp: add pkt queue latency timer
It would be useful to know the time that packets spend inside of a queue before they are sent
off, as that can be indicative of the load the server is handling (and there was also an
existing TODO). This adds a simple exponential moving average metric to track the average packet
queue duration.
Changes during review:
Add CAS loop for recording queue timing w/ expvar.Func, rm snake_case, annotate in milliseconds,
convert

Signed-off-by: julianknodt <julianknodt@gmail.com>
2021-06-11 09:41:06 -07:00
..
derphttp derp{,/derphttp},magicsock: tell DERP server when ping acks can be expected 2021-03-12 09:55:02 -08:00
derpmap derp/derpmap: add São Paulo (derp11) 2021-04-21 11:04:47 -07:00
derp_client.go derp: return keep-alive message up to callers 2021-03-15 10:43:48 -07:00
derp_server.go derp: add pkt queue latency timer 2021-06-11 09:41:06 -07:00
derp_test.go derp: handle net.ErrClosed in TestSendFreeze 2021-04-12 15:23:36 -07:00
derp.go wgengine/magicsock, derp, derp/derphttp: respond to DERP server->client pings 2021-03-09 13:56:13 -08:00