2010-11-19 168 views
0

我有一个Solr的中继器设置,这似乎是一个从正常工作,我想我已经在主部件设置权以及:Solr的中继器/从站不工作

<requestHandler name="/replication" class="solr.ReplicationHandler"> 
<lst name="master"> 
    <str name="replicateAfter">commit</str> 
    <str name="replicateAfter">startup</str> 

    <str name="confFiles">schema.xml,stopwords.txt,synonyms.txt</str> 
</lst> 
<lst name="slave"> 
    <str name="masterUrl">http://HOST:PORT/solr/replication</str> 
    <str name="pollInterval">00:00:00</str> 
</lst> 

在我的中继奴隶,我有:

<requestHandler name="/replication" class="solr.ReplicationHandler" > 
<lst name="slave"> 

    <!--fully qualified url for the replication handler of master . It is possible to pass on this as a request param for the fetchindex command--> 
    <str name="masterUrl">http://REPEATER:8080/solr/replication</str> 

    <!--Interval in which the slave should poll master .Format is HH:mm:ss . If this is absent slave does not poll automatically. 
    But a fetchindex can be triggered from the admin or the http API --> 
    <str name="pollInterval">00:00:00</str> 
    <!-- THE FOLLOWING PARAMETERS ARE USUALLY NOT REQUIRED--> 
    <!--to use compression while transferring the index files. The possible values are internal|external 
    if the value is 'external' make sure that your master Solr has the settings to honour the accept-encoding header. 
    see here for details http://wiki.apache.org/solr/SolrHttpCompression 
    If it is 'internal' everything will be taken care of automatically. 
    USE THIS ONLY IF YOUR BANDWIDTH IS LOW . THIS CAN ACTUALLY SLOWDOWN REPLICATION IN A LAN--> 
    <str name="compression">internal</str> 
    <!--The following values are used when the slave connects to the master to download the index files. 
    Default values implicitly set as 5000ms and 10000ms respectively. The user DOES NOT need to specify 
    these unless the bandwidth is extremely low or if there is an extremely high latency--> 
    <str name="httpConnTimeout">5000</str> 
    <str name="httpReadTimeout">10000</str> 

    <!-- If HTTP Basic authentication is enabled on the master, then the slave can be configured with the following 
    <str name="httpBasicAuthUser">username</str> 
    <str name="httpBasicAuthPassword">password</str> 

- >

然而,转发器似乎工作作为一个好奴隶,但是当我发送复制命令到中继器的奴隶,它说好,在日志中没有错误,但是当我检查复制状态我得到:

'{ “responseHeader”:{“status”:0,“QTime”:47},“details”:{“indexSize”:“52 bytes”,“indexPath”:“/ index/solr/solr.141.megaindex.prod /数据/索引“,”提交“:[],”isMaster“:”false“,”isSlave“:”true“,”indexVersion“:1290200498685,”generation“:1,”slave“:{”masterDetails“ “indexSize”:“20.61 GB”,“indexPath”:“/ journals7/solr/solr.141.cow.prod/data/index”,“commits”:[],“isMaster”:“true”,“isSlave” :“true”,“indexVersion”:1288551085602,“generation”:27},“masterUrl”:“http://REPEATER.org:8080/solr.141.cow.prod/replication”,“pollInterval”:“00 :00:00“,”indexReplicatedAt“:”Fri Nov 19 16:21:21 EST 2010“,”indexReplicatedAtList“:[”Fri Nov 19 16:21:21 EST 2010“,”F ri 11月19日16:16:30 EST 2010“,”Fri Nov 19 16:15:05 EST 2010“,”Fri Nov 19 16:12:28 EST 2010“,”Fri Nov 19 19:11:19 EST 2010“ ,“Fri Nov 19 16:01:45 EST 2010”,“Fri Nov 19 15:57:38 EST 2010”,“Fri Nov 19 19:54:25 EST 2010”,“Fri Nov 19 15:50:06 EST 2010“,”Fri Nov 19 19:49:25 EST 2010“],”replicationFailedAtList“:[”Fri Nov 19 19:21:21 EST 2010“,”Fri Nov 19 16:16 EST 2010“,”Fri 11月19日16:15:05 EST 2010“,”Fri Nov 19 19:12:28 EST 2010“,”Fri Nov 19 19:11:19 EST 2010“,”Fri Nov 19 16:01:45 EST 2010“, “2005年11月19日15:57:38 EST 2010”,“Fri Nov 19 15:54:25 EST 2010”,“Fri Nov 19 15:50:06 EST 2010”,“Fri Nov 19 19:49:25 EST 2010 “],”timesIndexReplicated“:”17“,”lastCycleBytesDownloaded“:”0“,”timesFailed“:”17“,”replicationFailedAt“:”Fri Nov 19 16:21:21 EST 2010“,”previousCycleTimeInSeconds“:”0 “,”isPollingDisabled“:”false“,”isReplicating“:”false“}},”WARNING“:”这个响应格式是实验性的。 “}';

提交部分总是空的,在功能中继器上,在被告知要复制之后,有一个文件列表。中继器和从属器都不指示。怎么回事

感谢所有帮助

回答

1

你有轮询间隔设置为0试试更高 - 我不知道怎么Solr的功能是一个从零开始的调查