Windows Forever Cluster Issue

36 views
Skip to first unread message

karim elsafy

unread,
Dec 9, 2014, 12:49:21 PM12/9/14
to nod...@googlegroups.com
Dears,
I have an issue when I call forever module in windows, it works fine except that my code is calling Cluster module , and I do "Cluster.fork()", the problem is that I got 2 empty consoles opened! like the image shows(2 because I have 2 CPUs) and when I close them, they re-open automatically(because of Forever). I also tested forever-win module with the same result. every thing is fine except that I dont want to show those consoles.
Note: I face this in windows only not Ubuntu



Sam Roberts

unread,
Dec 10, 2014, 7:01:40 PM12/10/14
to nod...@googlegroups.com
forever is quite dated, and pre-dates node cluster. I'd suggest using a more modern supervisor, like https://github.com/strongloop/strong-supervisor that uses cluster natively (and there are others).

That alone might fix your problem, if its because of forever.

If its because your server is doing something, like spawning a child that triggers windows to spawn a console, then that alone won't help, and more info about what your code does will be needed. And your node version, etc.

Sam
Reply all
Reply to author
Forward
0 new messages