共用方式為


FabricClient.FaultManagementClient.MoveInstanceAsync Method

Definition

Overloads

MoveInstanceAsync(String, PartitionSelector, TimeSpan, CancellationToken)

Moves selected instance from current node to new node in the cluster.

MoveInstanceAsync(String, String, PartitionSelector, Boolean, TimeSpan, CancellationToken)

Moves selected instance from current node to new node in the cluster.

MoveInstanceAsync(String, String, PartitionSelector, TimeSpan, CancellationToken)

Moves selected instance from current node to new node in the cluster.

MoveInstanceAsync(String, String, PartitionSelector, Boolean, CancellationToken)

Moves selected instance from current node to new node in the cluster.

MoveInstanceAsync(String, PartitionSelector, Boolean, TimeSpan, CancellationToken)

Moves selected instance from current node to new node in the cluster.

MoveInstanceAsync(String, String, PartitionSelector, CancellationToken)

Moves selected instance from current node to new node in the cluster.

MoveInstanceAsync(String, String, PartitionSelector, Boolean)

Moves selected instance from current node to new node in the cluster.

MoveInstanceAsync(PartitionSelector, Boolean, TimeSpan, CancellationToken)

Moves selected instance from current node to new node in the cluster.

MoveInstanceAsync(String, PartitionSelector, Boolean, CancellationToken)

Moves selected instance from current node to new node in the cluster.

MoveInstanceAsync(String, PartitionSelector, CancellationToken)

Moves selected instance from current node to new node in the cluster.

MoveInstanceAsync(String, PartitionSelector, Boolean)

Moves selected instance from current node to new node in the cluster.

MoveInstanceAsync(PartitionSelector, TimeSpan, CancellationToken)

Moves selected instance from current node to new node in the cluster.

MoveInstanceAsync(PartitionSelector, Boolean, CancellationToken)

Moves selected instance from current node to new node in the cluster.

MoveInstanceAsync(String, PartitionSelector)

Moves selected instance from current node to new node in the cluster.

MoveInstanceAsync(PartitionSelector, CancellationToken)

Moves selected instance from current node to new node in the cluster.

MoveInstanceAsync(PartitionSelector, Boolean)

Moves selected instance from current node to new node in the cluster.

MoveInstanceAsync(PartitionSelector)

Moves selected instance from current node to new node in the cluster.

MoveInstanceAsync(String, String, PartitionSelector)

Moves selected instance from current node to new node in the cluster.

MoveInstanceAsync(String, PartitionSelector, TimeSpan, CancellationToken)

Moves selected instance from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult> MoveInstanceAsync (string currentNodeName, System.Fabric.PartitionSelector partitionSelector, TimeSpan operationTimeout, System.Threading.CancellationToken token);
member this.MoveInstanceAsync : string * System.Fabric.PartitionSelector * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult>
Public Function MoveInstanceAsync (currentNodeName As String, partitionSelector As PartitionSelector, operationTimeout As TimeSpan, token As CancellationToken) As Task(Of MoveInstanceResult)

Parameters

currentNodeName
String

node name where selected instance for move is currently present

partitionSelector
PartitionSelector

Move Instance will be called on this Selected Partition.

operationTimeout
TimeSpan

The timeout for this API call.

token
CancellationToken

The cancellation token

Returns

A task with move instance result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateful service. - If no active instance exists - If not enough nodes available for action

FabricErrorCode.AlreadyInstance - If active instance for selected partition already exist on new node FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the instance would prohibit the move

Remarks

API uses the selected instance specified by currentNodeName. This selected instance will be moved to the randomly selected new node location. This API is safe i.e. it will not cause availability loss by itself unless additional faults or failures happen at the same time.e t

Applies to

MoveInstanceAsync(String, String, PartitionSelector, Boolean, TimeSpan, CancellationToken)

Moves selected instance from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult> MoveInstanceAsync (string currentNodeName, string newNodeName, System.Fabric.PartitionSelector partitionSelector, bool ignoreConstraints, TimeSpan operationTimeout, System.Threading.CancellationToken token);
member this.MoveInstanceAsync : string * string * System.Fabric.PartitionSelector * bool * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult>
Public Function MoveInstanceAsync (currentNodeName As String, newNodeName As String, partitionSelector As PartitionSelector, ignoreConstraints As Boolean, operationTimeout As TimeSpan, token As CancellationToken) As Task(Of MoveInstanceResult)

Parameters

currentNodeName
String

node name where selected instance for move is currently present

newNodeName
String

node name where selected instance to be moved

partitionSelector
PartitionSelector

Move Instance will be called on this Selected Partition.

ignoreConstraints
Boolean

Whether or not to ignore constraints when attempting to execute the move.

operationTimeout
TimeSpan

The timeout for this API call.

token
CancellationToken

The cancellation token

Returns

A task with move instance result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateful service. - If no active instance exists - If not enough nodes available for action

FabricErrorCode.AlreadyInstance - If active instance for selected partition already exist on new node FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the instance would prohibit the move

Remarks

API uses the selected instance inside partition selector structure specified by currentNodeName location. This selected instance will be moved to newNodeName location from current node location. This API is safe i.e. it will not cause availability loss by itself unless additional faults or failures happen at the same time.e t

Applies to

MoveInstanceAsync(String, String, PartitionSelector, TimeSpan, CancellationToken)

Moves selected instance from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult> MoveInstanceAsync (string currentNodeName, string newNodeName, System.Fabric.PartitionSelector partitionSelector, TimeSpan operationTimeout, System.Threading.CancellationToken token);
member this.MoveInstanceAsync : string * string * System.Fabric.PartitionSelector * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult>
Public Function MoveInstanceAsync (currentNodeName As String, newNodeName As String, partitionSelector As PartitionSelector, operationTimeout As TimeSpan, token As CancellationToken) As Task(Of MoveInstanceResult)

Parameters

currentNodeName
String

node name where selected instance for move is currently present

newNodeName
String

node name where selected instance to be moved

partitionSelector
PartitionSelector

Move Instance will be called on this Selected Partition.

operationTimeout
TimeSpan

The timeout for this API call.

token
CancellationToken

The cancellation token

Returns

A task with move instance result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateful service. - If no active instance exists - If not enough nodes available for action

FabricErrorCode.AlreadyInstance - If active instance for selected partition already exist on new node FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the instance would prohibit the move

Remarks

API uses the selected instance inside partition selector structure specified by currentNodeName location. This selected instance will be moved to newNodeName location from current node location. This API is safe i.e. it will not cause availability loss by itself unless additional faults or failures happen at the same time.e t

Applies to

MoveInstanceAsync(String, String, PartitionSelector, Boolean, CancellationToken)

Moves selected instance from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult> MoveInstanceAsync (string currentNodeName, string newNodeName, System.Fabric.PartitionSelector partitionSelector, bool ignoreConstraints, System.Threading.CancellationToken token);
member this.MoveInstanceAsync : string * string * System.Fabric.PartitionSelector * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult>
Public Function MoveInstanceAsync (currentNodeName As String, newNodeName As String, partitionSelector As PartitionSelector, ignoreConstraints As Boolean, token As CancellationToken) As Task(Of MoveInstanceResult)

Parameters

currentNodeName
String

node name where selected instance for move is currently present

newNodeName
String

node name where selected instance to be moved

partitionSelector
PartitionSelector

Move Instance will be called on this Selected Partition.

ignoreConstraints
Boolean

Whether or not to ignore constraints when attempting to execute the move.

token
CancellationToken

The cancellation token

Returns

A task with move instance result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateful service. - If no active instance exists - If not enough nodes available for action

FabricErrorCode.AlreadyInstance - If active instance for selected partition already exist on new node FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the instance would prohibit the move

Remarks

API uses the selected instance specified by currentNodeName and moves it to new node location specified by newNodeName. This API is safe i.e. it will not cause availability loss by itself unless additional faults or failures happen at the same time.e t

Applies to

MoveInstanceAsync(String, PartitionSelector, Boolean, TimeSpan, CancellationToken)

Moves selected instance from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult> MoveInstanceAsync (string currentNodeName, System.Fabric.PartitionSelector partitionSelector, bool ignoreConstraints, TimeSpan operationTimeout, System.Threading.CancellationToken token);
member this.MoveInstanceAsync : string * System.Fabric.PartitionSelector * bool * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult>
Public Function MoveInstanceAsync (currentNodeName As String, partitionSelector As PartitionSelector, ignoreConstraints As Boolean, operationTimeout As TimeSpan, token As CancellationToken) As Task(Of MoveInstanceResult)

Parameters

currentNodeName
String

node name where selected instance for move is currently present

partitionSelector
PartitionSelector

Move Instance will be called on this Selected Partition.

ignoreConstraints
Boolean

Whether or not to ignore constraints when attempting to execute the move.

operationTimeout
TimeSpan

The timeout for this API call.

token
CancellationToken

The cancellation token

Returns

A task with move instance result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateful service. - If no active instance exists - If not enough nodes available for action

FabricErrorCode.AlreadyInstance - If active instance for selected partition already exist on new node FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the instance would prohibit the move

Remarks

API uses the selected instance specified by currentNodeName. This selected instance will be moved to the randomly selected new node location. This API is safe i.e. it will not cause availability loss by itself unless additional faults or failures happen at the same time.e t

Applies to

MoveInstanceAsync(String, String, PartitionSelector, CancellationToken)

Moves selected instance from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult> MoveInstanceAsync (string currentNodeName, string newNodeName, System.Fabric.PartitionSelector partitionSelector, System.Threading.CancellationToken token);
member this.MoveInstanceAsync : string * string * System.Fabric.PartitionSelector * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult>
Public Function MoveInstanceAsync (currentNodeName As String, newNodeName As String, partitionSelector As PartitionSelector, token As CancellationToken) As Task(Of MoveInstanceResult)

Parameters

currentNodeName
String

node name where selected instance for move is currently present

newNodeName
String

node name where selected instance to be moved

partitionSelector
PartitionSelector

Move Instance will be called on this Selected Partition.

token
CancellationToken

The cancellation token

Returns

A task with move instance result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateful service. - If no active instance exists - If not enough nodes available for action

FabricErrorCode.AlreadyInstance - If active instance for selected partition already exist on new node FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the instance would prohibit the move

Remarks

API uses the selected instance specified by currentNodeName and moves it to new node location specified by newNodeName. This API is safe i.e. it will not cause availability loss by itself unless additional faults or failures happen at the same time.e t

Applies to

MoveInstanceAsync(String, String, PartitionSelector, Boolean)

Moves selected instance from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult> MoveInstanceAsync (string currentNodeName, string newNodeName, System.Fabric.PartitionSelector partitionSelector, bool ignoreConstraints);
member this.MoveInstanceAsync : string * string * System.Fabric.PartitionSelector * bool -> System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult>
Public Function MoveInstanceAsync (currentNodeName As String, newNodeName As String, partitionSelector As PartitionSelector, ignoreConstraints As Boolean) As Task(Of MoveInstanceResult)

Parameters

currentNodeName
String

node name where selected instance for move is currently present

newNodeName
String

node name where selected instance to be moved

partitionSelector
PartitionSelector

Move Instance will be called on this Selected Partition.

ignoreConstraints
Boolean

Whether or not to ignore constraints when attempting to execute the move.

Returns

A task with move instance result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateful service. - If no active instance exists - If not enough nodes available for action

FabricErrorCode.AlreadyInstance - If active instance for selected partition already exist on new node FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the instance would prohibit the move

Remarks

API uses the selected instance specified by currentNodeName and moves it to new node location specified by newNodeName. This API is safe i.e. it will not cause availability loss by itself unless additional faults or failures happen at the same time.e time.

Applies to

MoveInstanceAsync(PartitionSelector, Boolean, TimeSpan, CancellationToken)

Moves selected instance from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult> MoveInstanceAsync (System.Fabric.PartitionSelector partitionSelector, bool ignoreConstraints, TimeSpan operationTimeout, System.Threading.CancellationToken token);
member this.MoveInstanceAsync : System.Fabric.PartitionSelector * bool * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult>
Public Function MoveInstanceAsync (partitionSelector As PartitionSelector, ignoreConstraints As Boolean, operationTimeout As TimeSpan, token As CancellationToken) As Task(Of MoveInstanceResult)

Parameters

partitionSelector
PartitionSelector

Move Instance will be called on this Selected Partition.

ignoreConstraints
Boolean

Whether or not to ignore constraints when attempting to execute the move.

operationTimeout
TimeSpan

The timeout for this API call.

token
CancellationToken

The cancellation token

Returns

A task with move instance result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateful service. - If no active instance exists - If not enough nodes available for action

FabricErrorCode.AlreadyInstance - If active instance for selected partition already exist on new node FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the instance would prohibit the move

Remarks

API uses the randomly selected instance for specified partition selector. This API overload randomly selects new instance node location for instance movement This selected instance will be moved to new node location from current node location. This API is safe i.e. it will not cause availability loss by itself unless additional faults or failures happen at the same time.e t

Applies to

MoveInstanceAsync(String, PartitionSelector, Boolean, CancellationToken)

Moves selected instance from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult> MoveInstanceAsync (string currentNodeName, System.Fabric.PartitionSelector partitionSelector, bool ignoreConstraints, System.Threading.CancellationToken token);
member this.MoveInstanceAsync : string * System.Fabric.PartitionSelector * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult>
Public Function MoveInstanceAsync (currentNodeName As String, partitionSelector As PartitionSelector, ignoreConstraints As Boolean, token As CancellationToken) As Task(Of MoveInstanceResult)

Parameters

currentNodeName
String

node name where selected instance for move is currently present

partitionSelector
PartitionSelector

Move Instance will be called on this Selected Partition.

ignoreConstraints
Boolean

Whether or not to ignore constraints when attempting to execute the move.

token
CancellationToken

The cancellation token

Returns

A task with move instance result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateful service. - If no active instance exists - If not enough nodes available for action

FabricErrorCode.AlreadyInstance - If active instance for selected partition already exist on new node FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the instance would prohibit the move

Remarks

API uses the selected instance inside partition selector structure specified by currentNodeName. This API overload randomly selects new instance node for instance movement This selected instance will be moved to new node location from current node location. This API is safe i.e. it will not cause availability loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveInstanceAsync(String, PartitionSelector, CancellationToken)

Moves selected instance from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult> MoveInstanceAsync (string currentNodeName, System.Fabric.PartitionSelector partitionSelector, System.Threading.CancellationToken token);
member this.MoveInstanceAsync : string * System.Fabric.PartitionSelector * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult>
Public Function MoveInstanceAsync (currentNodeName As String, partitionSelector As PartitionSelector, token As CancellationToken) As Task(Of MoveInstanceResult)

Parameters

currentNodeName
String

node name where selected instance for move is currently present

partitionSelector
PartitionSelector

Move Instance will be called on this Selected Partition.

token
CancellationToken

The cancellation token

Returns

A task with move instance result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateful service. - If no active instance exists - If not enough nodes available for action

FabricErrorCode.AlreadyInstance - If active instance for selected partition already exist on new node FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the instance would prohibit the move

Remarks

API uses the selected instance inside partition selector structure specified by currentNodeName. This API overload randomly selects new instance node for instance movement This selected instance will be moved to new node location from current node location. This API is safe i.e. it will not cause availability loss by itself unless additional faults or failures happen at the same time.e time.

Applies to

MoveInstanceAsync(String, PartitionSelector, Boolean)

Moves selected instance from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult> MoveInstanceAsync (string currentNodeName, System.Fabric.PartitionSelector partitionSelector, bool ignoreConstraints);
member this.MoveInstanceAsync : string * System.Fabric.PartitionSelector * bool -> System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult>
Public Function MoveInstanceAsync (currentNodeName As String, partitionSelector As PartitionSelector, ignoreConstraints As Boolean) As Task(Of MoveInstanceResult)

Parameters

currentNodeName
String

node name where selected instance for move is currently present

partitionSelector
PartitionSelector

Move Instance will be called on this Selected Partition.

ignoreConstraints
Boolean

Whether or not to ignore constraints when attempting to execute the move.

Returns

A task with move instance result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateful service. - If no active instance exists - If not enough nodes available for action

FabricErrorCode.AlreadyInstance - If active instance for selected partition already exist on new node FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the instance would prohibit the move

Remarks

API uses the selected instance inside partition selector structure specified by currentNodeName. This API overload randomly selects new instance node for instance movement This selected instance will be moved to new node location from current node location. This API is safe i.e. it will not cause availability loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveInstanceAsync(PartitionSelector, TimeSpan, CancellationToken)

Moves selected instance from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult> MoveInstanceAsync (System.Fabric.PartitionSelector partitionSelector, TimeSpan operationTimeout, System.Threading.CancellationToken token);
member this.MoveInstanceAsync : System.Fabric.PartitionSelector * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult>
Public Function MoveInstanceAsync (partitionSelector As PartitionSelector, operationTimeout As TimeSpan, token As CancellationToken) As Task(Of MoveInstanceResult)

Parameters

partitionSelector
PartitionSelector

Move Instance will be called on this Selected Partition.

operationTimeout
TimeSpan

The timeout for this API call.

token
CancellationToken

The cancellation token

Returns

A task with move instance result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateful service. - If no active instance exists - If not enough nodes available for action

FabricErrorCode.AlreadyInstance - If active instance for selected partition already exist on new node FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the instance would prohibit the move

Remarks

API uses the randomly selected instance for specified partition selector. This API overload randomly selects new instance node location for instance movement This selected instance will be moved to new node location from current node location. This API is safe i.e. it will not cause availability loss by itself unless additional faults or failures happen at the same time.e t

Applies to

MoveInstanceAsync(PartitionSelector, Boolean, CancellationToken)

Moves selected instance from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult> MoveInstanceAsync (System.Fabric.PartitionSelector partitionSelector, bool ignoreConstraints, System.Threading.CancellationToken token);
member this.MoveInstanceAsync : System.Fabric.PartitionSelector * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult>
Public Function MoveInstanceAsync (partitionSelector As PartitionSelector, ignoreConstraints As Boolean, token As CancellationToken) As Task(Of MoveInstanceResult)

Parameters

partitionSelector
PartitionSelector

Move Instance will be called on this Selected Partition.

ignoreConstraints
Boolean

Whether or not to ignore constraints when attempting to execute the move.

token
CancellationToken

The cancellation token

Returns

A task with move instance result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateful service. - If no active instance exists - If not enough nodes available for action

FabricErrorCode.AlreadyInstance - If active instance for selected partition already exist on new node FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the instance would prohibit the move

Remarks

This API overload randomly selects current instance node for random instance of the selected partition and new instance node for instance movement This selected instance will be moved to new node location from current node location. This API is safe i.e. it will not cause availability loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveInstanceAsync(String, PartitionSelector)

Moves selected instance from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult> MoveInstanceAsync (string currentNodeName, System.Fabric.PartitionSelector partitionSelector);
member this.MoveInstanceAsync : string * System.Fabric.PartitionSelector -> System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult>
Public Function MoveInstanceAsync (currentNodeName As String, partitionSelector As PartitionSelector) As Task(Of MoveInstanceResult)

Parameters

currentNodeName
String

node name where selected instance for move is currently present

partitionSelector
PartitionSelector

Move Instance will be called on this Selected Partition.

Returns

A task with move instance result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateful service. - If no active instance exists - If not enough nodes available for action

FabricErrorCode.AlreadyInstance - If active instance for selected partition already exist on new node FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the instance would prohibit the move

Remarks

API uses the selected instance inside partition selector structure specified by currentNodeName. This API overload randomly selects new instance node for instance movement This selected instance will be moved to new node location from current node location. This API is safe i.e. it will not cause availability loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveInstanceAsync(PartitionSelector, CancellationToken)

Moves selected instance from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult> MoveInstanceAsync (System.Fabric.PartitionSelector partitionSelector, System.Threading.CancellationToken token);
member this.MoveInstanceAsync : System.Fabric.PartitionSelector * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult>
Public Function MoveInstanceAsync (partitionSelector As PartitionSelector, token As CancellationToken) As Task(Of MoveInstanceResult)

Parameters

partitionSelector
PartitionSelector

Move Instance will be called on this Selected Partition.

token
CancellationToken

The cancellation token

Returns

A task with move instance result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateful service. - If no active instance exists - If not enough nodes available for action

FabricErrorCode.AlreadyInstance - If active instance for selected partition already exist on new node FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the instance would prohibit the move

Remarks

This API overload randomly selects current instance node for random instance of the selected partition and new instance node for instance movement This selected instance will be moved to new node location from current node location. This API is safe i.e. it will not cause availability loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveInstanceAsync(PartitionSelector, Boolean)

Moves selected instance from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult> MoveInstanceAsync (System.Fabric.PartitionSelector partitionSelector, bool ignoreConstraints);
member this.MoveInstanceAsync : System.Fabric.PartitionSelector * bool -> System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult>
Public Function MoveInstanceAsync (partitionSelector As PartitionSelector, ignoreConstraints As Boolean) As Task(Of MoveInstanceResult)

Parameters

partitionSelector
PartitionSelector

Move Instance will be called on this Selected Partition.

ignoreConstraints
Boolean

Whether or not to ignore constraints when attempting to execute the move.

Returns

A task with move instance result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateful service. - If no active instance exists - If not enough nodes available for action

FabricErrorCode.AlreadyInstance - If active instance for selected partition already exist on new node FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the instance would prohibit the move

Remarks

API uses the selected instance inside partition selector structure specified by current instance node. This API overload randomly selects current instance node for random instance of the selected partition and new instance node for instance movement This selected instance will be moved to new node location from current node location. This API is safe i.e. it will not cause availability loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveInstanceAsync(PartitionSelector)

Moves selected instance from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult> MoveInstanceAsync (System.Fabric.PartitionSelector partitionSelector);
member this.MoveInstanceAsync : System.Fabric.PartitionSelector -> System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult>
Public Function MoveInstanceAsync (partitionSelector As PartitionSelector) As Task(Of MoveInstanceResult)

Parameters

partitionSelector
PartitionSelector

Move Instance will be called on this Selected Partition.

Returns

A task with move instance result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateful service. - If no active instance exists - If not enough nodes available for action

FabricErrorCode.AlreadyInstance - If active instance for selected partition already exist on new node FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the instance would prohibit the move

Remarks

API uses the selected instance inside partition selector structure specified by current instance node. This API overload randomly selects current instance node for random instance of the selected partition and new instance node for instance movement This selected instance will be moved to new node location from current node location. This API is safe i.e. it will not cause availability loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveInstanceAsync(String, String, PartitionSelector)

Moves selected instance from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult> MoveInstanceAsync (string currentNodeName, string newNodeName, System.Fabric.PartitionSelector partitionSelector);
member this.MoveInstanceAsync : string * string * System.Fabric.PartitionSelector -> System.Threading.Tasks.Task<System.Fabric.Result.MoveInstanceResult>
Public Function MoveInstanceAsync (currentNodeName As String, newNodeName As String, partitionSelector As PartitionSelector) As Task(Of MoveInstanceResult)

Parameters

currentNodeName
String

node name where selected instance for move is currently present

newNodeName
String

node name where selected instance to be moved

partitionSelector
PartitionSelector

Move Instance will be called on this Selected Partition.

Returns

A task with move instance result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateful service. - If no active instance exists - If not enough nodes available for action

FabricErrorCode.AlreadyInstance - If active instance for selected partition already exist on new node FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the instance would prohibit the move

Remarks

API uses the selected instance specified by currentNodeName and moves it to new node location specified by newNodeName. This API is safe i.e. it will not cause availability loss by itself unless additional faults or failures happen at the same time.e time.

Applies to