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

Companion package: composite-service-node-cluster #17

Open
zenflow opened this issue Sep 22, 2020 · 0 comments
Open

Companion package: composite-service-node-cluster #17

zenflow opened this issue Sep 22, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@zenflow
Copy link
Owner

zenflow commented Sep 22, 2020

// Configures a composite service that creates a cluster (using Node.js's `cluster` module) of the given `config.script`
declare function configureNodeCluster (config: NodeClusterConfig): ServiceConfig

// Example of using configureNodeCluster
startCompositeService({
  services: {
    cluster: configureNodeCluster({ script: 'path/to/script.js', scale: 4 }),
    // more services....
  },
})
@zenflow zenflow added the enhancement New feature or request label Sep 23, 2020
@zenflow zenflow changed the title Add configureNodeCluster function (scope: node-cluster) Companion package: composite-service-node-cluster Mar 18, 2021
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