move_primary_replicas
Creates, updates, deletes, gets or lists a move_primary_replicas resource.
Overview
| Name | move_primary_replicas |
| Type | Resource |
| Id | azure.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
move_primary_replica | exec | partition_id, endpoint | NodeName, IgnoreConstraints, timeout | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
endpoint | string | The service endpoint host (no scheme). (default: ) |
partition_id | string | The identity of the partition. |
IgnoreConstraints | boolean | Ignore constraints when moving a replica or instance. If this parameter is not specified, all constraints are honored. |
NodeName | string | The name of the node. |
timeout | integer (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
- move_primary_replica
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 }}'
;