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

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

问题描述

我需要一个Akka群集来运行多个CPU密集型作业.我无法预测我需要多少CPU能力.有时负载很高,而在其他时间负载不多.我想自动缩放是一个不错的选择,这意味着,例如:我应该能够指定我最少需要2个演员,最多需要10个演员.随着负载的增加或减少,群集应随时间扩展或缩减.有没有办法做到这一点? 我猜,也许可以制作一个代码库的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的项目及其问题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天全站免登陆