简体   繁体   English

Azure DevOps 服务 - CI/CD

[英]Azure Devops Services - CI/CD

We have 4 servers: Dev, Stage, Test, Prod.我们有 4 台服务器:Dev、Stage、Test、Prod。

We are getting one free CI/CD according to Microsoft:根据微软的说法,我们将获得一张免费的 CI/CD:

1 Microsoft-hosted job with 1,800 minutes per month for CI/CD and 1 self-hosted job with unlimited minutes per month 1 个 Microsoft 托管作业,每月 1,800 分钟 CI/CD 和 1 个自托管作业,每月不限分钟

$40 per extra Microsoft-hosted CI/CD parallel job and $15 per extra self-hosted CI/CD parallel job with unlimited minutes每个额外的 Microsoft 托管 CI/CD 并行作业 40 美元,每个额外的自托管 CI/CD 并行作业 15 美元,无限分钟

We are using a self-hosted agent.我们正在使用自托管代理。 The question is how many CI/CD do we need to buy?问题是我们需要购买多少 CI/CD? We don't need parallel jobs!我们不需要并行工作! Can we use one self-hosted CI/CD (agents) to store the artifacts and deploy to all 4 servers or do we need to buy 1 (free) and 3 ($15 per extra self-hosted)?我们可以使用一个自托管 CI/CD(代理)来存储工件并部署到所有 4 个服务器,还是我们需要购买 1 个(免费)和 3 个(每个额外的自托管 15 美元)?

You only need to pay for the number of CI/CD jobs you will use.您只需为将使用的 CI/CD 作业数量付费。 If you're okay having all your jobs for the four environments (Dev, Stage, Test, Prod) waiting in a queue for that single job then you do not need to pay for anything.如果您可以让四种环境(Dev、Stage、Test、Prod)的所有作业在队列中等待该单个作业,那么您无需支付任何费用。

However, be aware that a long running job to Stage (for example) will block all other jobs until it completes.但是,请注意,一个长时间运行到 Stage(例如)的作业将阻塞所有其他作业,直到它完成。 And if you use multiple jobs per pipeline you will get no parallelism benefits unless you pay for parallel jobs.如果您在每个管道中使用多个作业,除非您为并行作业付费,否则您将无法获得并行性优势。

You can also have multiple self-hosted agents, but only one of them will be able to run a job at a time, unless you pay for parallel jobs.您也可以拥有多个自托管代理,但一次只能运行其中一个代理,除非您为并行作业付费。

UPDATE: Highlighting Matt's comment below: If you have MSDN or Visual Studio Enterprise subscribers as registered users in the DevOps organization, you'll get one free parallel job for each of those users.更新:在下面突出 Matt 的评论:如果您拥有 MSDN 或 Visual Studio Enterprise 订阅者作为 DevOps 组织的注册用户,您将为这些用户中的每一个获得一份免费的并行工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM