简体   繁体   English

我可以将多个 WSO2 API 管理器(AM)与单个 WSO2 身份服务器(IS)链接起来吗?

[英]Can i link multiple WSO2 API Managers(AM) with a single WSO2 Identity Server(IS)?

The following link shows how to configure a single AM with the IS.以下链接显示了如何使用 IS 配置单个 AM。 https://docs.wso2.com/display/AM220/Configuring+WSO2+Identity+Server+as+a+Key+Manager https://docs.wso2.com/display/AM220/Configuring+WSO2+Identity+Server+as+a+Key+Manager

The parameter <ServerURL>https://${gateway-server-host}:{port}/services/</ServerURL> from IS config.xml file defines the AM URL to be associated to it. IS config.xml 文件中的参数<ServerURL>https://${gateway-server-host}:{port}/services/</ServerURL>定义了与其关联的 AM URL。

I want to link 2 different API managers to the same Identity Server WITHOUT LOAD BALANCER because the 2 AMs will be handled by 2 separate teams.我想在没有负载均衡器的情况下将 2 个不同的 API 管理器链接到同一个身份服务器,因为 2 个 AM 将由 2 个独立的团队处理。

Note: It works with load balancer but that is not my requirement.注意:它适用于负载均衡器,但这不是我的要求。

Thanks for your time:)谢谢你的时间:)

That config is only used to remove gateway cache when user roles etc. updated on IS side.当用户角色等在 IS 端更新时,该配置仅用于删除网关缓存。 So configuring this to point only a single APIM will have a very minimal effect.因此,将其配置为仅指向单个 APIM 的效果非常小。

Edit: This might work.编辑:这可能有效。 Add a new environment for the 2nd APIM node.为第二个 APIM 节点添加新环境。

</Environments>
    <Environment type="production" api-console="true">
        <Name>Production Gateway</Name>
        <Description>Production Gateway Environment</Description>
        <ServerURL>https://localhost:9444/services/</ServerURL>
        <Username>admin</Username>
        <Password>admin</Password>
        <GatewayEndpoint>http://localhost:8281,https://localhost:8244</GatewayEndpoint>
    </Environment>
    <Environment type="hybrid" api-console="true">
        <Name>Production and Sandbox</Name>
        <Description>Hybrid Gateway Environment</Description>
        <ServerURL>https://localhost:9445/services/</ServerURL>
        <Username>admin</Username>
        <Password>admin</Password>
        <GatewayEndpoint>http://localhost:8282,https://localhost:8245</GatewayEndpoint>
    </Environment>
</Environments>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM