Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
egg-cluster
Advanced tools
Cluster Manager for Egg
$ npm i egg-cluster
const startCluster = require('egg-cluster').startCluster;
startCluster({
baseDir: '/path/to/app',
customEgg: '/path/to/framework',
});
You can specify a callback that will be invoked when application has started. However, master process will exit when catch an error.
startCluster(options, () => {
console.log('started');
});
Param | Type | Description |
---|---|---|
baseDir | String | directory of application |
customEgg | String | directory of framework |
plugins | Object | plugins for unittest |
workers | Number | numbers of app workers |
port | Number | port |
https | Boolean | start a https server |
key | String | ssl key |
cert | String | ssl cert |
FAQs
cluster manager for egg
The npm package egg-cluster receives a total of 18,662 weekly downloads. As such, egg-cluster popularity was classified as popular.
We found that egg-cluster demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.