APM 10.7 - Regular expression in loadbalancing.xml after CA APM 10.7 migration
search cancel

APM 10.7 - Regular expression in loadbalancing.xml after CA APM 10.7 migration


Article ID: 230931


Updated On:


CA Application Performance Management (APM / Wily / Introscope)


The load balancing rules do not work for MOM renamed agents


The loadbaklncing.xml contains the following rule


<agent-collector name="MySHOP_co03">
            <collector host="ibnbld004100" port="5001"/>


which should mean that agent ibnbld004162|UnknownProcess|myshop_prod_%1 connects to ibnbld004100 however this does not happen as can be seen from the screenshot.

The regex is valid and should match according the regex101/com and the file parses ok as can be seen in the MOM log (attached)


11/01/21 04:50:53.457 AM EDT [INFO] [main] [Manager.LoadBalancer] Loaded loadbalancing.xml
11/01/21 04:50:53.459 AM EDT [DEBUG] [main] [Manager.LoadBalancer] Loaded agent-collector: MySHOP_co03, agent expressions: [.*\|.*\|myshop_prod_%1], exclude: [[email protected]]


The problem appears to be that the collector list sent to the agents is only sent for the original name i.e. no list appears to get sent based on the MOM renamed agent 


11/01/21 05:00:53.474 AM EDT [DEBUG] [PO:main Mailman 6] [Manager.LoadBalancer] Updated ibnbld004162|UnknownProcess|myshop_prod_1 with new list {[email protected], [email protected], }@1635757253473
11/01/21 05:00:53.475 AM EDT [DEBUG] [PO:main Mailman 6] [Manager.LoadBalancer] Updated ibnbld004162|UnknownProcess|myshop_prod_ with new list {ibnbld0041015001, [email protected], }@1635757253475
11/01/21 05:00:53.478 AM EDT [DEBUG] [PO:main Mailman 6] [Manager.LoadBalancer] Updated ibnbld004099|Infrastructure|Agent with new list {[email protected], [email protected], }@1635757253476
11/01/21 05:00:53.479 AM EDT [DEBUG] [PO:main Mailman 6] [Manager.LoadBalancer] Updated ibnbld004162|UnknownProcess|myshop_prod_2 with new list {[email protected], [email protected], }@1635757253478
11/01/21 05:00:53.482 AM EDT [DEBUG] [PO:main Mailman 6] [Manager.LoadBalancer] Updated ibnbld004102|Infrastructure|Agent with new list {[email protected], [email protected], }@1635757253481


note no list sent to any of the %n agents


Release : 10.7.0

Component : Introscope


The lodbalancing.xml agent regex expressions only work against the original or requested agent name - if the agent is renamed by the MOM due to a duplicate name detected that loadbalancing rules do not take account of the new name