2010-11-19 11 views
0

i ont un répéteur Solr mis en place, qui semble fonctionner correctement comme un esclave, et je pensais avoir la partie maître mis en droit ainsi:répéteur Solr/esclave ne fonctionne pas

<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> 

sur mes répéteurs esclave j'ai:

<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> 

->

Cependant, le répéteur semble fonctionner comme un bon esclave, mais quand j'envoie une commande de réplication à l'esclave du répéteur, ça dit ok, pas d'erreurs dans le journal, mais quand je vérifie l'état de réplication, je reçois:

'{ "responseHeader": {"status": 0, "QTime": 47}, "détails": {"indexSize": "52 octets", "indexPath": "/ index/solr/solr.141.megaindex.prod/data/index "," commits ": []," isMaster ":" faux "," isSlave ":" vrai "," indexVersion ": 1290200498685," generation ": 1," slave ": {" masterDetails ": { "indexSize": "20,61 Go", "indexPath": "/ journals7/solr/solr.141.cow.prod/données/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 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 "]," replicationFailedAtList ": [" Fri Nov 19 16:21:21 EST 2010 "," Fri Nov 19 16:16:30 EST 2010 "," Ven 19 novembre 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 "}}," WARNING ":" Ce format de réponse est expérimental. Il est susceptible de changer dans le futur. "} ';

la partie commits est toujours vide, sur le répéteur fonctionnel, après qu'il ait été dit de se répliquer, il y a une liste de fichiers, ni le répéteur ni l'esclave indiquent .. ce qui se passe

Merci pour toute aide

Répondre

1

Vous avez l'intervalle de sondage à 0. Essayez quelque chose de plus -. Je ne sais pas comment Solr est fonctionnelle sur un sondage à base zéro