mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
1.websocket接受消息,每15秒监控最大耗时消息类型,某消息处理超过300ms会有监控日志
2.GoQueue处理队列监控,每1分钟汇报积压处理的最大量。并监控死循环
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"log"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/duanhf2012/origin/util"
|
||||
|
||||
@@ -167,3 +168,8 @@ func (s *COriginNode) GetSysLog() *sysservice.LogService {
|
||||
|
||||
return logService.(*sysservice.LogService)
|
||||
}
|
||||
|
||||
func (s *COriginNode) EnableMonitorModule(checkInterval time.Duration){
|
||||
service.EnableDeadForMonitor(checkInterval)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user