Posted: 25 Oct 2017 11:24 EDT Last activity: 20 Oct 2018 4:39 EDT
Access Dynamic System Setting value specific to Node Classification
I have a reasons to access the value for agent/threadpoolsize in Rules. We are configuring this (in 7.1.9) in DSS, and we are also using node classification to vary the value by node type i.e. <env name="initialization/nodeclassification" value="background" /> in prconfig.xml.
It sounds like when you run @Utilities.getDataSystemSetting("Pega-Engine","prconfig/agent/threadpoolsize/background") on a background node it returns a value, but it does not if that is run on other node classifications. Is that correct?
If so, this isn't exactly what you're looking for but if nothing else you could run getDataSystemSetting() for background, see if it returns a value, and if not, check for a different node classification until you determine what the node is.
Unfortunately the API method just returns the value of the match on the key irrespective of which node it is, so I cannot test the result to determine which request to issue or use the result to infer the node.
I am still looking for ways to determine the classification name for the current node. I now have a simple function that will return a DDS specific to the node, but only if the classification name is passed as a parameter!
Specializing the prconfig values via nodeclassification is applicable to only those DASS which are configured as prconfig. While startup the prconfig corresponding to the appropriate node classification are read and available wherever they are referenced. The same is not applicable for DASS. And we do not have a public API that lets you read the prconfig settings.
We are facing a similar issue. We have multiple WebLogic nodes on separate physical servers. On each server we have server specific settings such as MQ queue manager name. At run-time, a node needs to know to what MQ queue manager to send/receive messages. Using DSS doesn't seem to help.
Thank you for posting your query in the PSC. This looks like an inactive post and hence, we suggest you create a new post for your query. Click on the Write a Post button that’s available on the top right pane of this page. Once created, please reply back here with the URL of the new post.
You may also refer this discussion link as a reference in the new thread.