Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-userCenter
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujiebin
hilo-userCenter
Commits
ff87a090
Commit
ff87a090
authored
Jul 29, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3500 // 队列告警数量
parent
e63c5347
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
main.go
main.go
+2
-2
No files found.
main.go
View file @
ff87a090
...
...
@@ -37,7 +37,7 @@ const (
// 控制异步消息协程
const
(
monitorLength
=
10
00
// 队列告警数量
monitorLength
=
35
00
// 队列告警数量
kickChanSize
=
500
broadcastChanSize
=
3500
)
...
...
@@ -632,7 +632,7 @@ func check() {
select
{
case
<-
tick
.
C
:
l
,
l2
:=
len
(
kickChan
),
len
(
broadcastChan
)
if
l
>
monitorLength
||
l2
>
monitorLength
{
if
l
>
=
monitorLength
||
l2
>=
monitorLength
{
if
time
.
Now
()
.
Sub
(
lastDingTime
)
.
Minutes
()
>
dingIntervalMin
{
go
func
()
{
if
sErr
:=
dingding
.
SendDingRobot
(
dingding
.
ROBOTWEBHOOK
,
fmt
.
Sprintf
(
"userCenter通知延迟,队列长度:kickChan:%d,broadcastChan:%d"
,
l
,
l2
),
true
);
sErr
!=
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment