Question
Pegasystems Inc.
US
Last activity: 19 Oct 2015 14:51 EDT
Dynamically update the agent schedules across nodes
If we just update the agent schedule,via activity, we need to manually stop and start the agent in SMA so that the new schedule will be picked by the agent. We have many nodes and we dont want to go to each node and restart the agent. Please let me know if there is any way to dynamically update the agent schedules
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
Hi Aditya,
I am not sure if the link you sent helps. I have created a discussion earlier on PRPC development, which has more details.
https://mesh.pega.com/thread/50089
Thank you,
Rao
Citicorp Services India Private Limited
IN
Hi Narasimha
------ If we just update the agent schedule,via activity, we need to manually stop and start the agent in SMA so that the new schedule will be picked by the agent?
Ans: If we update the agent schedule via activity, we do not need to stop and start the agent in SMA, Every 10 or 15 mins master agent usually run. The master agent checks if there is any agent change in the agent schedule, if there is a change the new schedule will be reflected once after the master agent run.
Please let me know if this helps.
Thanks,
Gowrishankar.
Citicorp Services India Private Limited
IN
Hi,
In addition to my above answer, you can write an activity to browse all the available nodes and update the agent schedule for each of those nodes. For list of nodes, you can use the OOTB list View InstanceListFiltered in Data-Agent-Queue class to get the list of nodes. You can Obj-Open by Ruleset and node name and update the changes.
Thanks,
Gowrishankar.
Pegasystems Inc.
US
Hi Gowrishankar,
I appreciate your response. I will test this and let you know the results.
Thank you,
Rao
Pegasystems Inc.
US
Hi Gowrishankar,
I have update the agent schedule on all nodes via activity and when i open the data-agent-queue it was updated with new schedule. I have waited for 10 mts because the setting (wake up interval for master agent is 600,000). But i am still seeing the old schedule. (i have changed from 30secs to 31 secs).
How can we verify if the master agent is running and updating the schedules properly.
Thank you,
Rao
Pegasystems Inc.
US
The system will not pick the agent schedules without start/stop of agents or restart of the JVM. We need to write some Java code to do that as per the above post mentioned by Jon.
BNY Mellon
US
See: AgentManager - How to programatically manage bulk init/start/stop of Agents
This should be made a standard feature, thanks.