gpt4 book ai didi

docker - 通过主动-备用部署将karaf从传统部署迁移到云

转载 作者:行者123 更新时间:2023-12-02 11:48:42 25 4
gpt4 key购买 nike

目前我们有如下的karaf部署

  • 其 Activity 备用
  • Standby的启动级别为50,因此故障转移将很快进行,因为系统 bundle 包处于启动状态而用户 bundle 包处于安装状态
  • 一旦 Activity 关闭备用接管。

  • 现在,根据当前的研究,我们计划迁移到kubernetes

    Kubernetes将为我们创建1个pod,我们将幸福状态声明为1
    意味着如果POD下降,它将自动启动新的,但是我担心的是
    新POD的启动将花费更多时间,与传统部署,待机
    处于半 Activity 状态。

    我们如何在kubernetes中实现这种主动待机?

    最佳答案

    Tomislav Mikulin在评论中提供的答案:

    That depends on if you app is stateless or not...if its stateless that just use more then one pod (like 2 or 3) for your app, and you should be all set...

    If you don't want (or can't) have multiple pods of you app already running, you could make two different deployments of the same app, and just switch them through the Service object. That way you could have an extra pod running that you can switch on at any moment.

    关于docker - 通过主动-备用部署将karaf从传统部署迁移到云,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51003142/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com