nodejs-questdb-client
nodejs-questdb-client copied to clipboard
Inserting data from more than one script/pm2 process causes Web console to refuse connection
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