是否可以自动缩放 Akka [英] Is it possible to Autoscale Akka

查看:19
本文介绍了是否可以自动缩放 Akka的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个 Akka 集群来运行多个 CPU 密集型作业.我无法预测我需要多少 CPU 能力.有时负载很高,而在其他时候,负载并不多.我想自动缩放是一个不错的选择,这意味着,例如:我应该能够指定我需要最少 2 个和最多 10 个 Actor.随着负载的上升或下降,集群应该随着冷却期而扩大或缩小.有没有办法做到这一点?我猜,也许可以制作代码库的 Docker 映像,并使用 Kubernetes 对其进行自动缩放.是否可以?是否有本地 Akka 解决方案?谢谢

I need an Akka cluster to run multiple CPU intensive jobs. I cannot predict how much CPU power I need. Sometimes load is high, while at other times, there isn't much load. I guess autoscaling is a good option, which means, example: I should be able to specify that I need minimum 2 and maximum 10 Actors. The cluster should scale up or down along with a cool off period as load goes up or down. Is there a way to do that? I am guessing, maybe one can make an Docker image of the codebase, and autoscale it using Kubernetes. Is it possible? Is there a native Akka solution? Thanks

推荐答案

如果你考虑一个这样的项目hseeberger/constructr 及其issue 179,原生Akka 解决方案应基于 akka/akka-management:

If you consider a project like hseeberger/constructr and its issue 179, a native Akka solution should be based on akka/akka-management:

该存储库包含用于检查、交互和管理 Akka 各个部分(主要是 Akka 集群)的接口.未来的添加可能会将这些概念扩展到 Akka 的其他部分.

This repository contains interfaces to inspect, interact and manage various Parts of Akka, primarily Akka Cluster. Future additions may extend these concepts to other parts of Akka.

有一个 kubernetes 演示.

这篇关于是否可以自动缩放 Akka的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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