WSO2 Business Rules Manager uses ruleTemplates within templateGroups, to derive business rules from. Each ruleTemplate will have a UUID - that is used to uniquely identify itself. When a ruleTemplate is specified under a worker node; SiddhiApps derived in business rules created out of that ruleTemplate will be deployed in the specified worker node.
- Go to the deployment.yaml file under <WSO2SP_HOME>/conf/dashboard
- Deployment configurations for the Business Rules Manager are specified under wso2.business.rules.manager
Provide the URL(s) of worker node(s) that is/are available to deploy SiddhiApps, under deployment_configs - in the format <HOST_NAME>:<PORT>
List down the UUIDs of required ruleTemplates under each node such that: when a ruleTemplate is specified under a worker node, SiddhiApps derived in the business rules created out of that ruleTemplate will be deployed in that specific node.
A rule template can be configured under more than one node, as long as its instanceCount is many
Notice that the rule template with UUID sweet-production-kpi-analysis has been configured under two worker nodes. So that, if a business rule is derived from sweet-production-kpi-analysis, the belonging SiddhiApps will be deployed in both the nodes.
Specify the username & password, that are common for all the worker nodes
The complete deployment configuration for Business Rules will look like the following