是否可以以某种蓝/绿解决方案升级Artifactory?

huangapple go评论73阅读模式
英文:

Is it possible to upgrade Artifactory in some sort of blue/green solution?

问题

我们在AWS上托管了一个非常关键的Artifactory实例。它使用ECS(一个容器用于Artifactory)、EFS、S3和RDS。

我们希望改进我们的升级流程。现在,我们部署了一个升级后的Artifactory Docker镜像,然后祈祷一切顺利。我们目前正在探讨是否可能同时运行2个Artifactory实例(2个容器),就像蓝绿部署解决方案一样。

我们曾考虑复制EFS,但保留相同的RDS和S3存储。这种做法可行吗?或者我们会遇到join.key问题,是否也应该有2个独立的RDS实例?我在文档中找不到太多相关信息。

我们希望同时运行这两个Artifactory版本并进行一些测试。最终,我们可以切换URL到新的容器。

英文:

We have a very critical Artifactory instance hosted on AWS. It uses ECS (one container for Artifactory), EFS, S3 and RDS.

We want to improve our upgrade process. Now we deploy an upgraded Artifactory Docker image and pray that everything goes well. We're currently exploring if it's possible to have 2 Artifactory instances (2 containers) running at the same time, like a blue green solution.

We were thinking about replicating EFS too, but keep the same RDS and s3 storage. Is this possible? Or will we end up with join.key troubles and should we also have 2 separate RDS instances? I can't find much about it in the docs.

We want to run those 2 Artifactory versions side by side and do some testing. In the end we can switch URLs to the new container.

答案1

得分: 1

以下是翻译好的部分:

  1. 你可以设置Artifactory以使用高可用性模式(简称Ha)。这需要两个企业许可证,一个用于每个节点。可以在此处找到详细的说明,以及更多一般信息请查看此处。快速设置步骤如下:

    1. 设置一个具有自己本地存储的独立容器。
    2. 安装Artifactory。
    3. 确保它使用相同的master.key。
    4. 在system.yaml中设置haEnabled: true。
    5. 连接到相同的数据库和S3存储桶。
    6. 设置负载均衡器。
  2. 或者,你可以设置一个完全独立的Artifactory,拥有自己的数据库(可以共享S3存储桶)。不要将其连接为HA节点。然后,你可以设置仓库复制来保持这些独立部署同步。

如果需要更多信息和帮助,请建议联系Jfrog支持。

英文:

There are a number of ways you can proceed here. It is very important we don't confuse them.

  1. You can set up Artifactory to make use of High availability mode
    (Ha for short). This requires 2 enterprise licenses, one for each
    node. The instructions can be found
    here
    and more general information
    here.
    The quick instructions are:

    1. Set up a separate container with its own local storage.
    2. Install Artifactory.
    3. Ensure it has the same master.key.
    4. Set haEnabled: true in the system.yaml.
    5. Connect to the same database and s3 bucket.
    6. Set up Load balancer
  2. Alternatively, you can set up a fully independent Artifactory, with its own database (it can share the s3 bucket). Do not connect it as an HA node. You can then set up repository replication to keep these separate deployments in sync.

I would suggest reaching out to Jfrog support if you need more information and help with this.

huangapple
  • 本文由 发表于 2023年7月24日 15:19:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/76752185.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定