https://github.com/exortek/nodejs-cluster-non-cluster-example
https://github.com/exortek/nodejs-cluster-non-cluster-example
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/exortek/nodejs-cluster-non-cluster-example
- Owner: ExorTek
- Created: 2023-09-25T15:42:26.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-25T15:53:23.000Z (over 2 years ago)
- Last Synced: 2025-03-28T21:11:41.267Z (about 1 year ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# This Example is for the NodeJs Cluster Module
#### This application has a structure that accommodates both utilizing all available CPU cores and single-core usage. It was developed to explain the usage logic of the Cluster Module for Node.js.
## Installation
```bash
git clone https://github.com/exortek/nodejs-cluster-non-cluster-example.git
cd nodejs-cluster-module-example
npm install
```
## Usage
```bash
npm run start:cluster # For Cluster Module
npm run start:non-cluster # For Non-Cluster Module
```
## Load test
```bash
npm run load
```