All Projects → eggjs → Egg Cluster

eggjs / Egg Cluster

Licence: mit
cluster manager for egg

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Egg Cluster

Zaneperfor
前端性能监控系统,消息队列,高可用,集群等相关架构
Stars: ✭ 1,085 (+483.33%)
Mutual labels:  egg
Egg Router Plus
The missing router feature for eggjs
Stars: ✭ 117 (-37.1%)
Mutual labels:  egg
Egg Init
Init egg app helper tools
Stars: ✭ 145 (-22.04%)
Mutual labels:  egg
Egg Schedule
Schedule plugin for egg
Stars: ✭ 76 (-59.14%)
Mutual labels:  egg
Egg Cnode
CNode 社区 Egg 版本
Stars: ✭ 1,456 (+682.8%)
Mutual labels:  egg
Egg Logger
Egg logger
Stars: ✭ 127 (-31.72%)
Mutual labels:  egg
Egg View Ejs
egg view plugin for ejs.
Stars: ✭ 54 (-70.97%)
Mutual labels:  egg
Apubplat
Devops自动化部署、堡垒机开源项目、Web Terminal
Stars: ✭ 167 (-10.22%)
Mutual labels:  egg
Blog
天猪部落阁 http://atian25.github.io
Stars: ✭ 1,527 (+720.97%)
Mutual labels:  egg
Egg Multipart
multipart plugin for egg
Stars: ✭ 145 (-22.04%)
Mutual labels:  egg
Nuxt Egg
Nuxt.js + Egg FrameWork
Stars: ✭ 86 (-53.76%)
Mutual labels:  egg
Egg Passport
passport plugin for egg
Stars: ✭ 98 (-47.31%)
Mutual labels:  egg
Egg View Vue
vue view plugin for egg
Stars: ✭ 136 (-26.88%)
Mutual labels:  egg
Api Mocker
Api Mocker is more of an api management system than a mocker.
Stars: ✭ 1,090 (+486.02%)
Mutual labels:  egg
Nodeplatform Eggjs
基于egg.js编写的node平台,演示地址不要乱搞啊
Stars: ✭ 155 (-16.67%)
Mutual labels:  egg
Egg View React Ssr
Egg React Server Side Render (SSR) Plugin
Stars: ✭ 55 (-70.43%)
Mutual labels:  egg
Examples
Store all egg examples in one place
Stars: ✭ 1,668 (+796.77%)
Mutual labels:  egg
Egg Oauth2 Server
🌟 OAuth2 server plugin for egg.js based on node-oauth2-server
Stars: ✭ 174 (-6.45%)
Mutual labels:  egg
Egg Bin
egg developer tool
Stars: ✭ 165 (-11.29%)
Mutual labels:  egg
Egg Mock
Mock library for egg testing.
Stars: ✭ 137 (-26.34%)
Mutual labels:  egg

egg-cluster

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Cluster Manager for Egg


Install

$ npm i egg-cluster --save

Usage

const startCluster = require('egg-cluster').startCluster;
startCluster({
  baseDir: '/path/to/app',
  framework: '/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');
});

Options

Param Type Description
baseDir String directory of application
framework String specify framework that can be absolute path or npm package
plugins Object plugins for unittest
workers Number numbers of app workers
sticky Boolean sticky mode server
port Number port
https Object start a https server, note: key / cert / ca should be full path to file
require Array|String will inject into worker/agent process
pidFile String will save master pid to this file

Env

EGG_APP_CLOSE_TIMEOUT: app worker boot timeout value

EGG_AGENT_CLOSE_TIMEOUT: agent worker boot timeout value

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].