是否可以在 Azure DevOps 上升级到性能更高的 Microsoft 托管构建代理?
Is it possible to upgrade to a higher performing Microsoft-hosted build agent on Azure DevOps?
我的开发团队正在使用 Azure Devops 的 Microsoft 托管构建代理,但希望拥有性能更高的构建代理。我们当前的构建时间有时会超过 5 分钟,这是不可取的。
我们不希望采用自托管路线,因为那样我们将需要管理我们自己的构建代理的任务。我们现阶段根本没有完成此类任务的资源。
是否可以在 Azure DevOps 上升级到性能更高的 Microsoft 托管构建代理?
可能只是因为我们需要优化我们构建构建的方式,然后将缩短构建时间 - 但想知道这样的选项是否可用。
谢谢!
看着 docs 没有办法让更好 机器:
Microsoft-hosted agents:
- Have the above software. You can also add software during your build or release using tool installer tasks.
- Provide at least 10 GB of storage for your source and build outputs.
- Provide a free tier:
- Public project: 10 free Microsoft-hosted parallel jobs that can run for up to 360 minutes (6 hours) each time, with no overall time limit per month. Contact us to get your free tier limits increased.
- Private project: One free parallel job that can run for up to 60 minutes each time, until you've used 1,800 minutes (30 hours) per month. You can pay for additional capacity per parallel job. Paid parallel jobs remove the monthly time limit and allow you to run each job for up to 360 minutes (6 hours). Buy Microsoft-hosted parallel jobs.
- Run on Microsoft Azure general purpose virtual machines Standard_DS2_v2
- Run as an administrator on Windows and a passwordless sudo user on Linux
- (Linux only) Run steps in a cgroup that offers 6 GB of physical memory and 13 GB of total memory
以及在您的上下文中什么是重要的:
If Microsoft-hosted agents don't meet your needs, then you can deploy your own self-hosted agents.
在撰写本文时 (04/06/2020),有一个部分解决方案可以满足您的需求。因此,这不完全是 Microsoft 托管代理,而是 Microsoft 托管代理和自托管代理之间的某事。是 a scale set:
We are previewing a new feature called scale set agents which pairs the convenience and elastic capacity of the Microsoft-hosted agents with the control and flexibility of self-hosted agents. With this preview, we now enable you to manage agents to your specification, completely automated, in your Azure subscription. You may want to consider using scale set agents instead of Microsoft-hosted or self-hosted agents when you:
- need more memory, more processor, more storage, or more I/O than what we offer in native Microsoft-hosted agents
- do not want to whitelist a large number of IP addresses within your corporate firewall to enable Microsoft-hosted agents to communicate with your servers
- need more Microsoft-hosted agents than we can provide to meet your large scale needs
- need the ability to partition Microsoft-hosted parallel jobs to individual projects or teams in your organization
do not want to run dedicated agents around the clock but instead want to de-provision agent machines that are not being actively utilized
To use scale set agents, you will first create a VM scale set in your Azure subscription, and then create an agent pool in Azure Pipelines to point to that scale set. Azure Pipelines will automatically scale this pool based on the number of pending jobs and the number of idle machines that you wish to maintain at all times. Azure Pipelines will also install the agent for you on these virtual machines. For more information, see scale set agents. As you preview the feature, please include your feedback on the documentation page.
答案是否定的!
请参阅以下来自 Microsoft site 的回答。
We can't increase the memory, processing power, or disk space for Microsoft-hosted agents, but you can use a self-hosted agent that is hosted on a machine that has your desired specifications.
您也可以考虑使用 parallel jobs 构建您的管道作为解决方法。
此博客Reducing Longer Build Times in CI Pipelines — Parallel Builds & Build Agents with Azure DevOps可能对您有所帮助。
我的开发团队正在使用 Azure Devops 的 Microsoft 托管构建代理,但希望拥有性能更高的构建代理。我们当前的构建时间有时会超过 5 分钟,这是不可取的。
我们不希望采用自托管路线,因为那样我们将需要管理我们自己的构建代理的任务。我们现阶段根本没有完成此类任务的资源。
是否可以在 Azure DevOps 上升级到性能更高的 Microsoft 托管构建代理?
可能只是因为我们需要优化我们构建构建的方式,然后将缩短构建时间 - 但想知道这样的选项是否可用。
谢谢!
看着 docs 没有办法让更好 机器:
Microsoft-hosted agents:
- Have the above software. You can also add software during your build or release using tool installer tasks.
- Provide at least 10 GB of storage for your source and build outputs.
- Provide a free tier:
- Public project: 10 free Microsoft-hosted parallel jobs that can run for up to 360 minutes (6 hours) each time, with no overall time limit per month. Contact us to get your free tier limits increased.
- Private project: One free parallel job that can run for up to 60 minutes each time, until you've used 1,800 minutes (30 hours) per month. You can pay for additional capacity per parallel job. Paid parallel jobs remove the monthly time limit and allow you to run each job for up to 360 minutes (6 hours). Buy Microsoft-hosted parallel jobs.
- Run on Microsoft Azure general purpose virtual machines Standard_DS2_v2
- Run as an administrator on Windows and a passwordless sudo user on Linux
- (Linux only) Run steps in a cgroup that offers 6 GB of physical memory and 13 GB of total memory
以及在您的上下文中什么是重要的:
If Microsoft-hosted agents don't meet your needs, then you can deploy your own self-hosted agents.
在撰写本文时 (04/06/2020),有一个部分解决方案可以满足您的需求。因此,这不完全是 Microsoft 托管代理,而是 Microsoft 托管代理和自托管代理之间的某事。是 a scale set:
We are previewing a new feature called scale set agents which pairs the convenience and elastic capacity of the Microsoft-hosted agents with the control and flexibility of self-hosted agents. With this preview, we now enable you to manage agents to your specification, completely automated, in your Azure subscription. You may want to consider using scale set agents instead of Microsoft-hosted or self-hosted agents when you:
- need more memory, more processor, more storage, or more I/O than what we offer in native Microsoft-hosted agents
- do not want to whitelist a large number of IP addresses within your corporate firewall to enable Microsoft-hosted agents to communicate with your servers
- need more Microsoft-hosted agents than we can provide to meet your large scale needs
- need the ability to partition Microsoft-hosted parallel jobs to individual projects or teams in your organization do not want to run dedicated agents around the clock but instead want to de-provision agent machines that are not being actively utilized
To use scale set agents, you will first create a VM scale set in your Azure subscription, and then create an agent pool in Azure Pipelines to point to that scale set. Azure Pipelines will automatically scale this pool based on the number of pending jobs and the number of idle machines that you wish to maintain at all times. Azure Pipelines will also install the agent for you on these virtual machines. For more information, see scale set agents. As you preview the feature, please include your feedback on the documentation page.
答案是否定的!
请参阅以下来自 Microsoft site 的回答。
We can't increase the memory, processing power, or disk space for Microsoft-hosted agents, but you can use a self-hosted agent that is hosted on a machine that has your desired specifications.
您也可以考虑使用 parallel jobs 构建您的管道作为解决方法。
此博客Reducing Longer Build Times in CI Pipelines — Parallel Builds & Build Agents with Azure DevOps可能对您有所帮助。