How to Assign Nodes to Schedule jobs dynamically.

giribabu1
Giga Contributor

Hi,

I have a requirement to balance the load we need to assign the Nodes to Schedule jobs dynamically.

For Ex: Assume i have 5 nodes and 18 schedule jobs, based on the Node status (online/offline) we need to assign those 5 nodes which are in online to 18 schedule jobs. if any node status changes to offline that should be replaced with one of the other nodes which are in online status in that schedule job, and there is a common field in both the tables as id.

I am looking for a suggestion how to write a script using BR.

 

 

 

1 REPLY 1

Tony Chatfield1
Kilo Patron

Hi, this functionality is managed by the platform OOB and I do not believe that any customization is necessary.
If anything attempting to manage scheduled job\sys_trigger allocation manually increases the chances of something failing. Perhaps you could share details of the driver behind this requirement, IE details of when the OOB functionality has failed for your instance and the results of the case your raised with ServiceNow Support,

so that the forum can better understand your concerns.