Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Spike arrest - UseEffectiveCount - not working

Not applicable

In both the cases I am able to make more than 4 requests per ten seconds...

case 1: Without UseEffectiveCount

<SpikeArrest async="false" continueOnError="false" enabled="true" name="Spike-Arrest-1"> <DisplayName>Spike Arrest-1</DisplayName> <Properties/> <Identifier ref="request.header.some-header-name"/> <MessageWeight ref="request.header.weight"/> <Rate>6pm</Rate> </SpikeArrest>

Case 2: using UseEffectiveCount

<SpikeArrest async="false" continueOnError="false" enabled="true" name="Spike-Arrest-1"> <DisplayName>Spike Arrest-1</DisplayName> <Properties/> <Identifier ref="request.header.some-header-name"/> <MessageWeight ref="request.header.weight"/> <Rate>6pm</Rate> <UseEffectiveCount>true</UseEffectiveCount> </SpikeArrest>

I am try to understand how useEffectiveCount works... if UseEffectiveCount is set as true how many ever message processors... we can make only 1 request per 10 seconds {60(Seconds) divided by 6(requests)} in case 2. But i am able to make 4 request within span of 10 seconds.

my understanding on UseEffectiveCount is wrong? or my implementation is wrong(I have tried both case)?

Please help... thanks in advance

0 4 1,052
4 REPLIES 4