{"id":33179018,"url":"https://github.com/openmessaging/openchaos","last_synced_at":"2026-01-29T19:30:58.917Z","repository":{"id":37124478,"uuid":"242086572","full_name":"openmessaging/openchaos","owner":"openmessaging","description":"Chaos Framework proposes a unified API for vendors to provide solutions to various aspects of performing the principles of chaos engineering in cloud-native environment.","archived":false,"fork":false,"pushed_at":"2024-12-02T20:05:06.000Z","size":784,"stargazers_count":156,"open_issues_count":6,"forks_count":48,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-11-20T21:05:17.617Z","etag":null,"topics":["cache","chaos-engineering","eventing","kafka","messaging"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openmessaging.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-21T08:08:21.000Z","updated_at":"2025-11-20T06:47:36.000Z","dependencies_parsed_at":"2023-02-17T04:46:08.275Z","dependency_job_id":null,"html_url":"https://github.com/openmessaging/openchaos","commit_stats":null,"previous_names":["openmessaging/openmessaging-chaos"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/openmessaging/openchaos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openmessaging%2Fopenchaos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openmessaging%2Fopenchaos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openmessaging%2Fopenchaos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openmessaging%2Fopenchaos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openmessaging","download_url":"https://codeload.github.com/openmessaging/openchaos/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openmessaging%2Fopenchaos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28883090,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T19:23:39.025Z","status":"ssl_error","status_checked_at":"2026-01-29T19:22:11.631Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cache","chaos-engineering","eventing","kafka","messaging"],"created_at":"2025-11-16T03:00:36.817Z","updated_at":"2026-01-29T19:30:58.894Z","avatar_url":"https://github.com/openmessaging.png","language":"Java","funding_links":[],"categories":["容错组件"],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/openmessaging/openchaos.svg?branch=master)](https://travis-ci.org/github/openmessaging/openchaos) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.openmessaging.chaos/messaging-chaos/badge.svg)](http://search.maven.org/#search%7Cga%7C1%7Copenmessaging-chaos) [![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fopenmessaging%2Fopenmessaging-chaos.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fopenmessaging%2Fopenmessaging-chaos?ref=badge_shield)\n\n# Goals\n\nThe framework proposals a unified API for vendors to provide solutions to various aspects of performing the principles of chaos engineering in a Cloud Native environment, its built-in modules will heavily testify reliability, availability and resilience for distriuted system. Currently, the community supported the following platforms：\n\n- [Apache RocketMQ](https://rocketmq.apache.org/)\n- [Apache Kafka](https://kafka.apache.org/)\n- [DLedger](https://github.com/openmessaging/openmessaging-storage-dledger)\n- [Redis](https://redis.io/)\n- [Zookeeper](https://zookeeper.apache.org/)\n- [Etcd](https://etcd.io/)\n- [Nacos](https://nacos.io/) -- experimental\n\n\n## Usage\n\nTake RocketMQ for example:\n\n1. Prepare one control node and some cluster nodes and ensure that the control node can use SSH to log into a bunch of cluster nodes (note : you must set secret-free style, does not support passwords).\n2. Edit driver-rocketmq/rocketmq.yaml to set the host name of cluster nodes, client config, broker config.\n3. Install openchaos in control node:  `mvn clean install`\n4. Run the test in the control node: `bin/chaos.sh --driver driver-rocketmq/rocketmq.yaml --install` \n5. After the test, you will get yyyy-MM-dd-HH-mm-ss-driver-chaos-result-file and yyyy-MM-dd-HH-mm-ss-driver-latency-point-graph.png (Gnuplot must be installed).\n\n\n## Quick Start（Docker）\n\nIn one shell, we start the some cluster nodes and the controller using docker compose.\n\n```shell\ncd docker\n./up.sh --dev\n```\nIn another shell, use `docker exec -it chaos-control bash` to enter the controller, then\n\n```shell\nmvn clean install\nbin/chaos.sh --driver driver-rocketmq/rocketmq.yaml --install --restart\n```\n\n## Option\n\n```\nUsage: messaging-chaos [options]\n  Options:\n    --agent\n      Run program as a http agent.\n      Default: false\n    -c, --concurrency\n      The number of clients. eg: 5\n      Default: 4\n  * -d, --driver\n      Driver. eg.: driver-rocketmq/rocketmq.yaml\n    -f, --fault\n      Fault type to be injected. eg: noop, minor-kill, major-kill, \n      random-kill, fixed-kill, random-partition, fixed-partition, \n      partition-majorities-ring, bridge, random-loss, minor-suspend, \n      major-suspend, random-suspend, fixed-suspend, leader-kill, leader-suspend\n      Default: noop\n    -i, --fault-interval\n      Fault injection interval. eg: 30\n      Default: 30\n    -n, --fault-nodes\n      The nodes need to be fault injection. The nodes are separated by \n      semicolons. eg: 'n1;n2;n3'  Note: this parameter must be used with \n      fixed-xxx faults such as fixed-kill, fixed-partition, fixed-suspend.\n    -h, --help\n      Help message\n    --install\n      Whether to install program. It will download the installation package on \n      each cluster node. When you first use OpenChaos to test a \n      distributed system, it should be true.\n      Default: false\n    --restart\n      Whether to restart program. If you want the nodes to be restarted, and \n      shut down after the experiment, it should be true.\n      Default: false\n    -t, --limit-time\n      Chaos execution time in seconds (excluding check time and recovery \n      time). eg: 60\n      Default: 60\n    -m, --model\n      Test model. Currently queue model and kv model are supported.\n      Default: queue\n    --output-dir\n      The directory of history files and the output files\n    -p, --port\n      The listening port of http agent.\n      Default: 8080\n    --pull\n      Driver use pull consumer, default is push consumer. Just for queue model.\n      Default: false\n    -r, --rate\n      Approximate number of requests per second. eg: 20\n      Default: 20\n    --recovery\n      Calculate failure recovery time.\n      Default: false\n    --rto\n      Calculate failure recovery time in fault.\n      Default: false\n    -u, --username\n      User name for ssh remote login. eg: admin\n      Default: root\n    --password\n      User password for ssh remote login. eg: admin\n      Default: null\n```\n\n## Fault type\n\nThe following fault types are currently supported:\n- random-partition (fixed-partition): isolates random(fixed) nodes from the rest of the network.\n- random-loss: randomly selected nodes lose network packets.\n- random-kill (minor-kill, major-kill, fixed-kill): kill random(minor, major, fixed) processes and restart them.\n- random-suspend (minor-suspend, major-suspend, fixed-suspend): pause random(minor, major, fixed) nodes with SIGSTOP/SIGCONT.\n- bridge: a grudge which cuts the network in half, but preserves a node in the middle which has uninterrupted bidirectional connectivity to both components (note: number of nodes must be greater than 3).\n- partition-majorities-ring: every node can see a majority, but no node sees the same majority as any other. Randomly orders nodes into a ring (note: number of nodes must be equal to 5).\n\n![](images/fault-type.png)\n\n\n## License\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fopenmessaging%2Fopenchaos.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fopenmessaging%2Fopenchaos?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenmessaging%2Fopenchaos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenmessaging%2Fopenchaos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenmessaging%2Fopenchaos/lists"}