My road to Gremlin Chaos Engineering Practitioner Certificate
Prashant Lakhera
Lead System Engineer @ Salesforce | Ex-Redhat, GenAI, Author of 3 books, Blogger, YouTuber,kubestronaut, MLOps, AWS Bedrock, Hugging Face
Chaos Engineering is one field that always draws my attention. I came to know about it after I heard about the Netflix Simian Army toolkit?https://github.com/Netflix/SimianArmy?. At an initial glance, it’s hard to believe that someone using the Chaos tools in production randomly shut down any production server(chaos monkey). Later on, I watched Tammy Bryant Butow video on youtube and came to know about Gremlin. What Gremlin does is provides a hosted service that lets you run the Chaos experiment. Finally, after one week of study, I am now Gremlin Chaos Engineering Practitioner Certified.
Exam Resources
I only followed below two resources below to prepare for the exam.
Exam Format
NOTE:?Exam is free of cost; you can register via below link?https://gremlin.coassemble.com/unlock/7Jan8Su
Exam Preparation
helm repo add gremlin https://helm.gremlin.com
* echo "deb https://deb.gremlin.com/ release non-free" | sudo tee /etc/apt/sources.list.d/gremlin.list
* sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys XXXX
* sudo apt-get update && sudo apt-get install -y gremlin gremlind
$ gremlin init
Metadata set for [ gremlin-client-version: 2.20.0 ]
Metadata set for [ os-type: Linux ]
Metadata set for [ os-name: Ubuntu ]
AWS metadata may be present
Metadata set for [ instance-id: i-0550fdb260931639b ]
Metadata set for [ local-hostname: ip-172-31-28-103.ec2.internal ]
Metadata set for [ local-ip: 172.31.28.103 ]
Metadata set for [ public-hostname: ec2-184-73-139-79.compute-1.amazonaws.com ]
Metadata set for [ public-ip: 184.73.139.79 ]
Metadata set for [ azid: use1-az4 ]
Metadata set for [ cloud: AWS ]
Metadata set for [ image-id: ami-09e67e426f25ce0d7 ]
Metadata set for [ instance-type: t2.micro ]
Metadata set for [ region: us-east-1 ]
Metadata set for [ zone: us-east-1c ]
Unable to describe AWS tags. The error message is: No such file or directory (os error 2)
Azure metadata may be present
Please input your Team ID: <--------
XXXXXXXX
Please input your Team Secret: <--------
Using XXXXXX for Team Id
Using 172.31.28.103 for Gremlin identifier
Get familiar with various types of attacks you can perform via Gremlin
Using Gremlin, you can trigger various attacks depend upon the Infrastructure to target(Hosts, Containers, or Kubernetes)
For Hosts
Resource:?Test against sudden changes in consumption of computing resources.
State:?Test against unexpected changes in your environment, such as power outages, node failures, clock drift, or application crashes.
领英推荐
Network: Test against unreliable network conditions.
Try to test and perform some of these attacks before the exam. E.g., to test shut down, go to State and click on shutdown; you have an option to introduce delay and reboot the host after shutdown.
$ ps aux|grep -i gremlin
gremlin 2142 0.0 0.9 23420 9328 ? Ssl 04:42 0:00 /usr/sbin/gremlind
gremlin 2362 0.0 0.8 23612 8516 ? Sl 05:07 0:00 gremlin attack shutdown -d 1 -r
3. Get familiar with the gremlin command line.
$ gremlin -h
gremlin
USAGE:
gremlin <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
SUBCOMMANDS:
attack Run a new gremlin attack against this host
attack-container Run a new gremlin attack against the specified container
check Show runtime troubleshooting data
help Prints this message or the help of the given subcommand(s)
init Initialize a new client session with the Gremlin service
logout Remove this client from the Gremlin service
measure Measure then report dynamic system data
rollback Interrupt an active attack, or revert the last impact
rollback-container Interrupt an active attack against a Docker container
status Show the status of all gremlins or a specific attack
syscheck System check was a feature in Gremlin 2.8.x and is no longer supported
validate Validate a gremlin
version Show version information for the gremlin binary
In the end, I will say this exam is straightforward, go through Gremlin doc and youtube(Bonus: If you can attend their Bootcamp), and you should be good to go.
The best way to connect with me is via any of the below mediums