Questions tagged [spring-boot-chaos-monkey]

Questions related to Chaos Monkey for Spring Boot. Chaos Monkey for Spring Boot will try to attack your Spring Boot App. You can use Chaos Monkey if you want to test the resulting applications for resilience.

Chaos Monkey for Spring boot supports following assaults:

  • Latency Assault
  • Exception Assault
  • AppKiller Assault
  • Memory Assault

You can learn more at https://codecentric.github.io/chaos-monkey-spring-boot/

25 questions
3
votes
1 answer

How to correctly simulate latency with Spring WebClient

I want to add code that would simulate latency in my WebClient calls so I could ensure my timeouts/retries/etc are working correctly. Since WebClient is reactive and uses a thread pool, it seems like Thread.sleep would block the thread in a way that…
checketts
  • 14,167
  • 10
  • 53
  • 82
2
votes
1 answer

Chaos Monkey delay test causes tomcat-jdbc connection pool to have huge delay in getting connection

We are running delay test using Chaos Monkey on our service. We introduce 2 second delay using it. During this time the response time of our service goes down to 35-40 seconds also. When we profiled our application, we found that the maximum amount…
Kumar
  • 1,536
  • 2
  • 23
  • 33
2
votes
0 answers

Configuring Chaos Monkey for Spring Boot in J Unit Test

I'm trying to run Chaos Engineering for Spring Boot with JUnit Tests in deterministic mode so that the WebClient and @Service would be assaulted in JUnit…
2
votes
0 answers

chaos-monkey and spring hystrix incompatible?

I want to use chaos monkey to assault my microservice and I want to use hystrix to hanlde failure. When I use chaos monkey alone, my app receive assaults but when I use hystrix with it, then chaos monkey is not doing any assault. Why can't I use…
2
votes
2 answers

Chaos monkey scenarios that can be tested for Spring Boot application

I am using chaos monkey implementation of code centric to test a spring boot application which is hosted in a non scaled environment (i.e It is not hosted on cloud). Below are the scenarios that I am testing. Kindly advice if I can test any more…
1
vote
0 answers

Tomcat Jdbc v 8.5 failing with InterruptedException when testOnBorrow is true during Chaos Testing

I am creating a lag of 1.5 sec with chaos monkey to simulate a network delay. The test has 100 parallel users continuously calling an end-point which requires Database access. During the testing I see a lot of InterruptedException from Tomcat Jdbc…
1
vote
0 answers

Using Spring Chaos Monkey gives java.lang.ClassCastException: class java.lang.Class cannot be cast to class java.lang.reflect.ParameterizedType

I am have been trying to attach spring chaos monkey to my application to run some tests. When I start my application in chaos-monkey profile I get the following error during startup "java.lang.ClassCastException: class java.lang.Class cannot be cast…
sam
  • 568
  • 1
  • 8
  • 16
1
vote
1 answer

Chaos Monkey Spring Boot works in dev environment but doesn't work for functional test in test environment

I am trying to run ChaosMonkey for my resilience tests. I'm using Spring Boot and the WebTestClient Class to make api requests in cucumber functional resilience tests. The responses show that Chaos Monkey latency is configured correctly, but I don't…
1
vote
1 answer

Using chaos-monkey-spring-boot together with db-scheduler: getting BeanDefinitionOverrideException

Using the latest version of chaos-monkey-spring-boot (v2.5.4) together with db-scheduler-spring-boot-starter (v10.3, see https://github.com/kagkarlsson/db-scheduler), I get an exception when starting the application: The bean 'scheduler', defined in…
bbmokus
  • 11
  • 1
1
vote
1 answer

Experiment to create node in kubernetes cluster(AKS) using chaos toolkit

I am trying to create an experiment for creating a node using chaostoolkit yaml for experiment version: 1.0.0 title: What happens if we create a node description: All the instances are distributed among healthy nodes and the applications are…
Ginni
  • 11
  • 3
1
vote
0 answers

How to create an Exception Assault for a specific Spring Service with Chaos Monkey?

I am using chaos monkey implementation of codeCentric to test a spring boot application. I want to simulate several behaviors. One of them is a read timeout from an external system. I thought, according to the behavior of my application, to have an…
1
vote
0 answers

Chaosmonkey Go Package Install

I have been trying to install chaosmonkey following the instruction from here using go However, I have not been able to successfully resolve the issue for the past day. I keep getting the below error and if I try installing other packages using go…
Young
  • 419
  • 3
  • 19
1
vote
1 answer

Different actuator (management server) port changes HTTP response

I am having a hard time in Chaos Monkey For Spring Boot regarding error responses when a user POSTs an invalid (like {"level": -2}update via REST to our actuator endpoint where one can update options of the behavior of CMSB (only positive levels are…
maiksensi
  • 833
  • 1
  • 12
  • 23
0
votes
0 answers

Springboot chaos-monkey assaults [memoryActive] not working

I am using Springboot 2.3.1.RELEASE and chaos monkey its working fine for latencyActive ,exceptionsActive and CPU assault. However, for memory assault, it's not working or I am not able to see memory usage reaches to my targetFraction. ** assault** …
jane
  • 1
0
votes
0 answers

Resilience4j circuit breaker using Chaos Monkey in Spring Boot

I'm working on a Spring Boot application where I'm utilizing the Resilience4j library for implementing circuit breaker. Now I introduce Chaos Monkey to simulate a fault in service and open the circuit. The exception is throwing, but circuit doesn't…
renanvm
  • 208
  • 3
  • 16
1
2