SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Job Queues

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Job Queues
Author Message
Peter



Joined: 08 Jul 2002
Posts: 5

Post Job Queues Reply with quote

Two questions:

1) How do I determine the optimal number of job queues and
the size of the each job queue? Is there any formula
that I can use to determine this number? We have a box
with 2GB of RAM, and jobs seem to be hanging. I'm thinking
of creating a separate job queue for each job to try to
avoid this. Do you have any other suggestions?

2) If we are running v3.3.5, can we upgrade directly to
v3.4.1? If not, where can I download an intermediate
version?

Thanks.

Tue Jan 07, 2003 5:18 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7963

Post Re: Job Queues Reply with quote

1) Job queues have not much to do with the performance but rather they allow you to define virtual job simultaneous job streams.
So the number of queues depends on your business requirements.

You have to assign each job to a certain job queue.

If, for example, you need to schedule 10 synchronous jobs and want to be able to run no more than 2 jobs at the same time (let’s say 4 consecutive jobs in one stream and the rest in the second stream) you would need 2 job queues.

Multiple queues are like multiple asynchronous scheduling systems. Using multiple job queues and also using asynchronous and synchronous job types you can create any parallel and sequential job processing.

2) Yes, you can upgrade directly to the most recent version

: Two questions: 1) How do I determine the optimal number of job queues and
: the size of the each job queue? Is there any formula
: that I can use to determine this number? We have a box
: with 2GB of RAM, and jobs seem to be hanging. I'm thinking
: of creating a separate job queue for each job to try to
: avoid this. Do you have any other suggestions?

: 2) If we are running v3.3.5, can we upgrade directly to
: v3.4.1? If not, where can I download an intermediate
: version?

: Thanks.

Tue Jan 07, 2003 5:56 pm View user's profile Send private message
Peter



Joined: 08 Jul 2002
Posts: 5

Post Re: Job Queues Reply with quote

So, if I have 2 main types of jobs that need to be run
for x customers, would it make more sense to have 2
main job queues, or have x job queues?

Tue Jan 07, 2003 8:14 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7963

Post Re: Job Queues Reply with quote

I cannot provide you with an exact answer because again the optimal configuration depends very much on how you want to run your jobs as well as it depends on your job specifics such duration, system resource usage, interdependencies, and so on.

For example, can jobs for customer A, customer B and customer C run at the same time?
Do these jobs depend on the other common processing?
How long your jobs take to run?

If you are not sure what you need start with one queue and build synchronous jobs and then add more queues as needed (in many places people use just 1 queue).

For your consideration here are just 3 sample scenarios.
Case 1:
You've got 2 customers A and B and 3 jobs for each of them 1A, 2A, 3A, and 1B, 2B, 3B. Perhaps jobs 1A and 1B take each 10 hours to run. All other jobs take only 5 seconds to run and you cannot run other jobs for the same customer until first job (1A/1B) is complete.
If 1A and 1B CAN run at the same time you can use 2 separate job queue, one for each customer using synchronous job types (or run them asynchronously in 1 or 2 queues and make other jobs physically dependent on jobs 1A and 1B).
If 1A and 1B CANNOT run at the same time you only need 1 job queue.

Case 2:
Same 2 customers and 3 jobs for each of them. Each job now runs for 1 hour, and also there is common job 2AB that can run only after 1A and 1B are complete. Job 2AB does not have to wait for jobs 2A, 2B, 3A, 3B to complete and can run immediately after 1A and 1B.
Therefore you need at least 3 job queues and you would assign job 2AB to the separate third queue.

Case 3.
You've got 10 jobs each takes about 5 minutes to run and must run at least twice every hour.
If you run them one after another, one full run will take 50 minutes (10 times 5). Therefore, you cannot run such jobs as often as needed because the full run may not exceed 30 minutes. The solution to this problem is to assign different jobs to different queues and run them parallel. You would need at least 2 job queues with 5 jobs assigned to each queue. This way the full run will take ideally 25 minutes (assuming that the computer can execute multiple jobs at the same time with the same performance) and so this way each job can run twice every hour.

Another option is to set jobs to run asynchronously. Using this method you can use only one job queue but because each running job will need more system resources (a separate instance of the job engine) you need to get a faster machine with more memory.

: So, if I have 2 main types of jobs that need to be run
: for x customers, would it make more sense to have 2
: main job queues, or have x job queues?

Tue Jan 07, 2003 10:58 pm View user's profile Send private message
Peter



Joined: 08 Jul 2002
Posts: 5

Post Re: Job Queues Reply with quote

How does the size of the job queue (max. 10MB) affect this whole process?

If I have 5 asynchronous jobs each using the max. 10MB, does this mean
that 24x7 would take up 50MB of memory?

Thu Jan 16, 2003 11:04 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7963

Post Re: Job Queues Reply with quote

24x7 saves parameters of queued jobs in the job queue folder. Usually 1 jobs takes less than 2 K. So if you have 5 job instances queued or running at the same time you need 10-20 KBytes only. Size of job queue has nothing to do run the amount of memory required to run jobs.

1MB job queue should be suffcient to run hundrends of simultaneous jobs.

: How does the size of the job queue (max. 10MB) affect this whole process?

: If I have 5 asynchronous jobs each using the max. 10MB, does this mean
: that 24x7 would take up 50MB of memory?

Thu Jan 16, 2003 1:33 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.