ggriffiths / cf-chaos-loris-broker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cf-chaos-loris-broker

See this doc for details about schedule option.

Chaos Loris Repo.

Chaos Loris API Docs.

Algorithm

  • Create Service Instance: create a scheduler, save ServiceInstance to db with scheduler and probobility from a plan
  • Delete Service Instance: delete a scheduler and all chaoses, remove ServiceInstance from db
  • Create Service Bind: create an app, create a chaos with , scheduler url and probo, remove ServiceInstance from db

Note

To debug chaos-loris you can use following commands:

cf set-env chaos-loris JAVA_OPTS -Dlogging.level.org.springframework=TRACE
cf restart chaos-loris

ALTER TABLE application DROP UNIQUE application_id;

curl -k 'https://chaos-loris.appshaoses' -i -X POST -H 'Content-Type: application/json' -d '{
  "schedule" : "https://chaos-loris.apps.wdc1.itcna.vmware.com/schedules/23",
  "application" : "https://chaos-loris.apps.wdc1.itcna.vmware.com/applications/1",
  "probability" : 0.1
}'

About

License:Apache License 2.0


Languages

Language:Go 93.6%Language:Shell 6.4%