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

add -j option for multi-processing #3

Open
MainRo opened this issue Oct 22, 2020 · 0 comments
Open

add -j option for multi-processing #3

MainRo opened this issue Oct 22, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@MainRo
Copy link
Member

MainRo commented Oct 22, 2020

Multi-processing should be managed outside of maki-nage in production environment (via the deployment/orchestration tools). However on local usage, it would be useful to support forking in multiple processes instead of requiring the user to launch the application multiple times.

a -j [njobs] option should be added for this. njobs can have several values:

  • positive indicates the number of workers to spawn
  • 0 means using as many workers as cpus on the system
  • negative values indicates numbers of cpus minus njobs workers

1 is a special value where no fork is done, and the master process is the single worker. In all other forking configurations, the master process will not act as a worker.

This requires a "fork" cyclotron driver that will be in charge of forking, waiting, and eventually killing the workers from the master (maybe this should be in cyclotron-std).

@MainRo MainRo added the enhancement New feature or request label Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant