Skip to content

Instantly share code, notes, and snippets.

@MrBW
Created August 2, 2018 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save MrBW/20b3b8ad88823a4dd3716de947942527 to your computer and use it in GitHub Desktop.
Save MrBW/20b3b8ad88823a4dd3716de947942527 to your computer and use it in GitHub Desktop.
chaos-monkey-pivotal-test
spring.profiles.active=chaos-monkey
chaos.monkey.enabled=true
chaos.monkey.assaults.level=1
chaos.monkey.watcher.controller=true
package com.issue.chaos.monkey.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
}
package com.issue.chaos.monkey.demo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
/**
* @author Benjamin Wilms
*/
@Controller
public class HelloController {
@GetMapping("/hello")
@ResponseBody
public String hello() {
return "Hello from Pivotal Cloud Foundry!";
}
}
2018-08-02T21:48:22.864+02:00 [APP/PROC/WEB/0] [OUT] . ____ _ __ _ _
2018-08-02T21:48:22.865+02:00 [APP/PROC/WEB/0] [OUT] /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
2018-08-02T21:48:22.865+02:00 [APP/PROC/WEB/0] [OUT] ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
2018-08-02T21:48:22.865+02:00 [APP/PROC/WEB/0] [OUT] \\/ ___)| |_)| | | | | || (_| | ) ) ) )
2018-08-02T21:48:22.865+02:00 [APP/PROC/WEB/0] [OUT] ' |____| .__|_| |_|_| |_\__, | / / / /
2018-08-02T21:48:22.865+02:00 [APP/PROC/WEB/0] [OUT] =========|_|==============|___/=/_/_/_/
2018-08-02T21:48:22.866+02:00 [APP/PROC/WEB/0] [OUT] :: Spring Boot :: (v2.0.0.RELEASE)
2018-08-02T21:48:22.898+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:22.898 INFO 23 --- [ main] nfigurationApplicationContextInitializer : Reconfiguration enabled
2018-08-02T21:48:22.898+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:22.897 INFO 23 --- [ main] pertySourceApplicationContextInitializer : 'cloud' property source added
2018-08-02T21:48:22.900+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:22.899 INFO 23 --- [ main] c.i.chaos.monkey.demo.DemoApplication : The following profiles are active: chaos-monkey,cloud
2018-08-02T21:48:22.919+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:22.919 INFO 23 --- [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@2a5ca609: startup date [Thu Aug 02 19:48:22 UTC 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@63e31ee
2018-08-02T21:48:23.632+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:23.632 INFO 23 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=5fddc6fb-2c57-3cb8-afff-65d7beb4636c
2018-08-02T21:48:23.876+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:23.876 INFO 23 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$2709355c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-08-02T21:48:24.430+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:24.430 INFO 23 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2018-08-02T21:48:24.462+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:24.461 INFO 23 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2018-08-02T21:48:24.462+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:24.462 INFO 23 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.28
2018-08-02T21:48:24.481+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:24.481 INFO 23 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]
2018-08-02T21:48:24.581+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:24.581 INFO 23 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 1662 ms
2018-08-02T21:48:24.581+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:24.580 INFO 23 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2018-08-02T21:48:24.767+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:24.767 INFO 23 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'clientCertificateMapper' to: [/*]
2018-08-02T21:48:24.768+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:24.768 INFO 23 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2018-08-02T21:48:24.768+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:24.768 INFO 23 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2018-08-02T21:48:24.768+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:24.768 INFO 23 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2018-08-02T21:48:24.768+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:24.768 INFO 23 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
2018-08-02T21:48:24.768+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:24.768 INFO 23 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/]
2018-08-02T21:48:25.206+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:25.205 INFO 23 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@2a5ca609: startup date [Thu Aug 02 19:48:22 UTC 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@63e31ee
2018-08-02T21:48:25.329+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:25.328 INFO 23 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/hello],methods=[GET]}" onto public java.lang.String com.issue.chaos.monkey.demo.HelloController.hello()
2018-08-02T21:48:25.334+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:25.333 INFO 23 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2018-08-02T21:48:25.334+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:25.334 INFO 23 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2018-08-02T21:48:25.398+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:25.398 INFO 23 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-08-02T21:48:25.398+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:25.398 INFO 23 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-08-02T21:48:25.459+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:25.459 INFO 23 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-08-02T21:48:25.546+02:00 [APP/PROC/WEB/0] [OUT] _____ _ __ __ _
2018-08-02T21:48:25.546+02:00 [APP/PROC/WEB/0] [OUT] / ____| | | \/ | | |
2018-08-02T21:48:25.546+02:00 [APP/PROC/WEB/0] [OUT] | | | |__ __ _ ___ ___ | \ / | ___ _ __ | | _____ _ _
2018-08-02T21:48:25.546+02:00 [APP/PROC/WEB/0] [OUT] | | | '_ \ / _` |/ _ \/ __| | |\/| |/ _ \| '_ \| |/ / _ | | | |
2018-08-02T21:48:25.546+02:00 [APP/PROC/WEB/0] [OUT] | |____| | | | (_| | (_) \__ \ | | | | (_) | | | | | __| |_| |
2018-08-02T21:48:25.546+02:00 [APP/PROC/WEB/0] [OUT] \_____|_| |_|\__,_|\___/|___/ |_| |_|\___/|_| |_|_|\_\___|\__, |
2018-08-02T21:48:25.546+02:00 [APP/PROC/WEB/0] [OUT] __/ |
2018-08-02T21:48:25.546+02:00 [APP/PROC/WEB/0] [OUT] _ready to do evil! |___/
2018-08-02T21:48:25.546+02:00 [APP/PROC/WEB/0] [OUT] :: Chaos Monkey for Spring Boot ::
2018-08-02T21:48:25.546+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:25.545 INFO 23 --- [ main] d.c.s.b.c.monkey.component.ChaosMonkey :
2018-08-02T21:48:25.882+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:25.882 INFO 23 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2018-08-02T21:48:25.895+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:25.894 INFO 23 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'refreshScope' has been autodetected for JMX exposure
2018-08-02T21:48:25.896+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:25.896 INFO 23 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'configurationPropertiesRebinder' has been autodetected for JMX exposure
2018-08-02T21:48:25.897+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:25.897 INFO 23 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'environmentManager' has been autodetected for JMX exposure
2018-08-02T21:48:25.900+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:25.900 INFO 23 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'environmentManager': registering with JMX server as MBean [org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager]
2018-08-02T21:48:25.919+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:25.919 INFO 23 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'refreshScope': registering with JMX server as MBean [org.springframework.cloud.context.scope.refresh:name=refreshScope,type=RefreshScope]
2018-08-02T21:48:25.935+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:25.934 INFO 23 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'configurationPropertiesRebinder': registering with JMX server as MBean [org.springframework.cloud.context.properties:name=configurationPropertiesRebinder,context=2a5ca609,type=ConfigurationPropertiesRebinder]
2018-08-02T21:48:26.002+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:26.002 INFO 23 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2018-08-02T21:48:26.008+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:48:26.006 INFO 23 --- [ main] c.i.chaos.monkey.demo.DemoApplication : Started DemoApplication in 5.168 seconds (JVM running for 6.129)
2018-08-02T21:48:26.138+02:00 [CELL/0] [OUT] Container became healthy
2018-08-02T21:49:09.178+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:49:09.178 INFO 23 --- [nio-8080-exec-4] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring FrameworkServlet 'dispatcherServlet'
2018-08-02T21:49:09.179+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:49:09.179 INFO 23 --- [nio-8080-exec-4] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization started
2018-08-02T21:49:09.205+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:49:09.205 INFO 23 --- [nio-8080-exec-4] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization completed in 26 ms
2018-08-02T21:49:09.283+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:49:09.283 INFO 23 --- [nio-8080-exec-4] d.c.s.b.c.monkey.component.ChaosMonkey : Chaos Monkey - timeout
2018-08-02T21:49:12.240+02:00 [RTR/3] [OUT] demobenapp.cfapps.io - [2018-08-02T19:49:09.090+0000] "GET /hello HTTP/1.1" 200 0 33 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36" "10.10.2.192:21554" "10.10.149.110:61002" x_forwarded_for:"217.230.55.155, 10.10.2.192" x_forwarded_proto:"https" vcap_request_id:"855a16c8-ae4b-4cf8-7c40-0715cea3370c" response_time:3.150478708 app_id:"c67ccf67-707e-4921-9006-271dc624d354" app_index:"0" x_b3_traceid:"02157916fe8aa9b5" x_b3_spanid:"02157916fe8aa9b5" x_b3_parentspanid:"-"
2018-08-02T21:49:12.521+02:00 [RTR/7] [OUT] demobenapp.cfapps.io - [2018-08-02T19:49:12.485+0000] "GET /favicon.ico HTTP/1.1" 200 0 946 "https://demobenapp.cfapps.io/hello" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36" "10.10.2.192:34744" "10.10.149.110:61002" x_forwarded_for:"217.230.55.155, 10.10.2.192" x_forwarded_proto:"https" vcap_request_id:"f0f4c993-6128-41d2-57cd-b08b81d108c9" response_time:0.035434591 app_id:"c67ccf67-707e-4921-9006-271dc624d354" app_index:"0" x_b3_traceid:"7cf4e86fe6cf8242" x_b3_spanid:"7cf4e86fe6cf8242" x_b3_parentspanid:"-"
2018-08-02T21:49:13.467+02:00 [APP/PROC/WEB/0] [OUT] 2018-08-02 19:49:13.466 INFO 23 --- [nio-8080-exec-6] d.c.s.b.c.monkey.component.ChaosMonkey : Chaos Monkey - timeout
2018-08-02T21:49:14.635+02:00 [RTR/2] [OUT] demobenapp.cfapps.io - [2018-08-02T19:49:13.456+0000] "GET /hello HTTP/1.1" 200 0 33 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36" "10.10.2.192:50496" "10.10.149.110:61002" x_forwarded_for:"217.230.55.155, 10.10.2.192" x_forwarded_proto:"https" vcap_request_id:"9b8fe1d8-3b48-4e7e-4a9f-140c1312e11f" response_time:1.17879977 app_id:"c67ccf67-707e-4921-9006-271dc624d354" app_index:"0" x_b3_traceid:"3b6743e52620e7e1" x_b3_spanid:"3b6743e52620e7e1" x_b3_parentspanid:"-"
2018-08-02T21:49:14.798+02:00 [RTR/1] [OUT] demobenapp.cfapps.io - [2018-08-02T19:49:14.787+0000] "GET /favicon.ico HTTP/1.1" 200 0 946 "https://demobenapp.cfapps.io/hello" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36" "10.10.2.192:30596" "10.10.149.110:61002" x_forwarded_for:"217.230.55.155, 10.10.2.192" x_forwarded_proto:"https" vcap_request_id:"b2694a67-9315-48f3-4055-73c95a146669" response_time:0.01031697 app_id:"c67ccf67-707e-4921-9006-271dc624d354" app_index:"0" x_b3_traceid:"1eedba6e271c5497" x_b3_spanid:"1eedba6e271c5497" x_b3_parentspanid:"-"
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.issue.chaos.monkey</groupId>
<artifactId>demo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>demo</name>
<description>Demo project for Spring Boot</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.0.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<spring-cloud.version>Finchley.SR1</spring-cloud.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>chaos-monkey-spring-boot</artifactId>
<version>2.0.0</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment