I am in the process of setting up a master/slave configuration per the recommendation in the book and online docs. I do have a couple of questions.
1) Why do so many messages get put on the shared queue? Is that normal? My setup currently is using ActiveMQ + Tomcat + Hibernate Search. This is a sample of the kind of messages I am getting very frequently. The client node is not even up yet and there are no changes in the database, but yet these messages are constantly getting pushed to the queue.
15:00:41 DEBUG MasterBootstrap.onMessage - Processing message ActiveMQObjectMessage {commandId = 5, responseRequired = true, messageId = ID:Macintosh-2.local-54700-1300473739449-0:180497:1:1:1, originalDestination = null, originalTransactionId = null, producerId = ID:Macintosh-2.local-54700-1300473739449-0:180497:1:1, destination =
queue://HibernateSearchController, transactionId = null, expiration = 0, timestamp = 1300474841107, arrival = 0, brokerInTime = 1300474841107, brokerOutTime = 1300474841108, correlationId = null, replyTo = null, persistent = true, type = null, priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null, compressed = false, userID = null, content = org.apache.activemq.util.ByteSequence@4d5efe45, marshalledProperties = null, dataStructure = null, redeliveryCounter = 0, size = 0, properties = null, readOnlyProperties = true, readOnlyBody = true, droppable = false}
15:00:41 DEBUG MasterBootstrap.onMessage - Processing message ActiveMQObjectMessage {commandId = 5, responseRequired = true, messageId = ID:Macintosh-2.local-54700-1300473739449-0:180498:1:1:1, originalDestination = null, originalTransactionId = null, producerId = ID:Macintosh-2.local-54700-1300473739449-0:180498:1:1, destination =
queue://HibernateSearchController, transactionId = null, expiration = 0, timestamp = 1300474841111, arrival = 0, brokerInTime = 1300474841111, brokerOutTime = 1300474841111, correlationId = null, replyTo = null, persistent = true, type = null, priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null, compressed = false, userID = null, content = org.apache.activemq.util.ByteSequence@26603074, marshalledProperties = null, dataStructure = null, redeliveryCounter = 0, size = 0, properties = null, readOnlyProperties = true, readOnlyBody = true, droppable = false}
As I write, 200K+ messages have been written and consumed from the queue and nothing has changed in the database. I also see most of the message sizes are "0" signifying no change I presume.
Aren't messages meant to be pushed to the queue ONLY then there is a change on the slave node(s)?
2) I understand Hibernate Search keeps 2 copies of the index on the master node, and then copies the stable/active version to the shared location for slave nodes to consume. I do see the two directories created on the master node (i.e. <indexBase>/1 and <indexBase>/2) but pointing Luke to any of these locations is giving me "0" document count. I have even pointed Luke against the "shared location" of the client and still the same result persist. Am I missing something? All I want is the location when the final build index is stored so I can see what is built and query against it.
Thanks in advance