Normal Jobs Vs Multi Instance Jobs

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

Normal Jobs Vs Multi Instance Jobs

Post by zulfi123786 »

What is the underlying difference between the two kind of jobs and what feature when added to the jobs makes it capable of running in different instances.

Thank you.
saikishore_k
Participant
Posts: 4
Joined: Fri Jan 15, 2010 10:04 pm

Post by saikishore_k »

Hi,

For Normal jobs, only one instance can be running at a given point of time. And if this job aborts, then either you have to reset or re-compile the job for executing again.

Generally a job which will be used in various other jobs will be made multi-instance. So that all the jobs which are using this common job can invoke at the same time. And when you make it multi-instance, you distinguish the caller of the common job for verifying logs in director based on Invocation ID. Invocation id has to be different when calling the common job from other jobs.
Now suppose, a particular instance of the common job got aborted then you need not recompile the original common job. You can reset that particular instance and then run again. Only logic changes in the common job require re-compiling.

To make a job multi-instance, go to Job Properties page and select the option 'Allow multiple instance' under general tab.
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

Post by zulfi123786 »

Thanks for that..... But i am aware of this stuff....

I was asking about the underlying reason and not the explanation of what multi instance jobs are.

Why normal jobs run only in a single instance and muti instance jobs can be invoked simultaniously, is there any architectural difference between the two kinds of jobs.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No, there's no 'architectural' difference at all. It's just that the addition of the Invocation ID to the job's name at runtime results in a unique job name allowing multiple invocations of the 'base' job name to run.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Enabling multi-instance makes a difference in how the job is compiled, which allows DataStage to invoke the runtime engine with a job name including a dot. (Even when you start a multi-instance job with no invocation ID the dot is still there.) It remains true that a job with an identical name to an already-running job can not be started. This is managed in the runtime engine.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply