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 Apache Cassandra transactional data and Solr-based DSE Search data on separate Solid State Drives (SSDs). Using the same SSD for both types of data is likely to cause 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 dataDir parameter in the solrconfig.xml file is not supported.
-
Shut down the search node.
-
Move the
solr.datadirectory to the new location. -
Specify the location on the command line or in
dse.yaml:-
Set on the command line to change the location dynamically or temporarily:
cd INSTALL_DIRECTORY && bin/dse cassandra -s -Ddse.solr.data.dir=DATA_DIRECTORY -
Set in
dse.yamlto change the location permanently:solr_data_dir: DATA_DIRECTORY
Where
DATA_DIRECTORYis the new path to thesolr.datadirectory. For example:solr_data_dir: /var/lib/cassandra/solr.data -
-
Start the node.