Hi Everyone,
How to avoid having OOTB unwanted agents, listeners and job schedulers getting enabled on all the nodes after application JVM’s restart ? Or is their a single OOTB activity or DSS to disable all agents at once ?
Thanks in advance.
The changes done in admin studio are valid until the restart. If the server restart is done, then those changes will be reverted. If you want to stop run of a agent even after the restart, then you need to disable the agent schedule.
From Pega 8 on wards, the agent schedules are created per the Node type.
For example, if the agent is designated to run on a “BackgroundProcessing” nodetype, then a agent schedule is created to run that agent on all the nodes for which the “BackgroundProcessing” nodetype is assigned.
For examp;le you can assign ‘Custom1’ node type for node1 and ‘Custom2’ node type for node2.
You can designate your agent to run on ‘Custom1’ and ‘Custom2’. Then you can observe that two agent schedules are created for your agent.
Now you can disable the agent schedule, if you do not want to run agent on particular node having particular node type.
Please see also the suggestions in Queue Processing and Job Scheduler