Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mmzeeman/zotonic_mod_disrupt

Disrupt processes, crash and add latency to dispatches in order to create a more robust system.
https://github.com/mmzeeman/zotonic_mod_disrupt

Last synced: about 17 hours ago
JSON representation

Disrupt processes, crash and add latency to dispatches in order to create a more robust system.

Awesome Lists containing this project

README

        

# zotonic_mod_disrupt

This module can be used to test the resilince of your Zotonic system. It has a controller
which can be used to crash or add artificial latency to requests. It uses the
Erlang havoc module, which is a Chaos Monkey style system.

Screen Shot 2023-01-05 at 20 32 09

# Controllers

## `controller_disrupt`

The disrupt controller allows you to disrupt the working of another controller.
It can add latency, or let it error. This makes it possible to allow one to
find out what happens on the client side when a certaint dispatch errors, or
suddenly has a high latency.

Config options:

- `delegate`: The name of the controller which should handle the real request.
- `distupt_type`: The type of disruption to apply. Either `throw` or `latency`.
- `disrupt_probability`: Then probability wether or not to apply the distruption.

...

# Settings

- `latency_mean`: The latency mean to add to dispatches. Default: **300**
- `latency_variance`: The latency variance to add to dispatches. Default: **400**