Spike Arrest Policy in Apigee Edge

Not applicable

Hi Team,

I am working on Spike arrest policy in Apigee Edge.

I am writing following code for the spike arrest policy.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <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>30pm</Rate> </SpikeArrest>

I am giving the Rate as 30pm(60sec/30pm=2sec).

So, When I am sending the second request before 2sec it should return error.

But it is not happend at all. I have followed the apigee docs.

In Apigee Trail version it is only taking 20 requests per 10 minutes.

But in doc it is shown like for Spike Arrest 31 request will fail.

Please, Suggest me when I did the mistake.

Thanks in Advance.

0 1 228
1 REPLY 1

Not applicable

Hi @venkatesh kandukuri

SpikeArrest is non-distributed that means this is per MP (Message Processor). As second request would have gone to another MP (due to Round-robin algorithm), this will succeed. Send requests more than number of MP instances in the time interval, additional request will fail.