Giter Club home page Giter Club logo

cluster-master's Issues

There doesn't appear to be a way to get a handle on the workers

I am trying to get my hands on the forked workers but I can't seem to find a way. I've looked at the code and it appears that the workers are spawned and forgotten.

Is this correct? If so would it be possible to add handles and a method to access them?

I appologize if I'm missing something obvious, I'm new to node.js processes.

Logs streams, worker events, REPL...

This project has not had a lot of activity. I would like to see some new features like:

  • Transform streams for workers stdout: So you could append process id etc to logs bubbling up from the workers
  • onMessage is supported, but what about exit, online etc.
  • .exit in the REPL is not exactly right, I think that sock.end() is what people are looking for, update documentation/implementation.
  • Additional REPL features (some listed elsewhere), but I would like to be able to attach stdout for a given worker to the REPL...

Should I make some PR's or should I fork the project and start anew?

end event listener registration error

Hi all, I've been working on a tool to identify instances of events registered to the wrong object in uses of some JavaScript event-driven APIs, as part of a research project.
The tool flagged line 213 in cluster-master.js in the root of this repository, on the registration of the “end” event.

The reason I believe this is indicative of an error is as follows (from looking at the nodejs repl API documentation).
This listener for “end” is registered on variable r, which is an object of type repl.REPLServer, initialized on line 138 by a call to repl.start(). However, “end” is not an event emitted on repl.REPLServer.

My guess is that maybe instead you should be listening for “exit” (an event on repl.REPLServer), or “close” (an event on readline.Interface, which repl.REPLServer extends).

Thanks!

repl doesn't work running root

I started my node server app from root crontab, using cluster-master and even though I had "repl:3001" set, the repl seems to have not started.
netstat showed no listener on 3001.
on startup, I did see the message: "resize and then setup repl"

crontab invoked this script:

!/bin/sh

cd /home/jloveman/callhome2
/usr/bin/screen -dmS callhome2 sudo node /home/jloveman/callhome2/cluster_worker.js

SIGKILL isn't catchable

And node knows it:

process.on("SIGKILL", function(){})
Error: uv_signal_start EINVAL

I think you're always hitting your catch.

The application shuts down with error 'Cannot set property 'lookup' of undefined(dgram.js:147:20)'

We recently moved from pm2 to using supervisor with cluster-master, application yesterday went down due to a fatal error and I've this in logs:

dgram.js:147
  newHandle.lookup = self._handle.lookup;
                                 ^
TypeError: Cannot set property 'lookup' of undefined
    at replaceHandle (dgram.js:147:20)

Could you please give some insights on this, like if this issue is because of cluster-master or some wrong implementation from my side.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.