{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Hybrid /
avatar image
0
Question by Anup Rai · Jan 30 at 04:15 PM · 50 Views hybridspikearrest

Spike Arrest Policy allowing more transactions then configured

I have configured spike arrest policy in API proxy deployed in Apigee Hybrid environment.

I have configured to allow only 1ps (1 request per sec) but I can see Spike arrest is not rejecting the calls even though calls are exceeding this number.

Below is the Spike Arrest policy -

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SpikeArrest async="false" continueOnError="false" enabled="true" name="SA-SpikeArrest">
    <DisplayName>SA-SpikeArrest</DisplayName>
    <Properties/>
    <Identifier ref="client_id"/>
    <Rate ref="flow.spikearrest.limit"/>
    <UseEffectiveCount>true</UseEffectiveCount>
</SpikeArrest>

I can see these numbers exceeding in variables in trace -

allowed.count=1
used.count=3
exceed.count=2 

Is there anything I am missing here?

Comment
Add comment
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Close

1 Answer

  • Sort: 
avatar image
0

Answer by Priyadarshi Ajitav Jena · Jan 30 at 05:04 PM

there are few parameters which impact the count in spike arrest.

1. If the spike arrest is set to 1ps means in 1000ms 1 request.

2. If you have n number of message processors then the above count will become 1000ms n requests.

The 2nd case is the reason in your case. Effective count is not applicable in hybrid. That is only applicable in saas Apigee and onprem > 4.18.05

Comment
Add comment Show 1 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Anup Rai · Feb 01 at 06:47 AM 0
Link

As per the below documentation each environment is assigned to one and only one message processor.

https://cloud.google.com/apigee/docs/hybrid/v1.1/mp-config

We have 2 pods running and even after triggering more than 10 request spike arrest policy is not throwing the error.

Also the spike arrest variables which are shown in Trace, Is it showing the count of each message Processor or its showing the combined count?

exceed.count=11
used.count=12
allowed.count=1

Follow this Question

Answers Answers and Comments

41 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

The concept of environment groups in hybrid 0 Answers

The concept of environment groups in hybrid 1 Answer

Question about environment groups concept in Apigee hybrid 0 Answers

Apigee hybrid on Anthos GKE on prem runtime scaling: containers per cpu/etc. recommendations 1 Answer

how to update the certificate and key in apigee hybrid 2 Answers

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges