使用弹性文件系统的活动MQ共享文件系统主站

我正在使用共享文件系统主/从configuration(KahaDB)在生产环境中设置Active MQ。 我已经设置了一切,并在两个EC2实例上安装了EFS。

当我检查磁盘空闲状态时,我得到共享文件系统的8艾字节:

$ df -h eu-west-1a.***.efs.eu-west-1.amazonaws.com:/ 8.0E 0 8.0E 0% /mnt/efs 

不幸的是,ActiveMQ不能解释这个数字:

 Store limit is 102400 mb (current store usage is 0 mb). The data directory: /mnt/efs/kahadb only has -8796093022208 mb of usable space - resetting to maximum available disk space: -8796093022207 mb Store limit is -8796093022207 mb, whilst the max journal file size for the store is: 32 mb, the store will not accept any data when used. 

目前阻止它的使用。

有没有办法迫使操作系统报告文件系统的合理大小或closuresActive MQ中的FS检查?

ActiveMQ在5.15.0中做了改变来处理有关EFS的警告消息。 支持PercentUsage的StoreUsage和TempUsage,如果提供了总量,系统将不会查询下面的磁盘大小。 请在https://cwiki.apache.org/confluence/display/ACTIVEMQ/Producer+Flow+Control检查更新的文档