https://github.com/murshidazher/express-pm2-long-polling
https://github.com/murshidazher/express-pm2-long-polling
express graceful-shutdown http nodejs pm2 poc zero-downtime
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/murshidazher/express-pm2-long-polling
- Owner: murshidazher
- License: mit
- Created: 2021-09-29T14:48:28.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-10T12:34:16.000Z (over 3 years ago)
- Last Synced: 2024-12-31T18:29:59.863Z (10 months ago)
- Topics: express, graceful-shutdown, http, nodejs, pm2, poc, zero-downtime
- Language: JavaScript
- Homepage:
- Size: 114 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# express-pm2-long-polling
A rolling update strategy demo
## artillery
```sh
> artillery quick -r 10 -d 60 -o report.json http://localhost:8090/
> artillery quick -r 10 -d 60 -o report.json http://10.118.10.25:8090/
```
## loadtest
```sh
> loadtest -n 1000 -c 100 http://localhost:8090/
```
The preceding command will load the server with 200 concurrent connections for 10 seconds. As a reference, the result for a system with 4 processors is in the order of 90 transactions per second, with an average CPU utilization of only 20%
```
brew install siege
siege -c200 -t10S http://localhost:8080
```