Influx DB GO client - too many open files

Change the maximum number of open files ( file descriptors) using ulimit -a . Also ensure that Influxdb connections are gracefully closed at the end.