move_secondary_replicas
Creates, updates, deletes, gets or lists a move_secondary_replicas resource.
Overview
| Name | move_secondary_replicas |
| Type | Resource |
| Id | azure.service_fabric_dataplane.move_secondary_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_secondary_replica | exec | CurrentNodeName, partition_id, endpoint | NewNodeName, IgnoreConstraints, timeout | Moves the secondary replica of a partition of a stateful service. This command moves the secondary replica of a partition of a stateful service, respecting all constraints. CurrentNodeName parameter must be specified to identify the replica that is moved. Source node name must be specified, but new node name can be omitted, and in that case replica is moved to a random node. If IgnoreConstraints parameter is specified and set to true, then secondary 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 |
|---|---|---|
CurrentNodeName | string | The name of the source node for secondary replica move. |
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. |
NewNodeName | string | The name of the target node for secondary replica or instance move. If not specified, replica or instance is moved to a random 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_secondary_replica
Moves the secondary replica of a partition of a stateful service. This command moves the secondary replica of a partition of a stateful service, respecting all constraints. CurrentNodeName parameter must be specified to identify the replica that is moved. Source node name must be specified, but new node name can be omitted, and in that case replica is moved to a random node. If IgnoreConstraints parameter is specified and set to true, then secondary will be moved regardless of the constraints.
EXEC azure.service_fabric_dataplane.move_secondary_replicas.move_secondary_replica
@CurrentNodeName='{{ CurrentNodeName }}' --required,
@partition_id='{{ partition_id }}' --required,
@endpoint='{{ endpoint }}' --required,
@NewNodeName='{{ NewNodeName }}',
@IgnoreConstraints={{ IgnoreConstraints }},
@timeout='{{ timeout }}'
;