When you first set up your high availability Lucene configuration, you can configure Novell Vibe to write Lucene node information to the Tomcat log file so that you can observe the behavior of the Lucene nodes. Then you can take nodes down and bring them up again to see the effect on your Vibe site. This process helps you prepare for the situation where a Lucene node goes down unexpectedly or you need to take one down on purpose, perhaps for maintenance.
By default, Vibe writes an error to the Tomcat log file whenever it cannot communicate with a Lucene node. For testing purposes, you can change the logging level so that the Tomcat log file includes a message for each time Vibe contacts a Lucene Index Server.
After observing and understanding the behavior, you should return the logging to normal levels.
Open the log4j.properties file in a text editor.
The location of the log4j.properties file varies by platform.
c:\Program Files\Novell\Teaming\apache-tomcat\ webapps\ssf\WEB-INF
Search for the following line:
Remove the pound sign (#) from the beginning of the line to activate the DEBUG logging level for the Lucene Index Server.
The DEBUG logging level adds a message for each time Vibe contacts a Lucene Index.
Save the log4j.properties file, then exit the text editor.
Stop Vibe, then start Vibe to put the new logging level into effect.
After changing the Vibe logging level to include Lucene node activity, you can monitor the Tomcat log file to see which Lucene nodes Vibe is contacting.
Change to the directory where the Tomcat log file is located.
On Linux, use the tail command to monitor the end of the Tomcat log file.
tail -f catalina.out
On Windows, download an equivalent command from the Internet in order to perform the following steps.
For example, there is a command available at SourceForge.net.
Perform some activities on the Vibe site to create new content.
For example, you could create a blog entry. The Tomcat log file shows that Vibe is contacting each available Lucene Index Server in turn as it submits the new information for indexing. Nodes are considered available if they are markedin the box on the Lucene Nodes page.
Bring down one of the Lucene nodes.
For example, you might reboot the Lucene server, stop the Lucene Index Server on the node, or otherwise prevent Vibe from contacting the Lucene node.
Observe that the Tomcat log file displays an error when the Lucene node becomes unavailable.
Perform some additional activities on the Vibe site that create new content.
You might notice a pause as Vibe tries to connect with the Lucene node that is no longer available.
Observe that the Tomcat log file shows when normal Vibe processing has resumed without access to the unavailable Lucene node.
Make the unavailable Lucene node available again.
Observe that the Tomcat log file indicates that Vibe has created a journal record on the Lucene node that was temporarily unavailable.
The journal record contains the indexing operations that failed to take place while the Lucene node was unavailable. Even though the Lucene node is back up, Vibe does not start accessing it until it has been synchronized with the latest index information.
To synchronize the out-of-date Lucene node, follow the steps in Section 16.4, Synchronizing a High Availability Lucene Configuration.
After the out-of-date Lucene node has been synchronized, Vibe starts accessing it again.
If a situation arises where no Lucene node is markedin the box on the Lucene Nodes page, Vibe temporarily accesses the first node in the list that is set to . If no nodes are set to or , Vibe temporarily access the first node in the list, even though it is set to . This functionality is required because you cannot log in to the Vibe site without access to a Lucene Index Server.