k2v-academy / K2View-Academy

Other
0 stars 0 forks source link

Cassandra RETRY_POLICY parameter in config.ini #1046

Closed pWIqmFHmGnqqlIyFDwZIlw1JWRHoo8AgicH1IWD closed 4 months ago

pWIqmFHmGnqqlIyFDwZIlw1JWRHoo8AgicH1IWD commented 4 months ago
  1. What does RETRY_POLICY under [default_session] in config,ini do? For which operation is it used?
  2. What is the default behavior?
  3. What steps are required to change it? I see only 2 options DEFAULT and CUSTOM. Where do we specify the custom retry number?
  4. Can we add details about this and other such missing parameters to our support page articles?

Thank you!

tZajFGR0CidT8AVERBHw8puD36HY6oWViykmIIb commented 4 months ago

The RETRY_POLICY param is used for Fabric connection to Cassandra. The default behavior is defined by the Cassandra Java driver. This policy retries queries in only two cases:

When updating the RETRY_POLICY to CUSTOM, set the below params in config.ini to the required and restart Fabric:

## CUSTOM Retry options
#READ_ATTEMPTS=2
#WRITE_ATTEMPTS=2
#UNAVAILABLE_ATTEMPTS=2
#REQUEST_ERROR=2