[
https://issues.apache.org/jira/browse/KYLIN-5495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17709217#comment-17709217
]
longfeiJiang commented on KYLIN-5495:
-------------------------------------
*DEV DESIGN*
Add the parameter _kylin.query.async-query.max-concurrent-jobs_ to set the
maximum number of asynchronous query jobs, the default is 0 and there is no
limit. Limit when it is greater than 0.
Create a class AsyncQueryRequestLimits and set an atomic variable
asyncQueryCount to record the number of asynchronous jobs on the current node.
asyncQueryCount +1 before running the asynchronous job, -1 after completion,
When requesting from NAsyncQueryController, if asyncQueryCount is greater than
or equal to max-concurrent-jobs, an exception will be thrown.
> Support setting the upper limit of the concurrent number of asynchronous
> queries
> --------------------------------------------------------------------------------
>
> Key: KYLIN-5495
> URL: https://issues.apache.org/jira/browse/KYLIN-5495
> Project: Kylin
> Issue Type: Improvement
> Reporter: longfeiJiang
> Assignee: longfeiJiang
> Priority: Major
>
> No concurrency control for asynchronous queries.
> If set kylin.query.unique-async-query-yarn-queue-enabled is true, a large
> number of situations similar to construction tasks will be generated at the
> same time, and concurrency control is required
--
This message was sent by Atlassian Jira
(v8.20.10#820010)