Gremlin Attacks

Introduction

Gremlin is a simple, safe and secure way to use Chaos Engineering to improve system resilience. The Gremlin Platform provides a range of attacks which you can run against your infrastructure. This includes Resource Gremlins, Network Gremlins and State Gremlins. It is also possible to schedule regular attacks, create attack templates and view attack reports.

How to run attacks with Gremlin

Gremlin provides a library of possible failure modes to test. You can impact system resources, delay or drop network traffic to your dependencies, shut down your hosts, and much more!

Visit the attack creation page to start testing your infrastructure today. Go to the active attacks page to monitor ongoing attacks.

Each attack, or “gremlin”, tests your resilience in a different way:

How to use Resource Gremlins

Resource gremlins are a great starting point – simple to run and understand. They reveal how your service degrades when starved of CPU, memory, IO, or disk.

Gremlin Impact
CPU Generates high load for one or more CPU cores.
Memory Allocates a specific amount of RAM.
IO Puts read/write pressure on I/O devices such as hard disks.
Disk Writes files to disk to fill it to a specific percentage.

How to use Network Gremlins

Network gremlins allow you to see the impact of lost or delayed traffic to your application. Test how your service behaves when you can’t reach one of your dependencies, internal or external. Limit the impact to only the traffic you want to test by specifying ports, hostnames, and IP addresses.

Gremlin Impact
Blackhole Drops all matching network traffic.
Latency Injects latency into all matching egress network traffic.
Packet loss Induces packet loss into all matching egress network traffic.
DNS Blocks access to DNS servers.

How to use State Gremlins

State gremlins are another category that introduce chaos into your infrastructure.

Gremlin Impact
Shutdown Reboots or halts the host operating system, allowing you to test, for example, how your system behaves when losing one or more cluster machines.
Time travel Changes the host’s system time, which can be used to simulate adjusting to daylight saving time and other time-related events.
Process killer An attack which kills the specified process, which can be used to simulate application or dependency crashes.

How to schedule attacks with Gremlin

Attacks can be run ad-hoc, programmatically or scheduled. You can schedule attacks to execute on certain days and within a specified time window. You can also set the maximum number of attacks a schedule can spawn.

How to create attack templates with Gremlin

When creating an attack, you can save often used bits of configuration using templates. Just give it a name, and anyone within your organization will be able to use it. We like having business hours defined for random attacks, and commonly used network targets stored for reuse.

Conclusion

You now possess tools that make it possible for you to create and schedule attacks with Gremlin. You can also explore the Gremlin Blog for more information on how to use Chaos Engineering with your application infrastructure.