Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Plain View
Solr, mail # user - Replication Clarification Please


+
Ravi Solr 2011-05-06, 20:52
+
Bill Bell 2011-05-08, 03:49
+
Ravi Solr 2011-05-09, 15:24
+
Bill Bell 2011-05-11, 05:22
+
Ravi Solr 2011-05-11, 13:25
+
Alexander Kanarsky 2011-05-10, 08:10
+
Ravi Solr 2011-05-10, 16:45
+
Alexander Kanarsky 2011-05-11, 22:00
+
Ravi Solr 2011-05-12, 22:42
+
Ravi Solr 2011-05-13, 22:34
+
Alexander Kanarsky 2011-05-15, 07:12
Copy link to this message
-
Re: Replication Clarification Please
Ravi Solr 2011-05-18, 20:24
Alexander, sorry for the delay in replying. I wanted to test out a few
hunches that I had before I get back to you.
Hurray!!!  I was able to resolve the issue. The problem was with the
cache settings in the solrconfig.xml. It was taking almost 15-20
minutes to warm up the caches on each commit, as we are commit heavy
(every 5 minutes) the replication was screaming for the new searcher
to be warmed and it would never get a chance to finish so it was
perennially backed up. We reduced the cache and autowarm counts and
now the replication is happy finishing within 20 seconds!! Thank you
again for all your support.

Thanks,

Ravi Kiran Bhaskar
The Washington Post
1150 15th St. NW
Washington, DC 20071

On Sun, May 15, 2011 at 3:12 AM, Alexander Kanarsky
<[EMAIL PROTECTED]> wrote:
> Ravi,
>
> what is the replication configuration on both master and slave?
> Also could you list of files in the index folder on master and slave
> before and after the replication?
>
> -Alexander
>
>
> On Fri, 2011-05-13 at 18:34 -0400, Ravi Solr wrote:
>> Sorry guys spoke too soon I guess. The replication still remains very
>> slow even after upgrading to 3.1 and setting the compression off. Now
>> Iam totally clueless. I have tried everything that I know of to
>> increase the speed of replication but failed. if anybody faced the
>> same issue, can you please tell me how you solved it.
>>
>> Ravi Kiran Bhaskar
>>
>> On Thu, May 12, 2011 at 6:42 PM, Ravi Solr <[EMAIL PROTECTED]> wrote:
>> > Thank you Mr. Bell and Mr. Kanarsky, as per your advise we have moved
>> > from 1.4.1 to 3.1 and have made several changes to configuration. The
>> > configuration changes have worked nicely till now and the replication
>> > is finishing within the interval and not backing up. The changes we
>> > made are as follows
>> >
>> > 1. Increased the mergeFactor from 10 to 15
>> > 2. Increased ramBufferSizeMB to 1024
>> > 3. Changed lockType to single (previously it was simple)
>> > 4. Set maxCommitsToKeep to 1 in the deletionPolicy
>> > 5. Set maxPendingDeletes to 0
>> > 6. Changed caches from LRUCache to FastLRUCache as we had hit ratios
>> > well over 75% to increase warming speed
>> > 7. Increased the poll interval to 6 minutes and re-indexed all content.
>> >
>> > Thanks,
>> >
>> > Ravi Kiran Bhaskar
>> >
>> > On Wed, May 11, 2011 at 6:00 PM, Alexander Kanarsky
>> > <[EMAIL PROTECTED]> wrote:
>> >> Ravi,
>> >>
>> >> if you have what looks like a full replication each time even if the
>> >> master generation is greater than slave, try to watch for the index on
>> >> both master and slave the same time to see what files are getting
>> >> replicated. You probably may need to adjust your merge factor, as Bill
>> >> mentioned.
>> >>
>> >> -Alexander
>> >>
>> >>
>> >>
>> >> On Tue, 2011-05-10 at 12:45 -0400, Ravi Solr wrote:
>> >>> Hello Mr. Kanarsky,
>> >>>                 Thank you very much for the detailed explanation,
>> >>> probably the best explanation I found regarding replication. Just to
>> >>> be sure, I wanted to test solr 3.1 to see if it alleviates the
>> >>> problems...I dont think it helped. The master index version and
>> >>> generation are greater than the slave, still the slave replicates the
>> >>> entire index form master (see replication admin screen output below).
>> >>> Any idea why it would get the whole index everytime even in 3.1 or am
>> >>> I misinterpreting the output ? However I must admit that 3.1 finished
>> >>> the replication unlike 1.4.1 which would hang and be backed up for
>> >>> ever.
>> >>>
>> >>> Master        http://masterurl:post/solr-admin/searchcore/replication
>> >>>       Latest Index Version:null, Generation: null
>> >>>       Replicatable Index Version:1296217097572, Generation: 12726
>> >>>
>> >>> Poll Interval         00:03:00
>> >>>
>> >>> Local Index   Index Version: 1296217097569, Generation: 12725
>> >>>
>> >>>       Location: /data/solr/core/search-data/index
>> >>>       Size: 944.32 MB
>> >>>       Times Replicated Since Startup: 148