Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added chaos monkey setup #177

Merged
merged 3 commits into from
Apr 20, 2021

Conversation

marcingrzejszczak
Copy link
Contributor

fixes #174

@@ -0,0 +1,3 @@
# Spring Boot Chaos Monkey Scripts
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I propose to mention this readme and this feature in the root readme file.
Could you also explain how use both shell scripts call_chaos.sh and run_all.sh shell scripts, what they do and how to exploit their results (maybe in grafana ?).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also explain how use both shell scripts call_chaos.sh and run_all.sh shell scripts, what they do and how to exploit their results (maybe in grafana ?).

Sure! Just FYI I had to create run_all.sh which essentially just doesn't use docker to run everything. That's because I wasn't able to run this in docker :) I will update the readme though

@@ -31,6 +31,7 @@

<spring-boot.version>2.4.2</spring-boot.version>
<spring-cloud.version>2020.0.1</spring-cloud.version>
<chaos-monkey-spring-boot.version>2.3.2</chaos-monkey-spring-boot.version>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In prevision of next Spring Boot version upgrade, do you know how to handle them the spring boot chaos monkey library?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's what they write on their website (https://codecentric.github.io/chaos-monkey-spring-boot/#docs)

  | Chaos Monkey 1.0.1 | Chaos Monkey 1.5.0 | Chaos Monkey 2.0.0 | Chaos Monkey 2.0.1 | Chaos Monkey 2.0.2 | Chaos Monkey 2.1.1 | Chaos Monkey 2.2+
-- | -- | -- | -- | -- | -- | -- | --
Spring Boot 1.5.0 - 1.5.19 | no | yes | no | no | no | no | no
Spring Boot 2.0.0 - 2.0.8 | yes | no | yes | yes | yes | yes | yes
Spring Boot 2.1.0+ | no | no | no | no | yes | yes | yes

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok thank you. So there is not one version of Chaos Monkey per version of Spring Boot. It will be easier for upgrades.

@marcingrzejszczak
Copy link
Contributor Author

I've added some additional docs. WDYT?

@arey arey merged commit 1f8191d into spring-petclinic:master Apr 20, 2021
@arey
Copy link
Member

arey commented Apr 20, 2021

Thank you guys for your work.
I hope we will see you soon for future improvements :)

@arey
Copy link
Member

arey commented Apr 21, 2021

After having started the app with the run_all.sh script, I've got the following error when I'm testing the call_chaos.sh script:

arey@MacBook spring-petclinic-microservices % ./scripts/chaos/call_chaos.sh visits attacks_enable_exception watcher_enable_restcontroller
curl: (22) The requested URL returned error: 404

I'm seeing the Chaos Monkey banner into the starter logs:

2021-04-21 18:53:39.537  INFO [visits-service,,] 53118 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
2021-04-21 18:53:42.517  INFO [visits-service,,] 53118 --- [           main] d.c.s.b.c.m.c.ChaosMonkeyConfiguration   : 
     _____ _                       __  __             _
    / ____| |                     |  \/  |           | |
   | |    | |__   __ _  ___  ___  | \  / | ___  _ __ | | _____ _   _
   | |    | '_ \ / _` |/ _ \/ __| | |\/| |/ _ \| '_ \| |/ / _ | | | |
   | |____| | | | (_| | (_) \__ \ | |  | | (_) | | | |   |  __| |_| |
    \_____|_| |_|\__,_|\___/|___/ |_|  |_|\___/|_| |_|_|\_\___|\__, |
                                                                __/ |
    _ready to do evil!                                         |___/

:: Chaos Monkey for Spring Boot                                    ::

2021-04-21 18:53:42.799  INFO [visits-service,,] 53118 --- [           main] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService 'chaosMonkeyTaskScheduler'

The chaosmonkey actuator is not visible. Maybe a lead?
Do you have add some configuration in the spring-petclinic-microservices-config project?

@marcingrzejszczak
Copy link
Contributor Author

selvasingh added a commit to Azure-Samples/spring-petclinic-microservices that referenced this pull request Nov 14, 2021
* Complete Apache 2.0 license

* Upgrade to Spring Cloud 2020.0.1 (aka Ilford) and Spring Boot 2.4.2 (spring-petclinic#173)

* Added chaos monkey setup (spring-petclinic#177)

* Added chaos monkey setup

* Update scripts/chaos/call_chaos.sh

Co-authored-by: Jonatan Ivanov <[email protected]>

* Added docs

Co-authored-by: Jonatan Ivanov <[email protected]>

* Do not fail packaging if repo info is absent spring-petclinic#91

Try to fix the Maven issue references in spring-petclinic#91

* Bump Spring Cloud version to 2020.0.2 and Spring Boot version to 2.4.5 spring-petclinic#178

* Bump up version to 2.4.5 (spring-petclinic#179)

also fixing spring-boot-starter-parent version

* Upgrade to Spring Cloud 2020.0.2 and Spring Boot 2.5.1 (spring-petclinic#181)

* Migrate from Travis CI to GitHub actions (spring-petclinic#187)

* Use Github Actions for CI

* Change Travis Badge to Github Actions one

* Delete .travis.yml

* Added Log Analytics

* Added Log Analytics

* Added Log Analytics

* Added Log Analytics

Co-authored-by: Antoine Rey <[email protected]>
Co-authored-by: Marcin Grzejszczak <[email protected]>
Co-authored-by: Jonatan Ivanov <[email protected]>
selvasingh added a commit to Azure-Samples/spring-petclinic-microservices that referenced this pull request Nov 15, 2021
* Complete Apache 2.0 license

* Upgrade to Spring Cloud 2020.0.1 (aka Ilford) and Spring Boot 2.4.2 (spring-petclinic#173)

* Added chaos monkey setup (spring-petclinic#177)

* Added chaos monkey setup

* Update scripts/chaos/call_chaos.sh

Co-authored-by: Jonatan Ivanov <[email protected]>

* Added docs

Co-authored-by: Jonatan Ivanov <[email protected]>

* Do not fail packaging if repo info is absent spring-petclinic#91

Try to fix the Maven issue references in spring-petclinic#91

* Bump Spring Cloud version to 2020.0.2 and Spring Boot version to 2.4.5 spring-petclinic#178

* Bump up version to 2.4.5 (spring-petclinic#179)

also fixing spring-boot-starter-parent version

* Upgrade to Spring Cloud 2020.0.2 and Spring Boot 2.5.1 (spring-petclinic#181)

* Migrate from Travis CI to GitHub actions (spring-petclinic#187)

* Use Github Actions for CI

* Change Travis Badge to Github Actions one

* Delete .travis.yml

* Added Log Analytics

* Added Log Analytics

* Added Log Analytics

* Added Log Analytics

* updated cli step to create Azure Spring Cloud

Co-authored-by: Antoine Rey <[email protected]>
Co-authored-by: Marcin Grzejszczak <[email protected]>
Co-authored-by: Jonatan Ivanov <[email protected]>
selvasingh added a commit to Azure-Samples/spring-petclinic-microservices that referenced this pull request Nov 15, 2021
* Complete Apache 2.0 license

* Upgrade to Spring Cloud 2020.0.1 (aka Ilford) and Spring Boot 2.4.2 (spring-petclinic#173)

* Added chaos monkey setup (spring-petclinic#177)

* Added chaos monkey setup

* Update scripts/chaos/call_chaos.sh

Co-authored-by: Jonatan Ivanov <[email protected]>

* Added docs

Co-authored-by: Jonatan Ivanov <[email protected]>

* Do not fail packaging if repo info is absent spring-petclinic#91

Try to fix the Maven issue references in spring-petclinic#91

* Bump Spring Cloud version to 2020.0.2 and Spring Boot version to 2.4.5 spring-petclinic#178

* Bump up version to 2.4.5 (spring-petclinic#179)

also fixing spring-boot-starter-parent version

* Upgrade to Spring Cloud 2020.0.2 and Spring Boot 2.5.1 (spring-petclinic#181)

* Migrate from Travis CI to GitHub actions (spring-petclinic#187)

* Use Github Actions for CI

* Change Travis Badge to Github Actions one

* Delete .travis.yml

* Added Log Analytics

* Added Log Analytics

* Added Log Analytics

* Added Log Analytics

* updated cli step to create Azure Spring Cloud

* added jq as pre-requisite

* updated pre-requisites

Co-authored-by: Antoine Rey <[email protected]>
Co-authored-by: Marcin Grzejszczak <[email protected]>
Co-authored-by: Jonatan Ivanov <[email protected]>
DavidMolta18 pushed a commit to Distribuidos2024/spring-petclinic-microservices that referenced this pull request Nov 14, 2024
* Added chaos monkey setup

* Update scripts/chaos/call_chaos.sh

Co-authored-by: Jonatan Ivanov <[email protected]>

* Added docs

Co-authored-by: Jonatan Ivanov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Spring Boot Chaos Monkey
3 participants