问题
As an OpenPaaS, Cloud Foundry supports to scale up and down application instances just with simple VMC command: vmc instances <appname> <num|delta>
, as I know.
Even Cloud Foundry supports dynamically route the "user" requests to the instances. It's very good!
And here, what I want to know is if Cloud Foundry supports that I manually (maybe some commands or other technicalities) route for using the instance? For example, when I scale up two instances and one of them is very busy to response "user" requests, so in this case, I want to route the "user" requests to the "lazy" instance manually!
回答1:
In Cloud Foundry when you add instances to your app, it actually does sticky session. There isn't a way for users to direct traffic to a specific instance.
来源:https://stackoverflow.com/questions/12686567/manually-route-to-application-instances