Maybe the PingRequestHandler can help? It can check for the existence
of a file (see solrconfig.xml for healthcheck) and return an error if
it is not there. This wouldn't prevent Solr from responding to
requests, but if a client used that information to determine whether
to make requests or not it'd do the trick.
Erik
On Dec 13, 2008, at 12:54 AM, Kay Kay wrote:
For a particular application of ours - we need to suspend the Solr
server from doing any query operation ( IndexReader-s) for sometime,
and then after sometime in the near future ( in minutes ) -
reinitialize / warm IndexReaders once again and get moving.
It is a little bit different from <optimize > since this server is
only supposed to read the data and not add create segments . But we
want to suspend it as an initial test case for one of our load
balancers.
(Restarting Solr is an option though we want to get to that as a
last resort ).