This Recovery Trims the journal queue down to a predefined quota percentage usage.
Removes messages from the journal queue.
Messages will be removed from the journal starting with the oldest and then continuing according to the specific logic. There are three different types of potential logic as follows:
quota | Remove messages until the quota percentage is reduced to the target value. |
time | Remove all messages older than the specified date/time. |
kbytes | Remove messages totaling the specified number of kilobytes. |
purge | Removes all messages. |
Target | Microsoft.MSMQ.6.3.Queues |
Monitor | Microsoft.MSMQ.6.3.Monitor.Queue.JournalPercentage |
Reset Monitor | True |
Remotable | True |
Timeout | 300 |
Category | AvailabilityHealth |
Enabled | false |
Accessibility | Public |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
TrimQueue | WriteAction | Microsoft.MSMQ.6.3.TrimQueue | Default |
<Recovery ID="Microsoft.MSMQ.6.3.Recovery.TrimJournalQueue" Accessibility="Public" Enabled="false" Target="Microsoft.MSMQ.6.3.Queues" Monitor="Microsoft.MSMQ.6.3.Monitor.Queue.JournalPercentage" ResetMonitor="true" ExecuteOnState="Error" Remotable="true" Timeout="300">
<Category>AvailabilityHealth</Category>
<WriteAction ID="TrimQueue" TypeID="Microsoft.MSMQ.6.3.TrimQueue">
<Computer>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</Computer>
<QueuePath>$Target/Property[Type="Microsoft.MSMQ.6.3.Queue"]/PathName$</QueuePath>
<TargetQueue>journal</TargetQueue>
<TrimLogic>quota</TrimLogic>
<NumericParameter>60</NumericParameter>
<TimeoutSeconds>300</TimeoutSeconds>
</WriteAction>
</Recovery>