-
generally speaking, i've noticed random connection issues on the server-side. before i deep dive to track down the issues, i wanted to ask about best practices or known issues around this. so here's an example. on the server i have a node app that creates about 10 persistent worker threads. each worker thread creates a client connection to the local db, connecting to the same node. each signs in as the 'admin' . and then creates a live proxy. so the connection would look something like this:
seems simple enough. but i would get random issues such as :
it doesn't happen frequently, but randomly one or two here and there, but not consistently. for testing, im making sure the node only has a few small objects. i'm kind of surprised by these errors since this is running on the server via a local connection. So maybe there are some known general strategies for what im doing
thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Sounds like this should not be problematic. To verify, can you confirm you are running 1 single Also, if you can provide minimal example project that can reproduce this, that will really help. |
Beta Was this translation helpful? Give feedback.
-
looks like the issue was the system was overloaded during initialization and causing acebase to intermittently stall. The cpu usage was at~50%, but it might have been periodically spiking. just letting the system breathe a bit with some sleeps fseems to have ixed the issue, along with checking (and reconnecting) the db before accessing proxies. although that brings up a point, is there a way to raise the priority of the process through a flag or setting (i didnt see it with a quick check of the code)? i dont have an easy way to do it on my system (windows server, running multiple node processes so i cant single out the particuar db process) |
Beta Was this translation helpful? Give feedback.
looks like the issue was the system was overloaded during initialization and causing acebase to intermittently stall. The cpu usage was at~50%, but it might have been periodically spiking. just letting the system breathe a bit with some sleeps fseems to have ixed the issue, along with checking (and reconnecting) the db before accessing proxies. although that brings up a point, is there a way to raise the priority of the process through a flag or setting (i didnt see it with a quick check of the code)? i dont have an easy way to do it on my system (windows server, running multiple node processes so i cant single out the particuar db process)