a6-plugin-fault-injection

Configure Apache APISIX fault-injection plugin for request delays and HTTP aborts.

1|2|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/moonming/a6 --skill a6-plugin-fault-injection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: a6-plugin-fault-injection
Source: https://github.com/moonming/a6/tree/main/skills/a6-plugin-fault-injection
Command: npx skills add https://github.com/moonming/a6 --skill a6-plugin-fault-injection

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill allows you to simulate network and service failures within your Apache APISIX instance, enabling robust chaos engineering and resiliency testing.

Core Features & Use Cases

  • Fault Injection: Configure delays or HTTP aborts for specific requests.
  • Conditional Logic: Apply faults based on request headers, query parameters, or Nginx variables using sophisticated expressions.
  • Use Case: Simulate a 500ms delay for 10% of requests originating from a specific IP address to test how your application handles latency.

Quick Start

Use the a6-plugin-fault-injection skill to create a route that aborts 50% of requests with a 503 status code.

Frequently Asked Questions about a6-plugin-fault-injection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I inject latency delays into APISIX requests for resiliency testing?

To inject latency delays into APISIX requests for resiliency testing, configure the fault-injection plugin to add configurable request delays based on specified percentages. This simulates network latency to validate how your application handles timeout conditions.

Can I abort HTTP requests conditionally based on request headers in APISIX?

Yes, you can abort HTTP requests conditionally in APISIX by applying fault injection logic based on request headers, query parameters, or Nginx variables. This allows targeting specific HTTP aborts with configurable status codes.

What is fault injection in chaos engineering and how does it work with APISIX?

Fault injection in chaos engineering is the practice of simulating service failures to test system resiliency. With APISIX, it works by configuring a plugin to intercept requests and inject configured delays or HTTP aborts using conditional logic.

How do I simulate a 503 HTTP abort for a percentage of API traffic?

You simulate a 503 HTTP abort for a percentage of API traffic by configuring the APISIX fault-injection plugin with an abort configuration. Set the percentage to 50% and specify 503 as the returned status code to test application failure handling.

Does APISIX fault injection support targeting specific users or IP addresses?

Yes, APISIX fault injection supports targeting specific users or IP addresses by using sophisticated conditional logic. You can apply faults based on request variables, allowing you to simulate failures for specific traffic segments.