{"id":18930426,"url":"https://github.com/techprimers/defensive-demo","last_synced_at":"2025-10-12T14:08:21.721Z","repository":{"id":85853578,"uuid":"264254945","full_name":"TechPrimers/defensive-demo","owner":"TechPrimers","description":"Defensive Demo to test Chaos Engineering using Chaos Toolkit and Chaos Monkey for Spring Boot","archived":false,"fork":false,"pushed_at":"2020-05-17T08:51:24.000Z","size":59,"stargazers_count":4,"open_issues_count":0,"forks_count":19,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-28T22:51:13.807Z","etag":null,"topics":["chaos-engineering","chaos-monkey","chaos-monkey-spring-boot","chaos-toolkit","defensive-demo","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","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/TechPrimers.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-05-15T17:19:59.000Z","updated_at":"2021-12-13T17:09:25.000Z","dependencies_parsed_at":"2023-03-13T07:00:08.821Z","dependency_job_id":null,"html_url":"https://github.com/TechPrimers/defensive-demo","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/TechPrimers%2Fdefensive-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechPrimers%2Fdefensive-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechPrimers%2Fdefensive-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechPrimers%2Fdefensive-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TechPrimers","download_url":"https://codeload.github.com/TechPrimers/defensive-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249097968,"owners_count":21212389,"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","chaos-monkey","chaos-monkey-spring-boot","chaos-toolkit","defensive-demo","spring-boot"],"created_at":"2024-11-08T11:37:38.168Z","updated_at":"2025-10-12T14:08:16.665Z","avatar_url":"https://github.com/TechPrimers.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Defensive Demo\nThis DEMO project is used for running Chaos Experiment\n\n## REST endpoints\n- `/actuator/chaosmonkey` - Chaos Monkey for Spring Boot\n- `/employee/all` - Return employees from DB (H2)\n\n## Chaos Experiments\nSet virtual environment in python and install `chaostoolkit-spring`\n```\npython3 -m venv ~/.venvs/chaostk\nsource  ~/.venvs/chaostk/bin/activate\npip install chaostoolkit-spring\n```\nRun the experiment:\n`chaos run experiments.json`\n\nOutput:\n```\n(chaostk)  chaostk \u003e chaos run experiments.json\n[2020-05-17 12:24:50 INFO] Validating the experiment's syntax\n[2020-05-17 12:24:50 INFO] Experiment looks valid\n[2020-05-17 12:24:50 INFO] Running experiment: Employee when database is down\n[2020-05-17 12:24:50 INFO] Steady state hypothesis: Employee data is available\n[2020-05-17 12:24:50 INFO] Probe: we-can-retrieve-employee-data\n[2020-05-17 12:24:50 INFO] Steady state hypothesis is met!\n[2020-05-17 12:24:50 INFO] Action: enable_chaosmonkey\n[2020-05-17 12:24:50 INFO] Action: configure_assaults\n[2020-05-17 12:24:50 INFO] Action: configure_repository_watcher\n[2020-05-17 12:24:50 INFO] Steady state hypothesis: Employee data is available\n[2020-05-17 12:24:50 INFO] Probe: we-can-retrieve-employee-data\n[2020-05-17 12:24:50 INFO] Steady state hypothesis is met!\n[2020-05-17 12:24:50 INFO] Let's rollback...\n[2020-05-17 12:24:50 INFO] Rollback: disable_chaosmonkey\n[2020-05-17 12:24:50 INFO] Action: disable_chaosmonkey\n[2020-05-17 12:24:50 INFO] Experiment ended with status: completed\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechprimers%2Fdefensive-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechprimers%2Fdefensive-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechprimers%2Fdefensive-demo/lists"}