-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[improvement](query) Improve fe high concurrent query performance #7936
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
Conversation
|
optimized statistic, 5k connection query 'select 1' |
cc0b27c to
b5a6431
Compare
| } else if (conns >= ctx.getCatalog().getAuth().getMaxConn(ctx.getQualifiedUser())) { | ||
| } else if (conns.incrementAndGet() > ctx.getCatalog().getAuth().getMaxConn(ctx.getQualifiedUser())) { | ||
| conns.decrementAndGet(); | ||
| numberConnection.decrementAndGet(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why call numberConnection.decrementAndGet(); here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why call
numberConnection.decrementAndGet();here?
we should reduce the connection number when connect failed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I miss it.
|
|
||
| LOG.info("dispatch query job: {} to {}", DebugUtil.printId(queryId), topParams.instanceExecParams.get(0).host); | ||
| if (LOG.isDebugEnabled()) { | ||
| LOG.debug("dispatch query job: {} to {}", DebugUtil.printId(queryId), topParams.instanceExecParams.get(0).host); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually this log is useful when tracking a query. Does it really impact the performance?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
by the flame graph and the statistic provided above,for most users,query performance is the most important thing
morningman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| } else if (conns >= ctx.getCatalog().getAuth().getMaxConn(ctx.getQualifiedUser())) { | ||
| } else if (conns.incrementAndGet() > ctx.getCatalog().getAuth().getMaxConn(ctx.getQualifiedUser())) { | ||
| conns.decrementAndGet(); | ||
| numberConnection.decrementAndGet(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I miss it.
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
|
PR approved by anyone and no changes requested. |
Proposed changes
Issue Number: close #7935
Problem Summary:
Describe the overview of changes.
Checklist(Required)
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...