CloudPool.RemoveFromPool Método

Definição

Sobrecargas

RemoveFromPool(String, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)

Remove o nó de computação especificado desse pool.

RemoveFromPool(IEnumerable<String>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)

Remove os nós de computação especificados desse pool.

RemoveFromPool(IEnumerable<ComputeNode>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)

Remove os nós de computação especificados desse pool.

RemoveFromPool(ComputeNode, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)

Remove o nó de computação especificado desse pool.

RemoveFromPool(String, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)

Remove o nó de computação especificado desse pool.

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)

Parâmetros

computeNodeId
String

A ID do nó de computação a ser removido do pool.

deallocationOption
Nullable<ComputeNodeDeallocationOption>

Especifica como lidar com tarefas já em execução e quando os nós que as executam podem ser removidos do pool. O padrão é Requeue.

resizeTimeout
Nullable<TimeSpan>

Especifica o tempo limite para remoção de nós de computação do pool. O valor padrão é 15 minutos. O valor mínimo é 5 minutos.

additionalBehaviors
IEnumerable<BatchClientBehavior>

Uma coleção de BatchClientBehavior instâncias que são aplicadas à solicitação de serviço do Lote após o CustomBehaviors.

Comentários

Se você precisar remover vários nós de computação de um pool, será mais eficiente usar a RemoveFromPool(IEnumerable<String>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>) sobrecarga.

Você só pode remover nós de um pool quando o AllocationState do pool é Steady. Se o pool já estiver redimensionando, ocorrerá uma exceção.

Quando você remove nós de um pool, o do AllocationState pool é alterado de Steady para Resizing.

Esta é uma operação de bloqueio. Para obter um equivalente sem bloqueio, consulte RemoveFromPoolAsync(String, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>, CancellationToken).

Aplica-se a

RemoveFromPool(IEnumerable<String>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)

Remove os nós de computação especificados desse pool.

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)

Parâmetros

computeNodeIds
IEnumerable<String>

As IDs dos nós de computação a serem removidos do pool.

deallocationOption
Nullable<ComputeNodeDeallocationOption>

Especifica como lidar com tarefas já em execução e quando os nós que as executam podem ser removidos do pool. O padrão é Requeue.

resizeTimeout
Nullable<TimeSpan>

Especifica o tempo limite para remoção de nós de computação do pool. O valor padrão é 15 minutos. O valor mínimo é 5 minutos.

additionalBehaviors
IEnumerable<BatchClientBehavior>

Uma coleção de BatchClientBehavior instâncias que são aplicadas à solicitação de serviço do Lote após o CustomBehaviors.

Comentários

Você só pode remover nós de um pool quando o AllocationState do pool é Steady. Se o pool já estiver redimensionando, ocorrerá uma exceção.

Quando você remove nós de um pool, o do AllocationState pool é alterado de Steady para Resizing.

Esta é uma operação de bloqueio. Para obter um equivalente sem bloqueio, consulte RemoveFromPoolAsync(IEnumerable<String>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>, CancellationToken).

Aplica-se a

RemoveFromPool(IEnumerable<ComputeNode>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)

Remove os nós de computação especificados desse pool.

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)

Parâmetros

deallocationOption
Nullable<ComputeNodeDeallocationOption>

Especifica como lidar com tarefas já em execução e quando os nós que as executam podem ser removidos do pool. O padrão é Requeue.

resizeTimeout
Nullable<TimeSpan>

Especifica o tempo limite para remoção de nós de computação do pool. O valor padrão é 15 minutos. O valor mínimo é 5 minutos.

additionalBehaviors
IEnumerable<BatchClientBehavior>

Uma coleção de BatchClientBehavior instâncias que são aplicadas à solicitação de serviço do Lote após o CustomBehaviors.

Comentários

Você só pode remover nós de um pool quando o AllocationState do pool é Steady. Se o pool já estiver redimensionando, ocorrerá uma exceção.

Quando você remove nós de um pool, o do AllocationState pool é alterado de Steady para Resizing.

Esta é uma operação de bloqueio. Para obter um equivalente sem bloqueio, consulte RemoveFromPoolAsync(IEnumerable<ComputeNode>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>, CancellationToken).

Aplica-se a

RemoveFromPool(ComputeNode, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)

Remove o nó de computação especificado desse pool.

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)

Parâmetros

computeNode
ComputeNode

O ComputeNode a ser removido do pool.

deallocationOption
Nullable<ComputeNodeDeallocationOption>

Especifica como lidar com tarefas já em execução e quando os nós que as executam podem ser removidos do pool. O padrão é Requeue.

resizeTimeout
Nullable<TimeSpan>

Especifica o tempo limite para remoção de nós de computação do pool. O valor padrão é 15 minutos. O valor mínimo é 5 minutos.

additionalBehaviors
IEnumerable<BatchClientBehavior>

Uma coleção de BatchClientBehavior instâncias que são aplicadas à solicitação de serviço do Lote após o CustomBehaviors.

Comentários

Se você precisar remover vários nós de computação de um pool, será mais eficiente usar a RemoveFromPool(IEnumerable<ComputeNode>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>) sobrecarga.

Você só pode remover nós de um pool quando o AllocationState do pool é Steady. Se o pool já estiver redimensionando, ocorrerá uma exceção.

Quando você remove nós de um pool, o do AllocationState pool é alterado de Steady para Resizing.

Esta é uma operação de bloqueio. Para obter um equivalente sem bloqueio, consulte RemoveFromPoolAsync(ComputeNode, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>, CancellationToken).

Aplica-se a