2011. augusztus 16. 16:17
When I create a job to run a SOA service, a number of tasks are created as part of the job depending on various factors. Is it possible, once the tasks have all been added to the job, that no more are added? I don't care how many tasks are initially created for the job, only that no more are added when the job is running. Also, if possible I would like to set this option only for a job, and not for the whole cluster, so I'm interested in some way to do this preferably on the job level.
Is there some way to stop a job from growing (having more tasks assigned)?
Az összes válasz
2011. augusztus 17. 4:08
There're two ways to disabling grow for a SOA job:
1. Set AutomaticGrowthEnabled=false in scheduler setting, but this is a cluster wide setting and would impact normal job as well
2. Set AllocationAdjustInterval = -1 in service configuration file so that broker will not do resource adjust based on number of outstanding SOA requests, therefore grow is disabled, but this also means SOA won’t do shrink (removing tasks). This is per service level setting.
<!--configuration to control broker's monitoring behavior-->
Unfortunately, we don't support this type of setting in job level right now.
2011. szeptember 21. 16:07
I have been testing this today, and found that setting allocationAdjustInterval is having no effect. In my case, I have two compute nodes and when I start the job one compute node is offline. The job starts with a single task for the single online compute node. After some time, I bring the other compute node online. Literally one second after I bring the second compute node online, a second task is added to the running job, a task that uses the second compute node. It doesn't matter whether I set the allocationAdjustInterval to -1, or 300000, a second job is created almost instantaneously after I bring the second compute node online.
Is there some setting I can check to see that this setting should be working? Should the setting appear as an environment variable? Are the allocation adjustment passes logged to the SOA infrastructure trace? I am setting the SessionStartInfo.RequestedNodesList property to explicitly use the two compute nodes (e.g. setting it to "computenode1|computenode2"), does this have an effect? Also, the job has no other special settings - no min and max resources, and auto calculate resources is set.
Any help is appreciated.
2011. szeptember 27. 3:19
In that case you could try set AutomaticGrowthEnabled=false by "cluscfg setparams"
2011. október 3. 14:01
I actually found a working solution, and thought I should document it here for posterity. I could only get the job to not grow if, after the job had been created, I set ISchedulerJob.TargetResourceCount to be the number of tasks that were created for that job (ISchedulerJob.GetTaskList().Count). I also set the allocationAdjustInterval in the configuration file to -1. Only both of these setting applied together would stop the job from growing.
- Megjelölte válaszként: krolley 2011. október 3. 14:01