How to programattically find the node a user logged in multi node environment without checking SMA
We are working on Application Support project. The application was build in Pega 6.3 SP1.
We have 4 servers and each server has 4 nodes and totally our application running on 16 nodes. As part of daily job/ticket analysis, we have to do remote tracing on the user's session to trace the rules. To trace the remote session first we have to find the node user logged in to and it takes time to check each node requestor management. Please let me know if there is any easy was to find it programattically?
pr_perf_stats table has performance details of all the requestor types in all nodes of that cluster. Using that table we can filter browser requestors on the node of interest and can get all browser requestors logged in to system.
If you get all the details from this table, better build a logic using it.
pr_perf_stats data is written on logoff,pasivation, activation or hourly intervals. It will not reflect current authenticated users.
To see users cross node one must make calls cross node. AES stores the URL of each node and uses ExecuteRemoteMBeanOperation SOAP connector to call the RemoteMBean service on each node and pass in a request to run the RequestorManagement mbean. RequestorManagement mbean is what is used to deliver requestor list for prsysmgmt. Alternatively, one could use the platform 'remote jmx' API and directly call the same mbeans as used by prsysmgmt