WSO2 API Manager(wso2am-4.0.0) - API 未部署到集群设置中的第二个节点
我正在使用最新的 API Manager(wso2am-4.0.0),并且我正在尝试在 2 个独立的服务器中实现 2 个节点的集群。我正在尝试根据以下文档同步 API,并相应地在两个节点中设置部署.toml 文件。
目前,一旦从第一个节点部署,API 就会出现在两个节点中。但是,当我尝试访问第二个节点中的 API(通过使用 Postman 请求)时,会导致找不到 404 资源。有趣的是,如果我重新启动第二个节点,API 也会开始在第二个节点中工作。
对此的任何解决方案都是最受欢迎的。 提前致谢。
I'm using the latest API Manager(wso2am-4.0.0) and I am trying to implement the clustering of 2 nodes in 2 separate servers. I am trying to sync the APIs according to the below documentation, setting up deployment.toml files in both nodes accordingly.
Currently, the APIs appear in both the nodes once deployed from the 1st node. But, when I try to access the API in the 2nd node(by requesting using Postman), it results in a 404 resource not being found. Interestingly, if I restart the 2nd node, the API starts working in the 2nd node as well.
Any solution for this is most welcome.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下配置适用于 API 在节点之间同步。
节点 1
节点 2
PS:在文档中,第二个配置的 IP 与本地主机 IP 一起提及,需要如上所述进行更正。
https://apim.docs.wso2.com/en/latest/install-and-setup/setup/single-node/configuring-an-active-active-deployment/
步骤8号。
The below configuration worked for the APIs to sync between the nodes.
Node 1
Node 2
PS: In the documentation, the 2nd configuration's IP is mentioned with the localhost IP which needs to be corrected as above.
https://apim.docs.wso2.com/en/latest/install-and-setup/setup/single-node/configuring-an-active-active-deployment/
Step number 8.