简体   繁体   English

如何在 Bluemix 中连接两个 HA 组容器?

[英]How to connect two HA group containers in Bluemix?

Our team has developed an application that runs on 3 diferent containers: a web deployment, a rest service and a cassandra db.我们的团队开发了一个在 3 个不同容器上运行的应用程序:一个 Web 部署、一个休息服务和一个 cassandra 数据库。

We have tested it on 3 single containers run like this:我们已经在 3 个单独的容器上进行了测试,如下所示:

cf ic run --name rest -p <port>:<port> --link cassandra:cassandra -d <DOMAIN>/rest

Same for web and a bit different for cassandra, and it works. Web 相同,cassandra 略有不同,它可以工作。

But we are unable to link it the same way using scalable container .但是我们无法使用可扩展容器以相同的方式链接它。

In what way can we deploy two scalable container groups (web and rest) that link to a third one (cassandra)?我们可以通过什么方式部署链接到第三个(cassandra)的两个可扩展容器组(web 和 rest)?

Probably the simplest way would be to use something like https://www.amalgam8.io/ and deploy the sidecar pointing to the private ip of the group's load balancer.可能最简单的方法是使用类似https://www.amalgam8.io/ 的东西,并部署指向组负载均衡器私有 ip 的 sidecar。 That way it would stay updated as you rollout new versions of the group (without having to redeploy the other related groups).这样,它会在您推出组的新版本时保持更新(无需重新部署其他相关组)。

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

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