[英]IBM Cloud Code Engine: Stateful Apps and Sticky Sessions, Scaling Issues
My first post on stackoverflow;我在 stackoverflow 上的第一篇文章; here goes!
开始!
I just discovered IBM Code Engine and am excited to try it out, I tried deploying a docker image of mine this weekend.我刚刚发现了 IBM Code Engine,很高兴尝试一下,我在这个周末尝试部署了我的 docker 映像。 though I'm having some issues with scaling, Before getting to the scaling issues I have some questions about IBM Cloud Code Engine in general: with my interactive application in mind:
虽然我在扩展方面遇到了一些问题,但在解决扩展问题之前,我一般对 IBM Cloud Code Engine 有一些疑问:考虑到我的交互式应用程序:
container 1
and clicks a button that executes server-side code I would not want that code executed in container 2
;container 1
中并单击执行服务器端代码的按钮,我不希望在container 2
中执行该代码; it should be in container 1
.container 1
中。 Does IBM Cloud Code Engine support this out of the box? Note that I have these questions whether concurrency per instance is 1 or more users.请注意,无论每个实例的并发是 1 个还是多个用户,我都有这些问题。
Notes on scaling: I successfully deployed my application and it looked as expected.关于扩展的注意事项:我成功部署了我的应用程序,它看起来符合预期。 However, as the only user I saw multiple instances running rather than one (2, sometimes 3 instances).
但是,作为唯一的用户,我看到运行多个实例而不是一个(2 个,有时是 3 个实例)。 When I opened another browser and logged in as another user the same thing happened.
当我打开另一个浏览器并以另一个用户身份登录时,同样的事情发生了。 Double or triple the instances needed were running.
运行所需实例的两倍或三倍。 Can someone advise?
有人可以建议吗? Going back to my questions above, my hope is that interacting with the app does not trigger additional instances.
回到我上面的问题,我希望与应用程序的交互不会触发额外的实例。
I can provide a simple Dockerfile and app code if helpful.如果有帮助,我可以提供一个简单的 Dockerfile 和应用程序代码。
ibmcloud ce app create --ephemeral-storage
as a param ibmcloud ce app create --ephemeral-storage
指定为参数Runtime settings
section you can specify a concurrency value.Runtime settings
部分指定并发值。 That determines the value how many threads/requests one instance will process in parallel.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.