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 deniz <de...@gmail.com> on 2012/10/17 06:58:07 UTC
Flushing RAM to disk
Hi all, I have a question about solr directories... Basically I will be using
RAM directory for the project, but I am curious if it is possible to flush
(or copy from ) RAM to disk? via cronjob or a timer in java code? if yes,
could anyone give me some details about it?
thank you
-----
Zeki ama calismiyor... Calissa yapar...
--
View this message in context: http://lucene.472066.n3.nabble.com/Flushing-RAM-to-disk-tp4014128.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Flushing RAM to disk
Posted by Erick Erickson <er...@gmail.com>.
Deniz:
Unless you have a _proven_ bottleneck that this will address, I'd just
let Solr/Lucene do their thing without interference. Explicitly using a
RAM directory is one of those things that _seems_ like would be a
Good Thing, but outside of very specialized situations it often
isn't worth the effort.
Measure first. Then fix.
Best
Erick
On Wed, Oct 17, 2012 at 3:15 AM, deniz <de...@gmail.com> wrote:
> I heard about MMapDirectory - actually my test env is using that- , but the
> question was just an idea... and how about using SolrCloud? I mean can we
> set shards to use ram and replicas to use MMapDirectory? is this possible?
>
>
>
> -----
> Zeki ama calismiyor... Calissa yapar...
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Flushing-RAM-to-disk-tp4014128p4014155.html
> Sent from the Solr - User mailing list archive at Nabble.com.
Re: Flushing RAM to disk
Posted by Lance Norskog <go...@gmail.com>.
I do not know how to load an index from disk into a RAMDirectory in Solr.
----- Original Message -----
| From: "deniz" <de...@gmail.com>
| To: solr-user@lucene.apache.org
| Sent: Wednesday, October 17, 2012 12:15:52 AM
| Subject: Re: Flushing RAM to disk
|
| I heard about MMapDirectory - actually my test env is using that- ,
| but the
| question was just an idea... and how about using SolrCloud? I mean
| can we
| set shards to use ram and replicas to use MMapDirectory? is this
| possible?
|
|
|
| -----
| Zeki ama calismiyor... Calissa yapar...
| --
| View this message in context:
| http://lucene.472066.n3.nabble.com/Flushing-RAM-to-disk-tp4014128p4014155.html
| Sent from the Solr - User mailing list archive at Nabble.com.
|
Re: Flushing RAM to disk
Posted by deniz <de...@gmail.com>.
I heard about MMapDirectory - actually my test env is using that- , but the
question was just an idea... and how about using SolrCloud? I mean can we
set shards to use ram and replicas to use MMapDirectory? is this possible?
-----
Zeki ama calismiyor... Calissa yapar...
--
View this message in context: http://lucene.472066.n3.nabble.com/Flushing-RAM-to-disk-tp4014128p4014155.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Flushing RAM to disk
Posted by Lance Norskog <go...@gmail.com>.
There is no "backed by disk" RamDirectory feature. The MMapDirectory uses the operating system to do almost exactly the same thing, in a much better way. That is why it is the default.
----- Original Message -----
| From: "deniz" <de...@gmail.com>
| To: solr-user@lucene.apache.org
| Sent: Tuesday, October 16, 2012 9:58:07 PM
| Subject: Flushing RAM to disk
|
| Hi all, I have a question about solr directories... Basically I will
| be using
| RAM directory for the project, but I am curious if it is possible to
| flush
| (or copy from ) RAM to disk? via cronjob or a timer in java code? if
| yes,
| could anyone give me some details about it?
|
| thank you
|
|
|
| -----
| Zeki ama calismiyor... Calissa yapar...
| --
| View this message in context:
| http://lucene.472066.n3.nabble.com/Flushing-RAM-to-disk-tp4014128.html
| Sent from the Solr - User mailing list archive at Nabble.com.
|
Re: Flushing RAM to disk
Posted by Lance Norskog <go...@gmail.com>.
There is no "backed by disk" RamDirectory feature. The MMapDirectory uses the operating system to do almost exactly the same thing, in a much better way. That is why it is the default.
----- Original Message -----
| From: "deniz" <de...@gmail.com>
| To: solr-user@lucene.apache.org
| Sent: Tuesday, October 16, 2012 9:58:07 PM
| Subject: Flushing RAM to disk
|
| Hi all, I have a question about solr directories... Basically I will
| be using
| RAM directory for the project, but I am curious if it is possible to
| flush
| (or copy from ) RAM to disk? via cronjob or a timer in java code? if
| yes,
| could anyone give me some details about it?
|
| thank you
|
|
|
| -----
| Zeki ama calismiyor... Calissa yapar...
| --
| View this message in context:
| http://lucene.472066.n3.nabble.com/Flushing-RAM-to-disk-tp4014128.html
| Sent from the Solr - User mailing list archive at Nabble.com.
|