https://github.com/jakoblorz/rizzle
replace `node` runtime with `rizzle` to start your nodejs application in cluster mode
https://github.com/jakoblorz/rizzle
cli cluster nodejs scale server serverless simple
Last synced: 5 months ago
JSON representation
replace `node` runtime with `rizzle` to start your nodejs application in cluster mode
- Host: GitHub
- URL: https://github.com/jakoblorz/rizzle
- Owner: jakoblorz
- License: mit
- Created: 2017-11-27T11:11:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-27T12:33:13.000Z (over 8 years ago)
- Last Synced: 2025-08-25T15:56:28.525Z (10 months ago)
- Topics: cli, cluster, nodejs, scale, server, serverless, simple
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rizzle
replace `node` runtime with `rizzle` to start your nodejs application in cluster mode
## Installing
This package is listed on npm:
```bash
npm install rizzle
```
## Usage
You can just replace each `node` call in the terminal/cmd/bash with `rizzle`. Make use of the `-f` and `-c` parameters:
- `-f` restarts slaves which stopped running due to an error - does not restart slaves which stopped successfully
- `-c ` specify the number of slaves to start - default is the number of cpus (`os.cpus().length`)
> `node ./test.js` becomes `rizzle ./test.js -f -c 5`
## Example
```javascript
// server.js
const http = require("http");
http.createServer((request, response) => response.end("success message sent from " + process.pid))
.listen(8080, "localhost");
```
```bash
rizzle ./server.js -f -c 5
```