-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用restart #65
Comments
不用担心,这个是正常的.后续我会把这个log级别改成info |
您发送给我的邮件 我已经收到了
所以,请您放心吧
|
@smallnest
不应该是重启的时候,单独起一个进程进行监听同一个端口,然后关闭其中一个(处理完活动连接),这种是正确的做法吗? |
使用graceful restart, 要求你的操作系统支持reuseport. windows不支持,现在的linux都支持了 https://github.com/rpcxio/rpcx-examples/tree/master/graceful_restart |
@smallnest 嗯 我也尝试用过 有两个问题
这种错误是正常的吗?谢谢 |
如果我用supervisor来守护进程的话,好像会有冲突,supervisor的拉起一个进程,程序的reuseport 拉起一个进程 |
发信号
kill -SIGHUP 12068
之后报这个错误
jsonrpc2.go:201: ERROR: error in JSONRPC server: *errors.errorString http: Server closed
虽然可以成功起动一个新进程来监听端口,但是这个错误是正常的吗?
go版本:
go version go1.20.1 linux/amd64
rpcx : v1.8.24
@smallnest 辛苦看一下 感谢
The text was updated successfully, but these errors were encountered: