echo

command
v0.9.8-0...-165525d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README

echo examples

examples for gracefully restart, upgrade through http request.

git clone https://github.com/vogo/gracego.git
cd gracego/examples/echo
make zip

cd build

# hard link
ln echo myecho

# start echo server
./myecho

# start a new server to replace the old
./myecho

# restart through signal
ps -ef |grep -v grep |grep echo
kill -HUP <PID>

# sleep 5s request
curl http://127.0.0.1:8081/sleep5s

# calculate 5s request
curl http://127.0.0.1:8081/calcuate5s

# upgrade through http request
curl http://127.0.0.1:8081/upgrade

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL