手动路由到应用程序实例 [英] Manually route to application instances

查看:66
本文介绍了手动路由到应用程序实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为OpenPaaS,Cloud Foundry支持仅通过简单的VMC命令来扩展和缩小应用程序实例: vmc实例< appname> < num | delta> ,据我所知。

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.

甚至Cloud Foundry也支持将用户请求动态路由到实例。

Even Cloud Foundry supports dynamically route the "user" requests to the instances. It's very good!

在这里,我想知道的是Cloud Foundry是否支持我手动(可能是某些命令或其他技术手段)使用实例的路由?例如,当我扩展两个实例时,其中一个实例非常忙于响应用户请求,因此在这种情况下,我想手动将用户请求路由到懒惰实例!

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!

推荐答案

在Cloud Foundry中,当您向应用程序中添加实例时,它实际上会进行粘性会话。用户无法将流量定向到特定实例。

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.

这篇关于手动路由到应用程序实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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