Adjusting timeout for index management
When running search index management commands on large datasets using cqlsh
or dsetool
, the process might take longer than the default timeout period (10 minutes).
Two methods exist for overriding the default value.
-
Temporarily increase the timeout period for index management commands by setting an environment variable for
cqlsh
. Before starting acqlsh
session, set the CQLSH_SEARCH_MANAGEMENT_TIMEOUT_SECONDS environment variable:
export CQLSH_SEARCH_MANAGEMENT_TIMEOUT_SECONDS=900;
Setting the environment variable will override the cqlsh --request-timeout
setting.
-
Before running an index management command, set the
dse.search.client.timeout.secs
usingdsetool
:
export JVM_OPTS="-Ddse.search.client.timeout.secs=900"
Setting the JVM option will override the default timeout.