TorqueBox
  1. TorqueBox
  2. TORQUE-880

Unable to change the Quartz threadpool size to accomodate different 'job' pool sizes

    Details

    • Type: Bug Bug
    • Status: Closed Closed (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: 2.0.3
    • Fix Version/s: 2.1.0
    • Component/s: Jobs
    • Labels:
      None
    • Similar Issues:
      Show 10 results 

      Description

      When changing the min/max counts for the Scheduled Jobs pooling subsystem, this does not change the number of Quartz job threads running.

      torquebox.rb
      TorqueBox.configure do
        pool :jobs do
          min 8
          max 20
          type :bounded
        end
        
        8.times do |x|
          job MyJob do
            name "my-job-#{x}"
            cron '* * * * * ?'
            config do
              number x
            end
          end
        end
      

      Give the above configuration, I would expect that there would be at least 8 concurrently executing jobs. Only 3 ever execute concurrently. This appears to be because org.quartz.simpl.SimpleThreadPool=3. And this does not change.

      This in effect negates the usefulness of being able to set the min/max pools size for the jobs subsystem. From the logs we can see that the number of threads available for Quartz jobs is set to 3.

      14:36:23,509 INFO  [org.quartz.core.QuartzScheduler] (MSC service thread 1-12) Scheduler meta-data: Quartz Scheduler (v1.8.5) 'JobScheduler$2012-07-06_torquebox-knob.yml' with instanceId 'stiletto.local1341693383488'
        Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
        NOT STARTED.
        Currently in standby mode.
        Number of jobs executed: 0
        Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 3 threads.
        Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
      

        Activity

        Show
        Toby Crawley
        added a comment - Done: https://github.com/projectodd/jboss-polyglot/commit/fc7504f7dc6296689d3325c9d278276da1bfa1ea https://github.com/torquebox/torquebox/commit/b0786017334604f9bc1cb6fc8ce821c031c30bb4

          People

          • Assignee:
            Toby Crawley
            Reporter:
            Jeremy Hinegardner
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: