Cloud Foundry / Bluemix load balancing

泄露秘密 提交于 2019-12-01 10:50:23

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.

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

Configuring the load balancer is not possible.

One workaround you could use to "simulate" a load balancer would be to set up an application which fronts all of the requests. Bind the route to this application and then include some logic inside it which just redirects traffic to the other services in a 9:1 ratio.

The risks of using this approach are:

  • Your load-balancer application could theoretically go down
  • Your load-balancer application doesn't know the status of the other two services so might route traffic to an offline service instance

You can minimize the first risk by using multiple instances on the "load balancer" app.

You want to implement Blue-Green Deployment.

If you have deployed your Cloudfoundry PaaS on AWS, you might take help of AWS Route53 to manage it.

You can specify your routes of the apps in route53 and send weighted traffic.

Then You can specify how much traffic you want to send to one route and how much to the other.

Hope it Helps.. :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!