guides:reference:jobs:parallel_jobs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
guides:reference:jobs:parallel_jobs [2019/12/23 12:25] – ↷ Page moved from guides:howto:parallel_jobs to guides:reference:jobs:parallel_jobs yspeerte | guides:reference:jobs:parallel_jobs [2024/07/03 12:31] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{indexmenu_n> | ||
+ | |||
+ | ====== 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 '' | ||
+ | <code xml> | ||
+ | < | ||
+ | <queue name=" | ||
+ | <queue name=" | ||
+ | <queue name=" | ||
+ | <queue name=" | ||
+ | <queue name=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | The API call can specify the queue: | ||
+ | <code xml> | ||
+ | < | ||
+ | <head passwd=" | ||
+ | < | ||
+ | node_name=" | ||
+ | stored_job_name=" | ||
+ | description=" | ||
+ | evaluate=" | ||
+ | sched_day=" | ||
+ | sched_now=" | ||
+ | sched_time=" | ||
+ | verbose_log=" | ||
+ | sched_queue=" | ||
+ | /> | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Here, the '' | ||
+ | |||
+ | > 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: | ||
+ | * [[guides: | ||