英文:
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
以下是翻译好的部分:
-
你可以设置Artifactory以使用高可用性模式(简称Ha)。这需要两个企业许可证,一个用于每个节点。可以在此处找到详细的说明,以及更多一般信息请查看此处。快速设置步骤如下:
- 设置一个具有自己本地存储的独立容器。
- 安装Artifactory。
- 确保它使用相同的master.key。
- 在system.yaml中设置haEnabled: true。
- 连接到相同的数据库和S3存储桶。
- 设置负载均衡器。
-
或者,你可以设置一个完全独立的Artifactory,拥有自己的数据库(可以共享S3存储桶)。不要将其连接为HA节点。然后,你可以设置仓库复制来保持这些独立部署同步。
如果需要更多信息和帮助,请建议联系Jfrog支持。
英文:
There are a number of ways you can proceed here. It is very important we don't confuse them.
-
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:- Set up a separate container with its own local storage.
- Install Artifactory.
- Ensure it has the same master.key.
- Set haEnabled: true in the system.yaml.
- Connect to the same database and s3 bucket.
- Set up Load balancer
-
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论