You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2006/04/08 03:08:31 UTC

[Solr Wiki] Update of "SolrDistributionStatusStats" by HossMan

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by HossMan:
http://wiki.apache.org/solr/SolrDistributionStatusStats

The comment on the change is:
importing SolarDistributionStatusStats from CNET wiki

New page:
[[TableOfContents]]

== Distribution Status/Stats ==

The file `logs/snappuller.status` on the slave machine contains the status
and stats of the current or most recent invocation of snappuller.

A copy of this file is scp back to the master whenever it changes.  On the master
machine, the status files of all the slaves are in the directory
`logs/clients`.  The name of the file itself contains the uname of
the slave as the suffix (for example, snappuller.status.machine.domain.com).

Here is a summary of what the snappuller status file contains for various situation:

=== no snapshot on slave ===
file does not exist

=== rsync in progress ===
{{{
rsync of snapshot.20050511114052 started:20050511-144303
}}}

=== rsync finished successfully ===
{{{
rsync of snapshot.20050511114052 started:20050511-144303 ended:20050511-144312 rsync-elapsed:9
}}}

=== rsync failed ===
{{{
rsync of snapshot.20050511114052 started:20050511-144353 failed:20050511-144353
}}}

=== script terminated by SIGINT or SIGTERM ===
{{{
rsync of snapshot.20050511114052 started:20050511-144322 aborted:20050511-144322
}}}

The script traps SIGINT and SIGTERM and remove the snapshot being pulled so in most cases there should not be any partial snapshot on the slave.

== Snapshot In Use ==

The file `logs/snapshot.current` on the slave machine contains the name of
the snapshot being used as the live index currently.
Name of snapshot is in the following format:

`snapshot.YYYYMMDDhhmmss`

The name of the snapshot corresponds to the name of the directory
holding all the segments.

A copy of this file is scp back to the master whenever it changes.  On the master
machine, the status files of all the slaves are in the directory
`logs/clients`.  The name of the file itself contains the uname of
the slave as the suffix (for example, snapshot.current.machine.domain.com).