Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storing keys from master #3

Closed
somecallmemike opened this issue Dec 3, 2015 · 1 comment
Closed

Storing keys from master #3

somecallmemike opened this issue Dec 3, 2015 · 1 comment

Comments

@somecallmemike
Copy link

Is it possible to store keys in the master and have child processes access the data? I have a long running process I only want run as one instance, and in a multi-cpu server I would have that process running multiple times unnecessarily consuming resources.

@PaquitoSoft
Copy link
Owner

Hi @somecallmemike
I'm not sure I understand your question.
The whole point of this module is to store info un master and have child processes access to it. When you store a key from a child process, that key gets stored in the master process and, when it's read, it's also read from the master process.
This is true if you're using nodejs cluster module.

If you run different master processes, then this nodule is not an option because you will need some kind of ICP (Inter Process Protocol) channel to communicate between them.

Please, feel free to reopen this issue if this answer is not clear.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants