Skip to content

Graceful restart & zero downtime deploy for Go gRPC servers.

Notifications You must be signed in to change notification settings

jiaoji100/gracegrpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

功能

平滑重启golang gRPC server,重启过程不丢流量。类似facebook的gracehttp

使用

平滑重启进程

kill -SIGUSR2  pid 

正常杀进程

kill -9 pid 
kill -SIGINT pid
kill -SIGTERM pid 

测试

启动server

cd example/server
go build 
./server-demo

启动client

cd example/client
go build 
./client-demo

平滑重启server

kill -SIGUSR2 pid

Releases

No releases published

Packages

No packages published

Languages