【问题标题】:Set azure batch cluster to run in specific hours将 Azure 批处理集群设置为在特定时间运行
【发布时间】:2020-08-03 12:09:53
【问题描述】:

是否可以仅在特定时间运行 Azure Batch 集群?我应该使用哪些变量?例如。从早上 6 点到下午 6 点。如果强制执行任何任务,集群是否可以在其他时间运行?

【问题讨论】:

    标签: azure azure-batch


    【解决方案1】:

    您可以使用Batch autoscaling formulas 通过time() 完成此操作。示例请参见this link

    【讨论】:

    • 谢谢。我添加了以下代码进行缩放: $curTime = time(); $workHours = $curTime.hour >= 8 && $curTime.hour = 1 && $curTime.weekday
    猜你喜欢
    • 2018-08-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-02-21
    • 1970-01-01
    • 2016-06-18
    • 1970-01-01
    • 2018-03-07
    相关资源
    最近更新 更多