questdb / nodejs-questdb-client

QuestDB Node.js Client
35 stars 8 forks source link

Inserting data from more than one script/pm2 process causes Web console to refuse connection #30

Open hmpmarketing opened 3 months ago

hmpmarketing commented 3 months ago

Hi,

I have just managed to code a script that pulls data from an API and inserts into my questdb. I am using PM2 to manage the processes where each process runs at every second.

I have setup 4 processes to pull data from 4 different markets and the moment I have all 4 running, when I try to visit web console it gives me a refused connection. Dialling back PM2 to 1 process only and I can login just fine.

Is there a limitation on clients connected somewhere that I can change?

It seems everything grinds to a halt the moment I have all 4 script inserting data

Here is a gist:

https://gist.github.com/hmpmarketing/b18ba2b6db4fb0af370fbfea1f49c366