Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-709

Consider Bounding Gremlin Pool Queue Size

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Done
    • 3.0.2-incubating
    • 3.5.0
    • server
    • None

    Description

      Wonder if it's a good idea to make the queue size to the "gremlinPool" configurable and thus bounded.

      final BlockingQueue<Runnable> queue = new ArrayBlockingQueue<>(queueSize);
      gremlinExecutorService = new ThreadPoolExecutor(n, n,
              0L, TimeUnit.MILLISECONDS,
              queue);
      

      If the queue exceeded queueSize it would throw: RejectedExecutionException. This approach would also provide another metric to capture/report: queue.size().

      Attachments

        Issue Links

          Activity

            People

              spmallette Stephen Mallette
              spmallette Stephen Mallette
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: