You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to add point cut on a method of service class and want the app to get killed when the method gets executed. Looked at the code of the interceptor and it seems it only works for RequestAssault and not on runtime assault.
The KillAppAssault is a RuntimeAssault. They need to be executed on your own or on a specific timeframe by specifing a cron expression like described in the docs to RuntimeAssaults. Currently its not possible to execute RuntimeAssaults when doing requests.
So by either make a POST request to http://localhost:8080/actuator/chaosmonkey/assaults/runtime/attack (when enabled actuator) or specifing a cron expression in your application.properties works: chaos.monkey.assaults.kill-application-cron-expression=0 1/1 * * * * (this expression kills the app each minute).
Can you please verify it if it works in your case?
Where it says When the configured methods are called in the application, the Chaos Monkey will shut down the application.
To give you some background on what I was trying, I have some apache camel based demon processes and I wanted to test the app if the backend job fails at a particular method.
I am trying to add point cut on a method of service class and want the app to get killed when the method gets executed. Looked at the code of the interceptor and it seems it only works for RequestAssault and not on runtime assault.
I have provided detail on SO here
https://stackoverflow.com/questions/72824307/spring-boot-chaos-monkey-kill-assault
Expected Behavior
I was expecting to set the kill Assault point cut and when the code execution happen , the app should get killed.
Possible Solution
One possible way is to include Runtime Assault in interceptor.
The text was updated successfully, but these errors were encountered: