Si la tasa de interrupción de aumento de tráfico especificada en el elemento <Rate> de la política Spike Arrest no es un número entero o si la tasa no tiene ps ni pm como sufijo, la implementación del proxy de API falla.
Los valores válidos son [int]ps y [int]pm.
Por ejemplo, si el índice de desviación del aumento especificado es 30.1ps en el elemento <Rate> de una política de Spike Arrest, entonces la implementación del proxy de la API falla. Esto se debe a que 30.1 no es un número entero.
Diagnóstico
Identifica la tasa de interrupción de aumento de tráfico no válida que se especificó en la política Spike Arrest.
Puedes encontrar esta información en el mensaje de error. Por ejemplo, en el siguiente error, la interrupción de aumento de tráfico no válida es 30.1:
Examina todas las políticas Spike Arrest en el proxy de API específico en el que se produjo la falla. Si existe una política Spike Arrest en la que la interrupción de aumento que se especifica en el elemento <Rate> coincide con la tasa de interrupción de aumento de tráfico no válida que se identificaen el paso 1 anterior, esa es la causa del error.
Por ejemplo, la siguiente política especifica el valor de <Rate> como 30.1ps, que coincide con el contenido del mensaje de error:
Como la tasa de interrupción de aumento de tráfico especificada en el elemento <Rate> no es un número entero, la implementación del proxy de API falla con esteerror:
Invalid spike arrest rate 30.1ps.
Solución
Asegúrate de que el valor la tasa de interrupción de aumento de tráfico que se especifica en el elemento <Rate> de la política Spike Arrest sea un número entero y tenga ps o pm como sufijo. Por ejemplo:
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-03 (UTC)"],[[["\u003cp\u003eThis documentation addresses an error where API proxy deployment fails due to an invalid spike arrest rate specified in the Spike Arrest Policy.\u003c/p\u003e\n"],["\u003cp\u003eThe error, "Invalid spike arrest rate," occurs when the \u003ccode\u003e<Rate>\u003c/code\u003e element within the Spike Arrest Policy is not an integer or lacks the \u003ccode\u003eps\u003c/code\u003e or \u003ccode\u003epm\u003c/code\u003e suffix.\u003c/p\u003e\n"],["\u003cp\u003eDiagnosis involves identifying the invalid rate from the error message and locating the corresponding Spike Arrest policy with the incorrect \u003ccode\u003e<Rate>\u003c/code\u003e value.\u003c/p\u003e\n"],["\u003cp\u003eTo resolve the issue, the \u003ccode\u003e<Rate>\u003c/code\u003e element in the Spike Arrest Policy must be modified to use an integer value with either \u003ccode\u003eps\u003c/code\u003e (per second) or \u003ccode\u003epm\u003c/code\u003e (per minute) as a suffix.\u003c/p\u003e\n"]]],[],null,["# Spike Arrest policy deployment error troubleshooting\n\n*You're viewing **Apigee** and **Apigee hybrid** documentation.\nView [Apigee Edge](https://docs.apigee.com/api-platform/troubleshoot/policies/deployment/spike-arrest-deployment-errors) documentation.*\n| Was this troubleshooting playbook helpful? Please let us know by clicking [Send Feedback]().\n\nInvalidAllowedRate\n------------------\n\n### Error message\n\nDeployment of the API proxy through either the Apigee UI or API fails\nwith this error message: \n\n```transact-sql\nError Saving Revision [revision_number]\nInvalid spike arrest rate [invalid_rate].\n```\n\n**Example error messages** \n\n Error Saving Revision 1\n Invalid spike arrest rate 30s.\n\n Error Saving Revision 1\n Invalid spike arrest rate 30.1ps.\n\n**Example screenshots**\n\n### Cause\n\nIf the spike arrest rate specified in the `\u003cRate\u003e` element of the Spike Arrest\nPolicy is not an integer or if the rate does not have `ps` or `pm` as a suffix,\nthen the deployment of the API proxy fails.\n\nThe valid values are `[`***int***`]ps` and `[`***int***`]pm`.\n\nFor example, if the spike arrest rate specified is `30.1ps` in the `\u003cRate\u003e` element\nof a Spike Arrest Policy, then the deployment of the API proxy fails. This is\nbecause 30.1 is not an integer.\n\n### Diagnosis\n\n1. Identify the invalid spike arrest rate specified in the Spike Arrest policy.\n You can find this information from the error message. For example, in the following\n error, the invalid spike arrest is `30.1`:\n\n Error Saving Revision 1\n Invalid spike arrest rate 30.1ps.\n\n2. Examine all the Spike Arrest policies in the specific API proxy where the\n failure has occurred. If there is any Spike Arrest policy in which the spike\n arrest specified in the `\u003cRate\u003e` element matches the invalid spike arrest rate\n identified in Step #1 above, then that's the cause of the error.\n\n For example, the following policy specifies the value of `\u003cRate\u003e` as 30.1ps,\n which matches what's in the error message: \n\n \u003c?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?\u003e\n \u003cSpikeArrest async=\"false\" continueOnError=\"false\" enabled=\"true\" name=\"CheckRate\"\u003e\n \u003cDisplayName\u003eCheckRate\u003c/DisplayName\u003e\n \u003cProperties/\u003e\n \u003cIdentifier ref=\"request.header.some-header-name\"/\u003e\n \u003cMessageWeight ref=\"request.header.weight\"/\u003e\n \u003cRate\u003e30.1ps\u003c/Rate\u003e\n \u003c/SpikeArrest\u003e\n\n Since the spike arrest rate specified in the `\u003cRate\u003e` element is not an integer,\n the deployment of the API Proxy fails with the error: \n\n Invalid spike arrest rate 30.1ps.\n\n### Resolution\n\nEnsure that the value of the spike arrest rate specified in the `\u003cRate\u003e` element\nof the Spike Arrest Policy is an integer and has `ps` or `pm` as a suffix. For\nexample: \n\n \u003c?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?\u003e\n \u003cSpikeArrest async=\"false\" continueOnError=\"false\" enabled=\"true\" name=\"CheckRate\"\u003e\n \u003cDisplayName\u003eCheckRate\u003c/DisplayName\u003e\n \u003cProperties/\u003e\n \u003cIdentifier ref=\"request.header.some-header-name\"/\u003e\n \u003cMessageWeight ref=\"request.header.weight\"/\u003e\n \u003cRate\u003e30ps\u003c/Rate\u003e\n \u003c/SpikeArrest\u003e"]]