CloudPool.Resize メソッド

定義

このプールのサイズを変更します。

public void Resize (int? targetDedicatedComputeNodes = default, int? targetLowPriorityComputeNodes = default, TimeSpan? resizeTimeout = default, Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption? deallocationOption = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default);
member this.Resize : Nullable<int> * Nullable<int> * Nullable<TimeSpan> * Nullable<Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption> * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> unit
Public Sub Resize (Optional targetDedicatedComputeNodes As Nullable(Of Integer) = Nothing, Optional targetLowPriorityComputeNodes As Nullable(Of Integer) = Nothing, Optional resizeTimeout As Nullable(Of TimeSpan) = Nothing, Optional deallocationOption As Nullable(Of ComputeNodeDeallocationOption) = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing)

パラメーター

targetDedicatedComputeNodes
Nullable<Int32>

プール内の専用コンピューティング ノードの必要な数。 と のtargetDedicatedComputeNodestargetLowPriorityComputeNodes少なくとも 1 つが必要です。

targetLowPriorityComputeNodes
Nullable<Int32>

プール内の優先順位の低いコンピューティング ノードの必要な数。 と のtargetDedicatedComputeNodestargetLowPriorityComputeNodes少なくとも 1 つが必要です。

resizeTimeout
Nullable<TimeSpan>

プールへのコンピューティング ノードの割り当てまたはプールからのコンピューティング ノードの削除のタイムアウト。 この時点以降にプールがターゲット サイズに達していない場合、サイズ変更は停止されます。 既定では 15 分です。

deallocationOption
Nullable<ComputeNodeDeallocationOption>

既に実行されているタスクを処理する方法を指定します。また、プール のサイズが小さくなっている場合に、それらを実行しているノードをプールから削除できるタイミングを指定します。 既定値は、Requeue です。

additionalBehaviors
IEnumerable<BatchClientBehavior>

の後の BatchClientBehavior Batch サービス要求に適用されるインスタンスの CustomBehaviorsコレクション。

注釈

サイズ変更操作では、プールのサイズ変更が要求されます。 要求により、プール Resizing が割り当て状態になります。 Batch サービスは、クライアントアクションを追加せずに実際のサイズ変更を実行し、完了したら割り当て状態を に Steady 設定します。

プールのサイズは、 の場合AllocationStateSteadyにのみ変更できます。 自動スケーリング用に構成されているプールのサイズを変更することはできません (つまり、 AutoScaleEnabled プールのプロパティは true です)。 プール サイズを小さくすると、Batch サービスによって削除するノードが選択されます。 特定のノードを削除するには、 を呼び出します RemoveFromPool(IEnumerable<String>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)

これはブロック操作です。 非ブロッキングに相当する場合は、「」を参照してください ResizeAsync(Nullable<Int32>, Nullable<Int32>, Nullable<TimeSpan>, Nullable<ComputeNodeDeallocationOption>, IEnumerable<BatchClientBehavior>, CancellationToken)

適用対象