Solr中继器/从站不工作

时间:2010-11-19 21:31:47

标签: lucene 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>

- &GT;      

但是,转发器似乎可以作为一个好的奴隶工作,但是当我向转发器的从属设备发送复制命令时,它说好了,日志中没有错误,但是当我检查复制状态时,我得到:

'{“responseHeader”:{“status”:0,“QTime”:47},“details”:{“indexSize”:“52 bytes”,“indexPath”:“/ index / solr / solr.141 .megaindex.prod / data / index“,”提交“:[],”isMaster“:”false“,”isSlave“:”true“,”indexVersion“:1290200498685,”generation“:1,”slave“:{ “masterDetails”:{“indexSize”:“20.61 GB”,“indexPath”:“/ journals7 / solr / solr.141.cow.prod / data / index”,“commit”:[],“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“,”Fri Nov 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 16:11:19 EST 2010“,”Fri 11月19日16:01:45 EST 2010“,”星期五11月15日15:57:38美国东部时间2010“,”星期五11月19日15:54:25美国东部时间2010“,”周五11月19日15:50:06美国东部时间2010“, “Fri Nov 19 15:49:25 EST 2010”,“replicationFailedAtList”:[“Fri Nov 19 16:21:21 EST 2010“,”Fri Nov 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 16:11 :19 EST 2010“,”Fri Nov 19 16:01:45 EST 2010“,”Fri Nov 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 15: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”}},“警告”:“此响应格式是实验性的。它可能会在未来发生变化。“}';

提交部分始终为空,在功能转发器上,在被告知复制后,有一个文件列表。转发器和奴隶都没有说明最新情况。

感谢您的帮助。

1 个答案:

答案 0 :(得分:1)

你将轮询间隔设置为0.尝试更高的东西 - 我不确定Solr在基于零的轮询中的功能如何。