cdr reset qod
The cdr reset qod command resets failed-transaction counts for replicates on replicate servers. Connection Manager service-level agreements (SLA) that contains a FAILURE or LATENCY redirection policy use failed-transaction counts to determine where to route client requests.
Syntax
Element | Purpose | Restrictions | Syntax |
---|---|---|---|
replicate_name | The name of the replicate. | The replicate must exist. | Long Identifiers |
repl_set_name | The name of the replicate set. | The replicate set must exist. | Long Identifiers |
server_name | The name of the server. | Must be the name of an existing database server group in SQLHOSTS. Cannot be a leaf server. | Long Identifiers |
The following table describes the options to the cdr reset qod command.
Long Form | Short Form | Meaning |
---|---|---|
--allrepl | -A | Resets the failed-transaction count on all replicates. |
--repl= | -r | Specifies the replicate for which to reset the failed-transaction count. |
--replset= | -s | Specifies the replicate set for which to reset the failed-transaction count. |
--verbose | -v | Displays details of the operations the command is performing |
Usage
Use the cdr reset qod command to reset the failed-transaction count to zero for replicates or replicate sets on specified replication servers. Run the cdr reset qod command before you repair inconsistent data, so that you can count failures that occur after the repair.
You must run the cdr reset qod command from a non-leaf server. If you do not specify any servers to reset, the current server to which you are connected is reset. If you specify one or more servers to reset, you must explicitly include the server to which you are connected if you want to reset it.
You can run this command from within an SQL statement by using the SQL administration API.
Return codes
A return code of 0 indicates that the command was successful.
If the command is not successful, one of the following error codes is returned: 5, 44, 217.
For information on error codes, see Return Codes for the cdr Utility.
Example 1: Resetting failed-transaction counts for a specific replicate on a specific replication server
cdr reset qod --repl=replicate_1 server_1
Example 2: Resetting failed-transaction counts for all replicates on specific replication servers
cdr reset qod --allrepl server_2 server_3
Example 3: Resetting failed-transaction counts for all replicates in a specific replicate set on a specific replication server
cdr reset qod --replset=replicate_set_1 server_4
Example 4: Resetting failed-transaction counts for all replicates in specific replicate sets on a specific replication server
cdr reset qod -s replicate_set_2 -s replicate_set_4 server_5
Example 5: Resetting failed-transaction counts for all replicates on a specific replication server, and displaying operation details
cdr reset qod -c -A server_6 -v