{"id":17910828,"url":"https://github.com/dgzlopes/powerfulseal-agent","last_synced_at":"2025-04-03T06:42:15.233Z","repository":{"id":122629160,"uuid":"244347465","full_name":"dgzlopes/powerfulseal-agent","owner":"dgzlopes","description":"WIP: Chaos agent for Powerfulseal","archived":false,"fork":false,"pushed_at":"2020-05-22T15:15:45.000Z","size":83,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T09:47:53.337Z","etag":null,"topics":["chaos-engineering","powerfulseal","testing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dgzlopes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-02T10:53:13.000Z","updated_at":"2020-05-22T15:15:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"240f6a72-8a33-409c-afb0-2a6a45119573","html_url":"https://github.com/dgzlopes/powerfulseal-agent","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgzlopes%2Fpowerfulseal-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgzlopes%2Fpowerfulseal-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgzlopes%2Fpowerfulseal-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgzlopes%2Fpowerfulseal-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dgzlopes","download_url":"https://codeload.github.com/dgzlopes/powerfulseal-agent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246952273,"owners_count":20859811,"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":["chaos-engineering","powerfulseal","testing"],"created_at":"2024-10-28T19:34:49.449Z","updated_at":"2025-04-03T06:42:15.211Z","avatar_url":"https://github.com/dgzlopes.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# powerfulseal-agent\n\n\u003e :warning: This repo is a proof of concept for an experimental Powerfulseal feature. \n\n## Usage\n\u003e Requirements: Docker\n\nBuild and run the container:\n```\n$ make build\n$ make run\n```\nGo to -\u003e http://127.0.0.1:8000/docs (Interactive OpenAPI based docs).\n\n## Actions\n\nRight now you can List attacks, Delete attacks and Create new attacks. For a quick and interactive overview go to -\u003e [/docs](http://127.0.0.1:8000/docs)\n\nExample [API View](https://github.com/dgzlopes/powerfulseal-agent/blob/master/media/api-docs.png).\n\n## Attacks\n\nRight now three areas of attack are available in `powerfulseal-agent`. Each one with its own types of attacks.\n\n\u003e The API design and docs are inspired by [Gremlin](https://www.gremlin.com/docs/infrastructure-layer/attacks/).\n\n### Resource\n\u003e Types: CPU and memory\n\nThis type of attack makes use of `stress` to exhaust resources.\n\n#### Examples\n\n```json\n# Default memory attack\n{\n  \"command\": {\n    \"type\": \"memory\",\n    \"args\": []\n  }\n}\n```\n\n```json\n# CPU attack with custom args\n{\n  \"command\": {\n    \"type\": \"cpu\",\n    \"args\": [\n      \"--cores\",\"1\",\"--duration\",\"40\"\n    ]\n  }\n}\n```\n\n#### Todo/Ideas\n\n- Add IO and Disk types.\n- Add docs about each type and its args.\n\n### Network\n\nTBD (Latency [placeholder](https://github.com/dgzlopes/powerfulseal-agent/blob/master/powerfulseal_agent/network.py) in code)\n\n### State\n\n\u003e Types: Shutdown and restart\n\nPerform chaos actions on the host operating system.\n\n#### Examples\n\n```json\n{\n  \"command\": {\n    \"type\": \"shutdown\",\n    \"args\": []\n  }\n}\n```\n\n#### Todo/Ideas\n\n- Add Process killer type.\n- Add docs about each type and its args.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgzlopes%2Fpowerfulseal-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgzlopes%2Fpowerfulseal-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgzlopes%2Fpowerfulseal-agent/lists"}