influxdata / influxdb-client-js

InfluxDB 2.0 JavaScript client

Home Page:https://influxdata.github.io/influxdb-client-js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to programatically write points : TOO MANY FILES OPEN

noob-master147 opened this issue · comments

Im trying to write points to Influx but this keeps happening
unexpected error writing points to database: too many open files

image

the code algorithm is this
image

there are only 3 orgs and some 2000 activities in total, Influx is not able to handle 2000 write operations?
Also I need to do this same operation for over 2 million activities spread over 100s of orgs

This defect is returned by InfluxDB ... and is caused by your operating system that limits the number of opened files. You have to increase the limit for the user that runs your InfluxDB. Please take a look at influxdata/influxdb#9871 (comment) as a starting point. Feel free to ask the InfluxDB community if you get stuck with it.

Thanks @sranka
I increased The maximum number of open file descriptors by running ulimit -n 99999
that did solve the previous issue, but now its throwing a diff issue

image

@noob-master147 pls open a new issue ... include your OS, the client version, node version, and InfluxDB version in the issue description and an excerpt of your code that writes the data