This documentation is for WSO2 API Manager 2.0.0 View documentation for the latest release.
Page Comparison - Prevent API Suspension (v.9 vs v.10) - API Manager 2.0.0 - WSO2 Documentation

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Minor formatting changes

...

Info

To avoid backend endpoint suspension,

  1. Navigate to the <API-M_HOME>/repository/deployment/server/synapse-configs/default/api folder.
  2. Open the configuration file of the API that has to be prevented from being suspended. (e.g. admin--testApi_v1.0.0.xml)
  3. Add the following configurations:

    Code Block
     <endpoint name="admin--testApi_APIproductionEndpoint_0">
     	<address uri="http://localhost:9000/services/SimpleStockQuoteService">
    		<timeout>
    			<duration>30000</duration>
    			<responseAction>fault</responseAction>
    		</timeout>
    		<suspendOnFailure>
    			<errorCodes>-1</errorCodes>
    			<initialDuration>0</initialDuration>
    			<progressionFactor>1.0</progressionFactor>
    			<maximumDuration>0</maximumDuration>
    		</suspendOnFailure>
    		<markForSuspension>
    			<errorCodes>-1</errorCodes>
    		</markForSuspension>
    	</address>
     </endpoint>

For more details on configuring different timeouts, see Timeout configurations for an API call in the Performance guide.