Re: Bandwidth - Limit throughput by number of bytes per second

2013-01-03 Thread Gary Tully
that factory is plugable, so you could extend ConditionalNetworkBridgeFilterFactory with your own limiter implementation. It can be specified via a bean in the xml configuration for a network connector. It would make a nice patch to add that option :-) in any event please raise an enhancement reque

Re: Bandwidth - Limit throughput by number of bytes per second

2013-01-03 Thread Christian Posta
Yep, that's correct. It's a messages/second. Let me give it a deeper look when I get a second. Apollo uses HawtDispatch which uses transports that have an optional rate limiter like the one you're looking for, so I wonder if somethings similar can be done for ActiveMQ. On Thu, Jan 3, 2013 at 9:35

Re: Bandwidth - Limit throughput by number of bytes per second

2013-01-03 Thread billy
I'm currently using ActiveMQ-5.5.1. The ConditionalNetworkBridgeFilterFactory was first implemented in 5.6.0 so I would have to upgrade to get this factory. Second, the setRateLimit method looks like the units are in MESSAGES/duration and not bytes/duration. -- View this message in context: h

Re: Bandwidth - Limit throughput by number of bytes per second

2013-01-03 Thread billy
Do you know what the units are for setRateLimit(int rateLimit)? The test code you showed me looks like the units are in messages and that will not work for me because I am sending just one message (file) that is huge - it is a TIFF file. I need the rate units to be something like bytes per second

Re: Bandwidth - Limit throughput by number of bytes per second

2013-01-03 Thread Christian Posta
Check out this test case around line 303: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/TwoBrokerQueueClientsReconnectTest.java?view=markup On Thu, Jan 3, 2013 at 7:23 AM, billy wrote: > I read about that too and it sounds like it will work

Re: Bandwidth - Limit throughput by number of bytes per second

2013-01-02 Thread Christian Posta
I haven't tried it, but you can take a look at the ConditionalNetworkBridgeFilterFactory which can throttle messages to subscriptions. See bottom of this wiki: http://activemq.apache.org/networks-of-brokers.html On Wed, Jan 2, 2013 at 3:19 PM, billy wrote: > I have two ActiveMQ-5.5.1 broker's c