fallback tries a sequence of child plugins in order, falling back to the next when a child returns an error or (by default) when its response is empty. It can be configured to only fallback on errors.
primary / secondary (and similar) names in args.primary: string — primary child plugin name (optional)secondary: string — secondary child plugin name (optional)error_only: bool — when true, only fallback on errors (default: false)Configuration using names:
plugins:
- type: fallback
args:
primary: upstream_a
secondary: upstream_b
Exec quick-setup (compact):
plugins:
- exec: fallback:upstream_a,upstream_b
error_only=true to only fallback on errors.fallback when you have multiple upstreams or strategies and want automatic failover or secondary attempts when the primary fails or produces no answers.