Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
suggest-task
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
田川
suggest-task
Commits
33b7d636
Commit
33b7d636
authored
Oct 14, 2020
by
zhaoyanchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
内存问题是机器上的suggest监控任务导致,与此无关
parent
f3d1cd5f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
suggest-task.go
main/suggest-task.go
+6
-9
No files found.
main/suggest-task.go
View file @
33b7d636
...
...
@@ -100,6 +100,9 @@ func main() {
Workers
(
50
)
.
BulkActions
(
2000
)
.
FlushInterval
(
500
*
time
.
Millisecond
)
.
Backoff
(
elastic
.
NewExponentialBackoff
(
time
.
Duration
(
10000
)
*
time
.
Millisecond
,
time
.
Duration
(
100000
)
*
time
.
Millisecond
)
)
.
After
(
after
)
.
Do
(
context
.
Background
())
if
err
!=
nil
{
log
.
Print
(
err
.
Error
())
}
...
...
@@ -120,18 +123,12 @@ func main() {
return
}
for
i
:=
0
;
i
<
count
;
i
=
i
+
LEVEL_SIZE
{
for
j
:=
0
;
j
<
LEVEL_SIZE
;
j
++
{
log
.
Printf
(
"add to wait %d"
,
i
+
j
)
for
j
:=
0
;
j
<
count
;
j
++
{
wg
.
Add
(
1
)
go
queryIndex
(
(
i
+
j
)
*
TABLE_SPLIT_STEP_SIZE
,
datawareDB
,
bulkProcessor
,
&
wg
)
go
queryIndex
(
j
*
TABLE_SPLIT_STEP_SIZE
,
datawareDB
,
bulkProcessor
,
&
wg
)
}
wg
.
Wait
()
log
.
Println
(
"wait finish "
)
}
wg
.
Wait
()
fmt
.
Println
(
"all thread has read maps"
)
...
...
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