Monday, June 13, 2011


Last night KahaDB blew up on me and caused some interesting cascading failures. I found this article useful, so I LIFTED WHOLESALE FROM: http://fusesource.com/docs/broker/5.4/persistence/KahaDB-Overview.html
Example 2.1 shows the basic configuration of the KahaDB message store, where the KahaDB files are stored under the activemq-data directory and the maximum size of a journal file is limited to 32 megabytes.

The metadata cache is an in-memory cache consisting mainly of destinations and message references. That is, for each JMS destination, the metadata cache holds a tree of message references, giving the location of every message in the data log files. Each message reference maps a message ID to a particular offset in one of the data log files (there can be multiple data log files). The tree of message references is maintained using a B-tree algorithm, which enables rapid searching, insertion, and deletion operations on an ordered list of messages.
The metadata cache is periodically written to the metadata store on the file system. This procedure is known as checkpointing and the length of time between checkpoints is configurable using the checkpointInterval option. For details of how to configure the metadata cache, see Optimizing the Metadata Cache.

0 comments: