{"id":15502065,"url":"https://github.com/ankhers/havoc","last_synced_at":"2025-08-21T15:32:49.190Z","repository":{"id":57504501,"uuid":"152618494","full_name":"ankhers/havoc","owner":"ankhers","description":"ChaosMonkey style testing for the BEAM","archived":false,"fork":false,"pushed_at":"2023-01-07T15:31:11.000Z","size":48,"stargazers_count":54,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-12T20:48:45.900Z","etag":null,"topics":["beam","chaos-monkey","erlang","testing"],"latest_commit_sha":null,"homepage":"","language":"Erlang","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/ankhers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-11T15:57:24.000Z","updated_at":"2023-10-12T06:32:40.000Z","dependencies_parsed_at":"2023-02-07T13:16:16.818Z","dependency_job_id":null,"html_url":"https://github.com/ankhers/havoc","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankhers%2Fhavoc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankhers%2Fhavoc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankhers%2Fhavoc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankhers%2Fhavoc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ankhers","download_url":"https://codeload.github.com/ankhers/havoc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230520394,"owners_count":18238948,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["beam","chaos-monkey","erlang","testing"],"created_at":"2024-10-02T09:07:29.329Z","updated_at":"2024-12-20T01:15:59.742Z","avatar_url":"https://github.com/ankhers.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"Havoc\n======\n\nA ChaosMonkey style application that can randomly kill processes, as well as\nTCP and UDP connections. Inspired by [dLuna/chaos_monkey](https://github.com/dLuna/chaos_monkey).\n\nBasic Usage\n-----------\n``` erlang\nhavoc:on().\n```\n\nThis will use the default options. The following is a list of currently\nallowed options\n\n* `avg_wait` - The average amount of time you would like to wait between kills.\n  (default `5000`)\n* `deviation` - The deviation of time allowed between kills. (default `0.3`)\n* `supervisor` - Whether or not to kill supervisors. (default `false`)\n* `process` - Whether or not to kill processes. (default `true`)\n* `tcp` - Whether or not to kill TCP connections. (default `false`)\n* `udp` - Whether or not to kill UDP connections. (default `false`)\n* `nodes` - Either a list of atoms for node names, or any value that\n  `erlang:nodes/1` accepts. (default `this`)\n* `applications` - A list of application names that you want to target.\n  (defaults to all applications except `kernel` and `havoc`)\n* `otp_applications` - A list of OTP applications that you would like to target.\n  (default `[]`)\n* `supervisors` - A list of supervisors that you want to target. Can be any\n  valid supervisor reference. (defaults to all supervisors)\n* `killable_callback` - A `Fun` that gets called to decide if a `pid` or\n  `port` may be killed or not by returning `true` or `false`.\n* `prekill_callback` - A `Fun` that gets called just before killing.\n\nYou can specify options using `havoc:on/1`.\n\n``` erlang\nhavoc:on([{avg_wait, 3000}, {deviation, 0.5}, process, tcp])\n```\n\nIt is also possible to check if havoc is currently active.\n\n``` erlang\nhavoc:is_active()\n```\n\nBuild\n-----\n\n    $ rebar3 compile\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankhers%2Fhavoc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fankhers%2Fhavoc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankhers%2Fhavoc/lists"}