https://github.com/redhat-developer-demos/resource_pressurizer
https://github.com/redhat-developer-demos/resource_pressurizer
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/redhat-developer-demos/resource_pressurizer
- Owner: redhat-developer-demos
- License: mit
- Created: 2024-02-26T13:26:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-27T16:41:00.000Z (over 1 year ago)
- Last Synced: 2025-01-23T07:47:53.705Z (5 months ago)
- Language: JavaScript
- Size: 55.7 KB
- Stars: 0
- Watchers: 13
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# resource_pressurizer
A project that has code that is intended the pressure CPU and Network IO on the machine on which it is running## Installation
From the root of the project directory execute the following command in a terminal window:
`npm install`
## Running the application
`npm start`
## Terminating the application
`ctrl+c`
## Environment Variables
`SERVER_PORT`, The port on which the server is listening. The default is `8080`.
`OMIT_CPU`, Indicates that the CPU pressurizer should be omitted from the run. Default is `false`.
`OMIT_NETWORK`, Indicates that the Network pressurizer should be omitted from the run. Default is `false`.
This project supports using a `.env` file to declare, store and publish environmental variable settings.
Add the environment variables to the `.env` file that is stored at the root of the project directory to alter the default behavior of the application.