Open
Description
We have deployed a statsite and it has about 2000+ metrics per flush.
Today we found the executions of sinks/graphite.py never stopped and Graphite can't received any data.
So I added logs in script, and it shows that the for-loop which iterates sys.stdin never stops.
The following code seems like a fix:
while True:
line = sys.stdin.readline()
if line.strip() == "":
break
if len(graphite.metrics) >= METRICS_PER_FLUSH:
graphite.send_metrics()
graphite.append(line.strip())
graphite.send_metrics()
Is there any situation that stdin for stream_cmd contains no EOF?
Metadata
Metadata
Assignees
Labels
No labels