Skip to content
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

oltp concurrent requests share multi executors instead of one executor #1258

Merged
merged 1 commit into from
Nov 18, 2020

Conversation

javeme
Copy link
Contributor

@javeme javeme commented Nov 12, 2020

also reduce the wake-up period of consumers from 1s to 1ms

Change-Id: I2631e03cd4c60fce5a337c138f6921a59beaa24d

@codecov
Copy link

codecov bot commented Nov 12, 2020

Codecov Report

Merging #1258 (55482ea) into master (b4c767b) will decrease coverage by 6.85%.
The diff coverage is 42.87%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1258      +/-   ##
============================================
- Coverage     69.19%   62.33%   -6.86%     
- Complexity     5401     5767     +366     
============================================
  Files           328      374      +46     
  Lines         26334    31355    +5021     
  Branches       3750     4401     +651     
============================================
+ Hits          18222    19546    +1324     
- Misses         6333     9826    +3493     
- Partials       1779     1983     +204     
Impacted Files Coverage Δ Complexity Δ
...api/src/main/java/com/baidu/hugegraph/api/API.java 69.04% <ø> (+3.49%) 0.00 <0.00> (ø)
...n/java/com/baidu/hugegraph/api/auth/AccessAPI.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...n/java/com/baidu/hugegraph/api/auth/BelongAPI.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...in/java/com/baidu/hugegraph/api/auth/GroupAPI.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...n/java/com/baidu/hugegraph/api/auth/TargetAPI.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...ain/java/com/baidu/hugegraph/api/auth/UserAPI.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...com/baidu/hugegraph/api/gremlin/GremlinClient.java 90.90% <ø> (ø) 0.00 <0.00> (ø)
.../java/com/baidu/hugegraph/api/job/ComputerAPI.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...ain/java/com/baidu/hugegraph/api/raft/RaftAPI.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...a/com/baidu/hugegraph/api/schema/EdgeLabelAPI.java 59.72% <ø> (+2.77%) 0.00 <0.00> (ø)
... and 316 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 85065a3...55482ea. Read the comment docs.

return;
}
int workers = this.config().get(CoreOptions.OLTP_CONCURRENT_THREADS);
if (workers > 0) {
executor = Consumers.newThreadPool(EXECUTOR_NAME, workers);
executors = new Consumers.ExecutorPool(EXECUTOR_NAME, workers);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If create Consumers.ExecutorPool for every OltpTraverser, how share the executors in Consumers.ExecutorPool?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all OltpTraverser share one ExecutorPool (executors)

Linary
Linary previously approved these changes Nov 17, 2020
also reduce the wake-up period of consumers from 1s to 1ms

Change-Id: I2631e03cd4c60fce5a337c138f6921a59beaa24d
@zhoney zhoney merged commit 74b013e into master Nov 18, 2020
@zhoney zhoney deleted the oltp-executor-pool branch November 18, 2020 13:30
tmljob pushed a commit to tmljob/hugegraph that referenced this pull request Dec 10, 2020
apache#1258)

also reduce the wake-up period of consumers from 1s to 1ms

Change-Id: I2631e03cd4c60fce5a337c138f6921a59beaa24d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants