Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-14343

Reduce thread usage for ProvisioningTask

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0.0
    • Component/s: Cloud Provisioner
    • Labels:
      None
    • Release Notes:
      Use a shared thread pool for provisioning tasks to increase thread utilization
    • Rank:
      1|i00hrr:

      Description

      Currently when executing ProvisioningTask, it occupies a thread and do polling from there (poll for RUNNING or DELETED status). If there are large amount of concurrent runs, a large amount of threads is needed. We should refactor such that each execution just do a limited amount of work (e.g. check the status) and then resubmit the task to the executor for the next iteration. In that way, we can control the number of threads by having them sharing a thread pool.

        Attachments

          Activity

            People

            • Assignee:
              terence Terence Yim
              Reporter:
              terence Terence Yim
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: