Skip to main content

move_primary_replicas

Creates, updates, deletes, gets or lists a move_primary_replicas resource.

Overview

Namemove_primary_replicas
TypeResource
Idazure.service_fabric_dataplane.move_primary_replicas

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
move_primary_replicaexecpartition_id, endpointNodeName, IgnoreConstraints, timeoutMoves the primary replica of a partition of a stateful service. This command moves the primary replica of a partition of a stateful service, respecting all constraints. If NodeName parameter is specified, primary will be moved to the specified node (if constraints allow it). If NodeName parameter is not specified, primary replica will be moved to a random node in the cluster. If IgnoreConstraints parameter is specified and set to true, then primary will be moved regardless of the constraints.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme). (default: )
partition_idstringThe identity of the partition.
IgnoreConstraintsbooleanIgnore constraints when moving a replica or instance. If this parameter is not specified, all constraints are honored.
NodeNamestringThe name of the node.
timeoutinteger (int64)The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is willing to wait for the requested operation to complete. The default value for this parameter is 60 seconds.

Lifecycle Methods

Moves the primary replica of a partition of a stateful service. This command moves the primary replica of a partition of a stateful service, respecting all constraints. If NodeName parameter is specified, primary will be moved to the specified node (if constraints allow it). If NodeName parameter is not specified, primary replica will be moved to a random node in the cluster. If IgnoreConstraints parameter is specified and set to true, then primary will be moved regardless of the constraints.

EXEC azure.service_fabric_dataplane.move_primary_replicas.move_primary_replica 
@partition_id='{{ partition_id }}' --required,
@endpoint='{{ endpoint }}' --required,
@NodeName='{{ NodeName }}',
@IgnoreConstraints={{ IgnoreConstraints }},
@timeout='{{ timeout }}'
;