azure - Azure Devops 代理性能
问题描述
我有一个 Azure Devops 服务(目前我有两个项目,只有一个托管代理),并且我在构建定义中有 NPM 步骤,它执行安装命令。构建npm run build --prod
速度已放缓至一个多小时。
我认为,问题出在 Azure 代理中
你能告诉我,我怎样才能调整这个代理或清除这个代理的缓存?
编辑 :
在我的本地环境中,构建需要 20 分钟。
在 Azure Devops Services 中,管道在 1 小时后失败。
这是日志:
##[warning]Ubuntu-latest pipelines will use Ubuntu-20.04 soon. For more details, see https://github.com/actions/virtual-environments/issues/1816
,##[error]The job running on agent Hosted Agent ran longer than the maximum time of 60 minutes. For more information, see https://go.microsoft.com/fwlink/?linkid=2077134
Pool: Azure Pipelines
> ng build --prod --aot --sm
##[debug]Re-evaluate condition on job cancellation for step: 'Build Solution'.
##[debug]Started cancellation of executing script
##[debug]Exit code null received from tool '/bin/bash'
##[error]The operation was canceled.
##[debug]System.OperationCanceledException: The operation was canceled.
at System.Threading.CancellationToken.ThrowOperationCanceledException()
at Microsoft.VisualStudio.Services.Agent.Util.ProcessInvoker.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue`1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Agent.ProcessInvokerWrapper.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue`1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.DefaultStepHost.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, Boolean inheritConsoleHandler, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.NodeHandler.RunAsync()
at Microsoft.VisualStudio.Services.Agent.Worker.TaskRunner.RunAsync()
at Microsoft.VisualStudio.Services.Agent.Worker.StepsRunner.RunStepAsync(IStep step, CancellationToken jobCancellationToken)
谢谢
解决方案
最近发生了 Azure DevOps 可用性下降的事件,这可能会影响这些服务,现在已经解决。这可能会影响欧洲的客户。如果您想了解更多信息,请点击这里:https ://status.dev.azure.com/_event/228998388
我们注意到整个欧洲地区的负载增加,我们正在努力增加处理额外负载的能力。一旦问题得到缓解,我们将继续监控和更新。
推荐阅读
- r - 限制 geom_abline 的范围(slope=somenumber)
- d3.js - d3.js - 绘制垂直对齐的箱形图
- google-chrome - 如何让基于浏览器的 emacs 模式工作
- google-places-api - 地点类型与地点等级
- kubernetes - 如果我们只有一个 stateful pod 的副本,我们可以使用 Deployment 资源而不是 StatefulSet 吗?
- batch-file - 数据迁移问题
- jpeg - 哪个文档包含 JPEG 标签的官方数值?
- autodesk-forge - 执行工作项时出现“FailedExecution”错误
- transformer - 在线文档中 Transformers 的 Spacy 3.1 示例代码似乎是错误的
- r - 如何使用多面图添加趋势线