Question
TATA CONSULTANCY SERVICES
IN
Last activity: 23 Feb 2017 2:28 EST
Pega 7 SystemCleaner Agent Question
Hi,
In a Multi-Node Environment, Pega 7 SystemCleaner Agent should be running on ALL Nodes or Can it be enabled ONLY on 1 or 2 Nodes ?
Pega-RULES | SystemCleaner |
Can you please help me in knowing about this.
Thanks
HariKumar Alampuru
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
Enable the agent in one node.
Enable the agent schedules in all other nodes.
It means,the agent will be enable in only one node and disabled in all other nodes.Where as enable the agent schedule in all the nodes.
-
Wojciech Kusmierczuk
Updated: 24 Jan 2017 23:47 EST
TATA CONSULTANCY SERVICES
IN
Appreciate you in taking time to reply to this discussion.
If it needs to be running on Only 1 Node, can you please help me in knowing why the Agent in the Agent Schedule should be Enable on all the Nodes ? Also, do we have any thesis on why it can run on only Node.
Thanks
Hari Kumar Alampuru
Pegasystems Inc.
IN
I hope below thesis will answer your query:
For each Agents rule, the system creates Agent Schedules for each node in a multi-node system. However, for some Legacy-mode agents, contention can occur. As an example, suppose you have a system with four nodes, and an agent has ten tasks that are queued for processing. The agent on Node A picks the first task from the queue, locks the associated work object, and begins processing that task.
The agent on Node B goes to the queue and also picks the first task (which is still there, as it hasn’t been completed). When it tries to get a lock on the work object, it is blocked (since Node A has that lock); the agent on Node B then either goes back to sleep, not having accomplished anything, or chooses the next task in the queue and begins processing that.
Now Node C goes to the queue. It tries the first item, and finds that locked, and then tries the second, and finds that locked. It finally picks up the third item (having wasted system resources trying to process the first two tasks) and processes that. And Node D has to go through the first three tasks before getting to one that isn’t locked.
I hope below thesis will answer your query:
For each Agents rule, the system creates Agent Schedules for each node in a multi-node system. However, for some Legacy-mode agents, contention can occur. As an example, suppose you have a system with four nodes, and an agent has ten tasks that are queued for processing. The agent on Node A picks the first task from the queue, locks the associated work object, and begins processing that task.
The agent on Node B goes to the queue and also picks the first task (which is still there, as it hasn’t been completed). When it tries to get a lock on the work object, it is blocked (since Node A has that lock); the agent on Node B then either goes back to sleep, not having accomplished anything, or chooses the next task in the queue and begins processing that.
Now Node C goes to the queue. It tries the first item, and finds that locked, and then tries the second, and finds that locked. It finally picks up the third item (having wasted system resources trying to process the first two tasks) and processes that. And Node D has to go through the first three tasks before getting to one that isn’t locked.
To prevent this contention, it is recommended that one node be chosen to do the agent processing.
Pegasystems Inc.
IN
Hi Hari,
It should be running on all the nodes. In past, we have seen customer has raised an issue with PRPC 6.3 version they are running into out of memory errors due to system cleaner agent.
It was identified that the System cleaner Agent was not running in one of the node which resulted in the growth of data in pr_sys_context table. After running the agent the data was removed.
So based on this scenario, I will recommend you to run systemCleaner Agent on all nodes. We will wait and see what other folks thought about the same considering you are using a pega 7 version.
Regards,
Sudhish OP
TATA CONSULTANCY SERVICES
IN
Appreciate you in taking time to reply to this discussion. Sure we'll wait for others to reply.
JPMorgan Chase & Company
US
Hi,
Please check below PDN URLs
https://community.pega.com/sites/default/files/help_v718/procomhelpmain.htm
https://pdn.pega.com/troubleshooting-agents/troubleshooting-agents
TATA CONSULTANCY SERVICES
IN
Hi,
I'm still looking for insights on this.
Thanks
HariKumar Alampuru
Pegasystems Inc.
IN
Hi
By default, this agent runs the standard Code-.SystemCleaner activity once every 24 hours for housekeeping tasks, which include purging the following items:
- Older records (instances) from log tables
- Any requestors that have had no activity during at least 48 hours
- Rows from the pc_events database table according to the EventsRetentionPeriod Dynamic System Setting (the default retention period is 90 days)
- Any nodes that have not responded to the pulse for 30 days
Since for each agents rule, the system creates an Agent Schedule data instance for each node in a multi-node system thus in order to efficiently manage your cluster, you can dedicate certain nodes to run only selected functions, which includes batch processing ( agents ) , search, and services etc . You can ensure that a node performs only the required functions by configuring it to run only the function-related agents.It is easy to monitor as well.
So, my vote will go for having a dedicated node for this .