For the complete documentation index, see llms.txt. This page is also available as Markdown.

Chaos Engineering Reference

API reference and technical documentation for chaos engineering

This section provides comprehensive reference documentation for Harness Chaos Engineering APIs, configurations, and technical specifications.

API Reference

REST API

  • Experiments API: Create, manage, and execute chaos experiments

  • Faults API: Access available fault types and configurations

  • Results API: Retrieve experiment results and metrics

  • Infrastructure API: Manage target infrastructure and connections

GraphQL API

  • Schema Documentation: Complete GraphQL schema reference

  • Query Examples: Common queries and mutations

  • Subscription Events: Real-time experiment updates

Configuration Reference

Experiment Configuration

Fault Specifications

  • Infrastructure Faults: CPU, memory, network, and disk fault configurations

  • Application Faults: Service mesh and application-level fault specifications

  • Platform Faults: Kubernetes and cloud provider-specific configurations

Fault Library

Infrastructure Faults

  • cpu-hog: CPU stress testing

  • memory-hog: Memory exhaustion testing

  • network-latency: Network delay injection

  • disk-fill: Disk space exhaustion

Kubernetes Faults

  • pod-delete: Pod termination testing

  • node-drain: Node evacuation testing

  • container-kill: Container failure simulation

Cloud Provider Faults

  • ec2-terminate: AWS EC2 instance termination

  • vm-stop: Azure VM shutdown

  • gce-stop: GCP Compute Engine instance stop

SDK Reference

Python SDK

Go SDK

JavaScript SDK

CLI Reference

Installation

Common Commands

Webhook Reference

Event Types

  • experiment.started: Experiment execution started

  • experiment.completed: Experiment execution completed

  • experiment.failed: Experiment execution failed

  • fault.injected: Fault injection started

  • fault.recovered: Fault recovery completed

Payload Structure

Error Codes

HTTP Status Codes

  • 200: Success

  • 400: Bad Request - Invalid parameters

  • 401: Unauthorized - Invalid API key

  • 403: Forbidden - Insufficient permissions

  • 404: Not Found - Resource not found

  • 429: Too Many Requests - Rate limit exceeded

  • 500: Internal Server Error

Custom Error Codes

  • CE001: Experiment validation failed

  • CE002: Target infrastructure unreachable

  • CE003: Insufficient permissions

  • CE004: Fault injection failed

  • CE005: Experiment timeout exceeded

Limits and Quotas

API Rate Limits

  • REST API: 1000 requests per minute

  • GraphQL API: 500 queries per minute

  • Webhook Delivery: 100 events per minute

Resource Limits

  • Concurrent Experiments: 50 per account

  • Experiment Duration: 24 hours maximum

  • Target Resources: 1000 per experiment

Version History

API Versioning

  • v1: Current stable version

  • v2: Beta version with enhanced features

  • Legacy: Deprecated versions (v0.x)

Changelog

See our Release Notes for detailed version history and breaking changes.

Last updated

Was this helpful?