📗
Janus Manual
  • Introduction
  • Installation
    • Docker
  • Quick Start
    • Authenticating
    • Add an endpoint
    • Modify (Update/Delete) an endpoint
    • Add Plugins
    • Authentication
    • Adding your API - File System
  • Clustering/HA
  • Proxy Reference
    • Terminology
    • Overview
    • Routing capabilities
    • Load Balacing
    • Request Host header
      • Using wildcard hostnames
      • The preserve_host property
    • Request URI
      • The strip_path property
      • The append_path property
    • Request HTTP method
    • Routing priorities
    • Conclusion
  • Plugins
    • Basic
    • Organization
    • Body Limit
    • Circuit Breaker
    • Compression
    • CORS
    • OAuth
    • Rate Limit
    • Request Transformer
    • Response Transformer
    • Retry
  • Auth
    • OAuth 2.0
  • Misc
    • Health Checks
    • Monitoring
    • Tracing
  • Known Issues
    • Stale HTTP Keep-Alive
  • Upgrade Notes
    • 2.x to 3.x
    • 3.6.x to 3.7.x
Powered by GitBook
On this page

Was this helpful?

  1. Plugins

Retry

PreviousResponse TransformerNextAuth

Last updated 4 years ago

Was this helpful?

The retry plugin allows you to configure retry rules for your proxy. This enables you to be more resilient for any network or any other kind of failure.

Configuration

The plain retry config:

{
    "name" : "retry",
    "enabled" : false,
    "config" : {
        "attempts" : 3,
        "backoff": "1s"
    }
}

Configuration

Description

attempts

Number of attempts

backoff

Time that we should wait to retry. This must be given in the format. Defaults to 1s

predicate

The rule that we will check to define if the request was successful or not. You have access to statusCode and all the request object. Defaults to `statusCode == 0

statusCode >= 500`

ParseDuration