Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-6520

support indexDirectory attribute via mKahaDB

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.14.0
    • Fix Version/s: 5.15.0
    • Component/s: Message Store
    • Labels:
      None

      Description

      AMQ-5072 added the index directory to kahadb such that the index can be on a different volume to the journal data.
      With mKahadb, this information is lost when the perDestination option is used.

      eg:
      Start a standalone broker with the following mKahaDB configuration.

      <mKahaDB directory="${data}/kahadb">
        <filteredPersistenceAdapters>
         <filteredKahaDB perDestination="true">
      	<persistenceAdapter>
      	  <kahaDB journalMaxFileLength="32mb" indexDirectory="/tmp/kindex"/>
      	</persistenceAdapter>
        </filteredKahaDB>
       </filteredPersistenceAdapters>
      </mKahaDB>
      

      With the above cfg, the indices for each of the created queues reside in what would be the default location. For example, given a queue called FOOBAR, its corresponding index files will be found in ../data/amq/kahadb/queue#3a#2f#2fFOOBAR and not /tmp/kindex/queue#3a#2f#2fFOOBAR

      With the cfg below, the indices for 'FOO.>' and 'BAR.>' are being created in their respective directories (i.e., under kindex1 and kindex2).

      <mKahaDB directory="${data}/kahadb">
       <filteredPersistenceAdapters>
         <filteredKahaDB queue="FOO.>">
          <persistenceAdapter>
            <kahaDB journalMaxFileLength="32mb" indexDirectory="/tmp/kindex1"/>
          </persistenceAdapter>
         </filteredKahaDB>
         <filteredKahaDB queue="BAR.>">
          <persistenceAdapter>
            <kahaDB journalMaxFileLength="32mb" indexDirectory="/tmp/kindex2"/>
          </persistenceAdapter>
         </filteredKahaDB>
       </filteredPersistenceAdapters>
      </mKahaDB>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gtully Gary Tully
                Reporter:
                gtully Gary Tully
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: