influxdata / influxdb-relay

Service to replicate InfluxDB data for high availability
MIT License
853 stars 350 forks source link

the relay leak client sockets in TIME_WAIT state when QPS is high #56

Open micastle opened 7 years ago

micastle commented 7 years ago

Seems the sockets connecting to backends are not closed in time. this causes socket port exhausted on the machine. I guess re-using the the http transport to backends should resolve the issue, it is not necessary to create new one for each write request.

BTW, I found it on windows.

jeffmart commented 6 years ago

Is there a open bug on this issue? Also has anyone provided a concrete work around to prevent this from happening?

rockyluke commented 6 years ago

Fixed on https://github.com/vente-privee/influxdb-relay.