Set the location of search indexes
Data that is added to a DSE Search node is locally indexed on the DSE node. Data changes to one node also apply to the other nodes. DSE Search has its own indexing documents. You can control where the DSE Search indexing documents are saved.
It is critical that you locate DSE Cassandra transactional data and Solr-based DSE Search data on separate Solid State Drives (SSDs). Failure to do so will very likely result in sub-optimal search indexing performance. |
By default, each DSE Search index is saved in solr_data_dir/keyspace_name.table_name or as specified by the dse.solr.data.dir
system property.
The |
Procedure
-
Shut down the search node.
-
Move the
solr.data
directory to the new location. -
Specify the location:
Option Description From the command line
To dynamically change:
cd <installation_location> && bin/dse cassandra -s -Ddse.solr.data.dir=<My_data_dir>
In
dse.yaml
To permanently change:
solr_data_dir: My_data_dir
Where <My_data_dir> is
/var/lib/cassandra/solr.data
. For example:solr_data_dir: /var/lib/cassandra/solr.data
-
Start the node.