azure - Limit node resources given to an Azure Batch job or task
问题描述
Is there a way to limit the amount of resources given to a task execution in Azure Batch? The pool I set up is configured with a ContainerConfiguration
(python SDK) and the tasks have TaskContainerSettings
set. I don't see a way to limit the resources given to the task anywhere. I'd like to limit things like CPU cores and RAM given based off the image the task is going run.
Is it something that can be set in the container_run_options
?
解决方案
Yes you can set options for docker create
in that property (https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.batch.taskcontainersettings.containerrunoptions?view=azure-dotnet#Microsoft_Azure_Batch_TaskContainerSettings_ContainerRunOptions). Please see https://docs.docker.com/engine/reference/commandline/create/ for valid options for docker create
.
推荐阅读
- arrays - 如何通过 Ionic 5 应用程序中的 http post 将数组传递给 Mailgun api?
- stm32 - STMCubeIDE 调试实时表达式
- sql-server - LocalDB 需要 SQL Server 2016 LocalDB
- javascript - JavaScript中“++”(加空格加)的行为是什么?
- java - 尝试在 python:3.8-slim-buster 映像上安装 openjdk-8-jre 时生成错误
- excel - Excel SUMIFS() 使用大于/小于符号的字符串
- python - 新老客户数据透视表
- python - 如何基于数据类建立 ORM 模型
- angular - 角度 rxjs 间隔未订阅
- excel - 链接到 Access 的 Excel 文件;链接到 Power Query 的访问权限;刷新PowerQuery时弹出Excel文件