Cloud Foundry/Bluemix负载平衡 [英] Cloud Foundry / Bluemix load balancing

查看:79
本文介绍了Cloud Foundry/Bluemix负载平衡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道,默认情况下,Bluemix/Cloud Foundry使用循环负载平衡.有办法改变吗?如果我以相同的路径部署2个应用程序,并且希望90%的流量变为蓝色,而10%的流量变为绿色,这可能吗?

I know that by default, Bluemix / Cloud Foundry use round-robin load balancing. Is there a way to change that? If I deploy 2 apps with the same route, and want 90% of my traffic to go to blue, and 10% to green, is that possible?

推荐答案

您必须部署两个以上的应用程序实例,才能对谁看到的内容进行50-50以上的控制.例如,如果您有10个实例,并且更新了1个实例,则可以拆分90-10.

You would have to deploy more than two instances of the app to have better than 50-50 control over who sees what. If you have 10 instances, for example, and you update 1, then you could get your 90-10 split.

查看此CF CLI插件: https://github.com/krujos/scaleover-plugin

Check out this CF CLI plugin: https://github.com/krujos/scaleover-plugin

这篇关于Cloud Foundry/Bluemix负载平衡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆