你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
CloudPool.RemoveFromPool 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
RemoveFromPool(String, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)
从此池中删除指定的计算节点。
public void RemoveFromPool (string computeNodeId, Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption? deallocationOption = default, TimeSpan? resizeTimeout = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default);
member this.RemoveFromPool : string * Nullable<Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption> * Nullable<TimeSpan> * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> unit
Public Sub RemoveFromPool (computeNodeId As String, Optional deallocationOption As Nullable(Of ComputeNodeDeallocationOption) = Nothing, Optional resizeTimeout As Nullable(Of TimeSpan) = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing)
参数
- computeNodeId
- String
要从池中删除的计算节点的 ID。
- deallocationOption
- Nullable<ComputeNodeDeallocationOption>
指定如何处理已运行的任务,以及何时可能从池中删除运行这些任务的节点。 默认为 Requeue。
- additionalBehaviors
- IEnumerable<BatchClientBehavior>
在 之后应用于 Batch 服务请求的实例集合BatchClientBehaviorCustomBehaviors。
注解
如果需要从池中删除多个计算节点,则使用 RemoveFromPool(IEnumerable<String>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>) 重载会更高效。
仅当池的 为 Steady时,AllocationState才能从池中删除节点。 如果池已在调整大小,则会发生异常。
从池中删除节点时,池的 AllocationState 从 Steady 更改为 Resizing。
这是一个阻止操作。 有关非阻塞等效项,请参阅 RemoveFromPoolAsync(String, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>, CancellationToken)。
适用于
RemoveFromPool(IEnumerable<String>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)
从此池中删除指定的计算节点。
public void RemoveFromPool (System.Collections.Generic.IEnumerable<string> computeNodeIds, Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption? deallocationOption = default, TimeSpan? resizeTimeout = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default);
member this.RemoveFromPool : seq<string> * Nullable<Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption> * Nullable<TimeSpan> * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> unit
Public Sub RemoveFromPool (computeNodeIds As IEnumerable(Of String), Optional deallocationOption As Nullable(Of ComputeNodeDeallocationOption) = Nothing, Optional resizeTimeout As Nullable(Of TimeSpan) = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing)
参数
- computeNodeIds
- IEnumerable<String>
要从池中删除的计算节点的 ID。
- deallocationOption
- Nullable<ComputeNodeDeallocationOption>
指定如何处理已运行的任务,以及何时可能从池中删除运行这些任务的节点。 默认为 Requeue。
- additionalBehaviors
- IEnumerable<BatchClientBehavior>
在 之后应用于 Batch 服务请求的实例集合BatchClientBehaviorCustomBehaviors。
注解
仅当池的 为 Steady时,AllocationState才能从池中删除节点。 如果池已在调整大小,则会发生异常。
从池中删除节点时,池的 AllocationState 从 Steady 更改为 Resizing。
这是一个阻止操作。 有关非阻塞等效项,请参阅 RemoveFromPoolAsync(IEnumerable<String>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>, CancellationToken)。
适用于
RemoveFromPool(IEnumerable<ComputeNode>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)
从此池中删除指定的计算节点。
public void RemoveFromPool (System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.ComputeNode> computeNodes, Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption? deallocationOption = default, TimeSpan? resizeTimeout = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default);
member this.RemoveFromPool : seq<Microsoft.Azure.Batch.ComputeNode> * Nullable<Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption> * Nullable<TimeSpan> * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> unit
Public Sub RemoveFromPool (computeNodes As IEnumerable(Of ComputeNode), Optional deallocationOption As Nullable(Of ComputeNodeDeallocationOption) = Nothing, Optional resizeTimeout As Nullable(Of TimeSpan) = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing)
参数
- computeNodes
- IEnumerable<ComputeNode>
要从池中删除的 计算节点 。
- deallocationOption
- Nullable<ComputeNodeDeallocationOption>
指定如何处理已运行的任务,以及何时可能从池中删除运行这些任务的节点。 默认为 Requeue。
- additionalBehaviors
- IEnumerable<BatchClientBehavior>
在 之后应用于 Batch 服务请求的实例集合BatchClientBehaviorCustomBehaviors。
注解
仅当池的 为 Steady时,AllocationState才能从池中删除节点。 如果池已在调整大小,则会发生异常。
从池中删除节点时,池的 AllocationState 从 Steady 更改为 Resizing。
这是一个阻止操作。 有关非阻塞等效项,请参阅 RemoveFromPoolAsync(IEnumerable<ComputeNode>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>, CancellationToken)。
适用于
RemoveFromPool(ComputeNode, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)
从此池中删除指定的计算节点。
public void RemoveFromPool (Microsoft.Azure.Batch.ComputeNode computeNode, Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption? deallocationOption = default, TimeSpan? resizeTimeout = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default);
member this.RemoveFromPool : Microsoft.Azure.Batch.ComputeNode * Nullable<Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption> * Nullable<TimeSpan> * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> unit
Public Sub RemoveFromPool (computeNode As ComputeNode, Optional deallocationOption As Nullable(Of ComputeNodeDeallocationOption) = Nothing, Optional resizeTimeout As Nullable(Of TimeSpan) = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing)
参数
- computeNode
- ComputeNode
ComputeNode要从池中删除的 。
- deallocationOption
- Nullable<ComputeNodeDeallocationOption>
指定如何处理已运行的任务,以及何时可能从池中删除运行这些任务的节点。 默认为 Requeue。
- additionalBehaviors
- IEnumerable<BatchClientBehavior>
在 之后应用于 Batch 服务请求的实例集合BatchClientBehaviorCustomBehaviors。
注解
如果需要从池中删除多个计算节点,则使用 RemoveFromPool(IEnumerable<ComputeNode>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>) 重载会更高效。
仅当池的 为 Steady时,AllocationState才能从池中删除节点。 如果池已在调整大小,则会发生异常。
从池中删除节点时,池的 AllocationState 从 Steady 更改为 Resizing。
这是一个阻止操作。 有关非阻塞等效项,请参阅 RemoveFromPoolAsync(ComputeNode, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>, CancellationToken)。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈