You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Tech Support <te...@sardonyx.in> on 2018/11/19 13:44:46 UTC

Solr Cloud - Store Data using multiple drives

Hello Solr Team,

 

I am using Solr 7.5. , Indexed data stored in the Solr Installation
directory.

I need the following features, Is it possible to achieve the following
scenarios in SOLR Cloud?

1.       If the disk free space is completed, is it possible to configure
another drive? Which means, if C drive free space is over need to configure
the D drive. I need to read the data from both C and D drives.

 

2.       If D is getting full need to configure another drive. I mean, if
one drive free space is full then only need to use the other drive to store
data. At the time of read, need to get data from all the drives. 

 

 

Is it possible to configure on SOLR Cloud ? Suggest me in a right way.

 

Thanks,

Karthick Ramu

 


Re: Solr Cloud - Store Data using multiple drives

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
This seems very similar to:
https://lists.apache.org/thread.html/48b6dcb20058de29936616633b88d21e1b6f6a32bc968d161eae4a21@%3Csolr-user.lucene.apache.org%3E

Regards,
   Alex.
On Mon, 19 Nov 2018 at 11:15, Tech Support <te...@sardonyx.in> wrote:
>
> Hello Solr Team,
>
>
>
> I am using Solr 7.5. , Indexed data stored in the Solr Installation
> directory.
>
> I need the following features, Is it possible to achieve the following
> scenarios in SOLR Cloud?
>
> 1.       If the disk free space is completed, is it possible to configure
> another drive? Which means, if C drive free space is over need to configure
> the D drive. I need to read the data from both C and D drives.
>
>
>
> 2.       If D is getting full need to configure another drive. I mean, if
> one drive free space is full then only need to use the other drive to store
> data. At the time of read, need to get data from all the drives.
>
>
>
>
>
> Is it possible to configure on SOLR Cloud ? Suggest me in a right way.
>
>
>
> Thanks,
>
> Karthick Ramu
>
>
>

Re: Solr Cloud - Store Data using multiple drives

Posted by Shawn Heisey <ap...@elyograg.org>.
On 11/19/2018 6:44 AM, Tech Support wrote:
> 1.       If the disk free space is completed, is it possible to configure
> another drive? Which means, if C drive free space is over need to configure
> the D drive. I need to read the data from both C and D drives.

There is no automated way to do this.

You can quite easily move the dataDir for an individual core.  You just 
have to find its core.properties file and add/change the dataDir 
property in that file to point to a new location, and then reload the 
collection after you have done what you need to with the index data.  
The dataDir defaults to "data" ... which is relative to the 
instanceDir.  The default location for the instanceDir is the directory 
where core.properties is found.

You seem to be talking about Windows, so you won't be able to just move 
the index directory, because Windows will refuse to delete files that a 
process has open.  You'll need to copy it, reload the collection, and 
then you can delete the original.  If you have proper redundancy in your 
SolrCloud, you could opt to not copy or move the index ... when you 
reload the collection, SolrCloud will notice that there is no index in 
the new dataDir and copy it for you over the network from the machine 
that has the leader role for the shard.

If you're wanting to create a brand new collection with its data on 
another drive, you would need to create it in place within the defined 
Solr Home, perform the above operation on all of its cores, and then 
reload the collection.

If you want to move ALL of your data to another location, you could just 
copy all of your cores from the current solr home (which defaults to 
server/solr), change the solr home to the new location, and restart Solr.

If this sounds complicated, you're not wrong.

Thanks,
Shawn