[ 
https://issues.apache.org/jira/browse/AMQ-5964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christopher L. Shannon resolved AMQ-5964.
-----------------------------------------
    Resolution: Fixed

Disk limits will now check and regrow in size when using a percentage to limit 
the store size if the diskUsageCheckRegrowThreshold property is set to 0 or a 
positive value.  By default it is -1 and turned off.

{code:xml}
<!-- Check disk limits every minute and grow the store size up to a maximum of 
50% of the partition.  Only increase if the amount of free space has increased 
by 10 mb or more -->
<broker xmlns="http://activemq.apache.org/schema/core"; 
schedulePeriodForDiskUsageCheck="60000"  diskUsageCheckRegrowThreshold="10 mb">
  ...

<systemUsage>
  <systemUsage>
    <storeUsage>
     <!-- Use up to 50% of the partition size -->
      <storeUsage percentLimit="50" />
    </storeUsage>
  </systemUsage>
</systemUsage>

---
</broker>
{code}

> Add an option to increase disk based limits if space is available for 
> percentage case
> -------------------------------------------------------------------------------------
>
>                 Key: AMQ-5964
>                 URL: https://issues.apache.org/jira/browse/AMQ-5964
>             Project: ActiveMQ
>          Issue Type: Sub-task
>            Reporter: Christopher L. Shannon
>            Assignee: Christopher L. Shannon
>             Fix For: 5.13.0
>
>
> Besides dynamically shrinking the maximum disk space used based on available 
> space (both periodically and on start up), we could also add the option 
> increase the disk space usage back to the percentage limit set if space frees 
> up in the future.
> For now, this is only really doable with the percentage based case as 
> described in AMQ-5965 unless some rework was done to the limit configuration. 
>  This is because currently the disk check resets the limit to a lower value 
> if it's too high so we don't track the original value anymore to regrow too.  
> However, for the percentage base the original limit percent size will still 
> be known so this is possible.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to