Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-1419

Use cached thread pools in DataStreamManagement

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.3.0
    • Streaming
    • None

    Description

      In DataStreamManagement, the requestExecutor and writeExecutor are created by Executors.newFixedThreadPool(..). A drawback is that the threads in the fixed thread pool are using resource even if the executors are idle.

      One way to improve it is to use Executors.newCachedThreadPool(..). However, all the newCachedThreadPool(..) methods provided by Executors do not take a maximumPoolSize parameter. We will define a newCachedThreadPool(..) method which takes a maximumPoolSize parameter.

      Attachments

        Issue Links

          Activity

            People

              szetszwo Tsz-wo Sze
              szetszwo Tsz-wo Sze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m