Configuring the retry policy
This content applies only to On-premises and Client-managed cloud environments
You can increase Cassandra's fault tolerance by configuring how many times you want to retry queries that have failed. By retrying a failed Cassandra query you can circumvent temporary issues, for example, network-related errors.
A query might fail due to network connectivity issues or when a Cassandra node fails or becomes unreachable. By default, the DataStax driver uses a defined set of rules to determine if and how to retry queries. For more information about the default Cassandra retry policy, see the Apache Cassandra documentation.
prconfig.xml
settings.For more information about specifying
settings through the prconfig.xml
file, see Changing node settings by modifying the prconfig.xml file.
- Configure the retry policy for failed Cassandra queries:
- To use the retry policy provided by Apache Cassandra, set the dnode/cassandra_custom_retry_policy property to false.
- To retry each query that fails, set the dnode/cassandra_custom_retry_policy property to true.
- If you set the dnode/cassandra_custom_retry_policy
property to true in step 1, specify how
many times you want to retry a failed query by setting the
dnode/cassandra_custom_retry_policy/retryCount to the
number of retries for a node.
Previous topic Configuring key cache settings Next topic Configuring multiple data centers