负载平衡每个用户一个进程

发布于 2025-01-14 04:37:52 字数 362 浏览 3 评论 0原文

我正在运行一个 Web 应用程序(在 Ubuntu 20.04 VPS 上),它是单线程的并且计算量相当大;一个 R Shiny 应用程序。因此,我需要一个负载均衡器,将每个用户/会话路由到单独的进程。我需要动态发生这种情况,这样我就只运行当时实际使用的进程,并且当新用户访问该 URL 时启动一个新进程。

目前我使用 Shiny Server Pro 进行负载平衡,但该产品可能会在一年后进入维护阶段。

我已经研究了多种可能的替代方案,从简单的 nginx 配置到更复杂的 kubernetes 解决方案,但还没有找到我真正需要的。这似乎是一个微不足道的要求,我感觉我正在寻找错误的方向。

有谁知道如何做到这一点,并且能够指出我正确的方向?

提前致谢!

I am running a web app (on an Ubuntu 20.04 VPS) that is single threaded and quite computationally expensive; an R Shiny application. Therefore, I need a load balancer that routes each single user/session to a separate process. I need this to happen dynamically, so that I only have processes running that are actually being used at the time, and a new process is started when a new user visits the URL.

At the moment I use Shiny Server Pro for this load balancing, but this product is going in maintenance moment in probably a year.

I have looked at multiple possible alternatives, from a simple nginx configuration to a more complex kubernetes solution, but have not found exactly what I need. It seems like such a trivial requirement, that I get the feeling I am looking in the wrong direction.

Does anybody know how to do this, and is able to point me in the right direction?

Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文