Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dreamph/zero-downtime-deploy
Zero Downtime Deploy with Nginx
https://github.com/dreamph/zero-downtime-deploy
fiber nginx zero-downtime zero-downtime-deploy
Last synced: about 1 month ago
JSON representation
Zero Downtime Deploy with Nginx
- Host: GitHub
- URL: https://github.com/dreamph/zero-downtime-deploy
- Owner: dreamph
- License: mit
- Created: 2024-01-17T11:22:27.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-11T02:45:32.000Z (8 months ago)
- Last Synced: 2024-11-09T09:44:49.464Z (3 months ago)
- Topics: fiber, nginx, zero-downtime, zero-downtime-deploy
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Zero Downtime Deploy
Install Tools
=======
``` sh
go install github.com/go-task/task/v3/cmd/task@latest
go install github.com/tsliwowicz/go-wrk@latest
```Build
=======
``` sh
cd sourcecode/zrdt
docker compose -f docker-compose.build.yml build
```Deploy
=======
``` sh
cd app/zrdt
task deploy
```Test Call Api
=======
``` sh
go-wrk -c 5 -d 30 http://localhost:3001/apis/
```ReDeploy Again
=======
``` sh
cd app/zrdt
task deploy
```Test Call Api -> Result (Number of Errors: 0)
=======
``` sh
go-wrk -c 5 -d 30 http://localhost:3001/apis/
Running 30s test @ http://localhost:3001/apis/
5 goroutine(s) running concurrently
344064 requests in 29.920196008s, 69.23MB read
Requests/sec: 11499.39
Transfer/sec: 2.31MB
Avg Req Time: 434.805µs
Fastest Request: 163.167µs
Slowest Request: 11.768541ms
Number of Errors: 0
```Buy Me a Coffee
=======
[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/dreamph)