Skip to content
Snippets Groups Projects
Commit 34226854 authored by Ming Deng's avatar Ming Deng
Browse files

Add Configuration example

parent af9741ad
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,7 @@ import (
*
* So the signals SIGKILL, SIGSTOP, SIGHUP, SIGINT, SIGTERM, SIGQUIT, SIGILL, SIGTRAP, SIGABRT, SIGSTKFLT, SIGEMT, SIGSYS
* should be processed.
* syscall.SIGEMT cannot be found in CI
* It's seems that the Unix/Linux does not have the signal SIGSTKFLT. https://github.com/golang/go/issues/33381
* So this signal will be ignored.
*
......@@ -53,7 +54,7 @@ func GracefulShutdownInit() {
signal.Notify(signals, os.Interrupt, os.Kill, syscall.SIGKILL, syscall.SIGSTOP,
syscall.SIGHUP, syscall.SIGINT, syscall.SIGQUIT, syscall.SIGILL, syscall.SIGTRAP,
syscall.SIGABRT, syscall.SIGEMT, syscall.SIGSYS,
syscall.SIGABRT, syscall.SIGSYS,
)
go func() {
......@@ -66,7 +67,7 @@ func GracefulShutdownInit() {
switch sig {
// those signals' original behavior is exit with dump ths stack, so we try to keep the behavior
case syscall.SIGQUIT, syscall.SIGILL, syscall.SIGTRAP,
syscall.SIGABRT, syscall.SIGEMT, syscall.SIGSYS:
syscall.SIGABRT, syscall.SIGSYS:
debug.WriteHeapDump(os.Stdout.Fd())
default:
time.AfterFunc(totalTimeout(), func() {
......
......@@ -49,6 +49,10 @@ references:
"soa.com.ikurento.user.UserProvider"
"forks": 5
shutdown_conf:
timeout: 60s
step_timeout: 10s
protocol_conf:
dubbo:
reconnect_interval: 0
......
......@@ -17,6 +17,10 @@ references:
- name: "GetUser"
retries: "3"
shutdown_conf:
timeout: 60s
step_timeout: 10s
protocol_conf:
dubbo:
reconnect_interval: 0
......
......@@ -48,6 +48,10 @@ references:
"soa.com.ikurento.user.UserProvider"
"forks": 5
shutdown_conf:
timeout: 60s
step_timeout: 10s
protocol_conf:
dubbo:
reconnect_interval: 0
......
......@@ -71,6 +71,10 @@ protocols:
# ip: "127.0.0.1"
# port: 20001
shutdown_conf:
timeout: 60s
step_timeout: 10s
protocol_conf:
dubbo:
session_number: 700
......
......@@ -51,6 +51,10 @@ protocols:
# ip: "127.0.0.1"
# port: 20001
shutdown_conf:
timeout: 60s
step_timeout: 10s
protocol_conf:
dubbo:
session_number: 700
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment