Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

stats library very slow to reconnect when graphite endpoint goes down #908

Closed
Dieterbe opened this issue May 9, 2018 · 1 comment
Closed
Milestone

Comments

@Dieterbe
Copy link
Contributor

Dieterbe commented May 9, 2018

for Mt's internal stats, if the carbon endpoint goes down and back up, it seems to take 15-20 minutes for MT to notice. so there's a long gap of no stats which finally will get filled in, but it takes too long

@woodsaj
Copy link
Member

woodsaj commented May 9, 2018

I think this can be easily solved by calling conn.SetWriteDeadline(time.Now().Add(time.Second * 10)) before calling conn.Write() https://github.com/grafana/metrictank/blob/master/stats/out_graphite.go#L109

@Dieterbe Dieterbe added this to the 0.9.1 milestone May 29, 2018
@Dieterbe Dieterbe modified the milestones: 1.1, 0.10.0 Dec 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants