WSO2 APIM 4.2.0 active-active部署中第二个节点未接收JMS事件求助
问题:WSO2 APIM 4.2.0 Active-Active部署事件接收异常调试
环境与配置说明
- 基于WSO2 APIM 4.2.0搭建Active-Active环境,跳过分析功能相关步骤(步骤5、10)
- 两个节点a1、b1部署在负载均衡器后,实例间可互相ping通,5672、9611、9711端口已开放
- 双节点运行时无
No receiver is reachable at URL Endpoint/Endpoints [tcp://wso2am-a1.internal:9611]或No receiver is reachable at URL Endpoint/Endpoints [tcp://wso2am-b1.internal:9611]日志,说明实例已建立连接
异常现象
- 仅a1运行时,a1可正常接收事件
- 启动b1后,a1停止接收事件,b1开始接收
- 停止b1后,a1也无法再接收事件
- 仅双节点同时启动时,两者均可接收事件;单节点运行时,仅最后启动的节点能接收事件
节点配置
a1节点配置
[[apim.gateway.environment]] name = "Default" type = "hybrid" provider = "wso2" display_in_api_console = true description = "This is a hybrid gateway that handles both production and sandbox token traffic." show_as_token_endpoint_url = true service_url = "https://localhost:${mgt.transport.https.port}/services/" ws_endpoint = "ws://gw.test.com:9099" #"ws://localhost:9099" wss_endpoint = "wss://gw.test.com:8099" #"wss://localhost:8099" http_endpoint = "http://gw.test.com" https_endpoint = "https://gw.test.com" [apim.throttling] event_duplicate_url = ["tcp://b1.internal:5672"] [[apim.throttling.url_group]] traffic_manager_urls = ["tcp://localhost:9611"] traffic_manager_auth_urls = ["ssl://localhost:9711"] type = "loadbalance" [[apim.throttling.url_group]] traffic_manager_urls = ["tcp://b1.internal:9611"] traffic_manager_auth_urls = ["ssl://b1.internal:9711"] type = "loadbalance"
b1节点配置
[[apim.gateway.environment]] name = "Default" type = "hybrid" provider = "wso2" display_in_api_console = true description = "This is a hybrid gateway that handles both production and sandbox token traffic." show_as_token_endpoint_url = true service_url = "https://localhost:${mgt.transport.https.port}/services/" ws_endpoint = "ws://gw.test.com:9099" #"ws://localhost:9099" wss_endpoint = "wss://gw.test.com:8099" #"wss://localhost:8099" http_endpoint = "http://gw.test.com" https_endpoint = "https://gw.test.com" [apim.throttling] event_duplicate_url = ["tcp://a1.internal:5672"] [[apim.throttling.url_group]] traffic_manager_urls = ["tcp://localhost:9611"] traffic_manager_auth_urls = ["ssl://localhost:9711"] type = "loadbalance" [[apim.throttling.url_group]] traffic_manager_urls = ["tcp://a1.internal:9611"] traffic_manager_auth_urls = ["ssl://a1.internal:9711"] type = "loadbalance"
调试请求
若配置无误,需通过哪些网络调试手段、开启哪些日志来定位问题根源?
内容的提问来源于stack exchange,提问作者WaZz
相关产品推荐
相关产品推荐

