Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/udhos/gracefulrestart
gracefulrestart demonstrates how to gracefully restart a http server in Go.
https://github.com/udhos/gracefulrestart
go golang graceful graceful-restart http restart server
Last synced: 1 day ago
JSON representation
gracefulrestart demonstrates how to gracefully restart a http server in Go.
- Host: GitHub
- URL: https://github.com/udhos/gracefulrestart
- Owner: udhos
- License: mit
- Created: 2023-10-29T02:03:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-29T04:01:39.000Z (about 1 year ago)
- Last Synced: 2024-06-21T16:55:30.749Z (5 months ago)
- Topics: go, golang, graceful, graceful-restart, http, restart, server
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gracefulrestart
[gracefulrestart](https://github.com/udhos/gracefulrestart) demonstrates how to gracefully restart a http server in Go.
# Usage
Clone:
git clone https://github.com/udhos/gracefulrestart
cd gracefulrestartBuild:
go install ./...
Run:
gracefultrestart
Test with curl:
while :; do curl localhost:8080/hello; done
Test with [k6](https://k6.io/docs/get-started/running-k6/):
k6 run --vus 30 --duration 30s k6-script.js