{{indexmenu_n>4}}
====== Parallel jobs using multiple queues ======
By default NetYCE uses a single queue, which can run up to 50 jobs in parallel, with a 2 second schedule interval.
**Example:**
when you schedule 50 jobs with 1 queue it takes up to a total of 100 seconds for all the jobs to be scheduled.
If you desire to schedule multiple jobs at the same time, you could increase the amount of queues.
**Example:**
when you schedule 50 jobs with 2 queues it takes up to a total of 50 seconds for all the jobs to be scheduled.
When the jobs are scheduled the job execution will always be parallel. This configuration change will only speed-up the process of scheduling multiple jobs at the same time.
The configuration below is an example with 5 queues. With this setup you can schedule 50 jobs in 20 seconds, assuming they are evenly spread (10 jobs per queue).
The ''tool_setup.xml'' file is configured with additional queues:
The API call can specify the queue:
Here, the ''sched_queue'' can be manipulated to choose any of the other specified queues. This will work best if the jobs are scheduled in the future (sched_now="no"), therefore have the parsing done for all jobs being added to the queues. At the specified time all queues are read and the jobs are scheduled.
> Be aware, that depending on the sizing of the server, the usage of complex relations and variable constructions and the amount of jobs you wish to push this could impact the responsiveness on the server.
More detail for each of the parts can be found at their respective pages:
* [[guides:reference:jobs:queue_operation|Queue Operation]]
* [[guides:reference:jobs:job_configuration|Job Configuration]]