Spike arrest Policy - Spike arrest violation error

Hi,

We have spike arrest limit 100 TPS. Load testing team running 1637 transactions in 58 minutes. We are getting maximum 5 request in 1 second, still we are getting below error.

"Number of requests threshold reached (Spike arrest violation. Allowed rate : MessageRate{messagesPerPeriod=100, periodInMicroseconds=6000000, maxBurstMessageCount=1.6666666666666667}), please wait and resubmit the request after sometime"

Could you please help here what is wrong with the configuration and what is the solution to implement for not getting this error.

Thanks,

0 3 178
3 REPLIES 3

Which version of Apigee is this, and can you share the spike arrest policy configuration? 

Additionally, when running the load test, while it's "1637 transactions in 58 minutes", you also mention it's sending 5 requests in a second.. so it seems the requests are not spread out? How close together are requests getting sent out at peak?

Also in the error message you're seeing, the periodInMicroseconds seems to equate to 1 minute. Eg it looks like your policy is configured to 100 requests per minute

Below is the policy configuration

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SpikeArrest async="false" continueOnError="false" enabled="true" name="spikeArrest">
<DisplayName>spikeArrest</DisplayName>
<Properties/>
<Rate ref="SpikeArrestLimit">100ps</Rate>
<UseEffectiveCount>true</UseEffectiveCount>
</SpikeArrest>

I checked in google 

periodInMicroseconds = Number of microprocessors*1000000

Can you use trace/debug to also confirm what value is assigned to your variable, SpikeArrestLimit as you're using a reference for the Rate