[ 
https://issues.apache.org/jira/browse/SOLR-1855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13851693#comment-13851693
 ] 

Leonardo Fedalto commented on SOLR-1855:
----------------------------------------

Devraj,

You can change the variable REPLICATION_TIME_TOLERANCE in the script.
It is set to 7200 seconds (2h), which means if the index version of the master 
and slave differs and the last time a slave could replicate was more than 2h 
ago, the script will fail.
But it will not fail if the slave is replicating at the time the script runs.

I hope this help.

> Script to monitor Solr health including replication status
> ----------------------------------------------------------
>
>                 Key: SOLR-1855
>                 URL: https://issues.apache.org/jira/browse/SOLR-1855
>             Project: Solr
>          Issue Type: New Feature
>          Components: replication (java)
>    Affects Versions: 1.4
>            Reporter: Shawn Smith
>         Attachments: checksolr, checksolr-2.sh
>
>
> It would be useful to have a simple monitor script that checks the health of 
> all cores on a solr server.
> # Call the "ping" command and verify success.
> # Check for replication failures, for replication slaves.
> The script should return a non-zero exit code if any serious errors are 
> discovered.  This should make it easy to plug the script into a monitoring 
> framework (Nagios, etc.)



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to