-
Notifications
You must be signed in to change notification settings - Fork 29
Blog: add post about chaos testing and Yash Agarwal #398
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
Open
FloorD
wants to merge
5
commits into
main
Choose a base branch
from
lfx-chaos
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+80
−0
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b652e98
Blog: add post about chaos testing and Yash Agarwal
FloorD 08504b5
Update content/blog/lfx-chaos-testing-yash-agarwal/index.md
FloorD 7682449
Update content/blog/lfx-chaos-testing-yash-agarwal/index.md
FloorD a4df875
Update content/blog/lfx-chaos-testing-yash-agarwal/index.md
FloorD 405e1ad
Update index.md
FloorD File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,80 @@ | ||||||
| --- | ||||||
| title: "Chaos testing the CloudNativePG project" | ||||||
| date: 2026-01-05 | ||||||
| draft: false | ||||||
| image: | ||||||
| url: yash.jpeg | ||||||
| attribution: | ||||||
| authors: | ||||||
| - fdrees | ||||||
| tags: | ||||||
| - lfx | ||||||
| - mentorship | ||||||
| - kubernetes | ||||||
| - postgresql | ||||||
| - litmus | ||||||
| - devops | ||||||
| summary: "Meet the mentee: Yash Agarwal worked with the project maintainers on adding | ||||||
| chaos testing to CloudNativePG, as part of the LFX mentorship program." | ||||||
| --- | ||||||
|
|
||||||
| In the summer we wrote about how CloudNativePG was back for the September- | ||||||
| October-November LFX term with [several projects for mentoring](https://cloudnative-pg.io/blog/2025-term3-lfx-cncf-mentorship/). One of them was | ||||||
| around Chaos Testing. | ||||||
|
|
||||||
| Yash Agarwal worked with mentors and CloudNativePG maintainers Gabriele Bartolini, | ||||||
| Marco Nenciarini, Francesco Canovai, and Jonathan Gonzalez, to enhance the | ||||||
| project's test coverage. Introducing LitmusChaos, a comprehensive chaos testing | ||||||
| framework, the team designed automated chaos experiments for common failure | ||||||
| scenarios, integrated them into CI/CD workflows, and collected observability | ||||||
| metrics like failover time and data consistency. I had a chat with Yash about | ||||||
| his work, and about how he got into Tech in the first place. | ||||||
|
|
||||||
| ## Start at the beginning | ||||||
|
|
||||||
| Yash's venture into programming started when he got introduced to Python in 11th | ||||||
| grade. He was always fascinated by technology, and got further inspired to pursue | ||||||
| a career as a programmer by his cousin Amit, a software developer. | ||||||
|
|
||||||
| Today Yash is a full stack developer intern at Seeqlo, where he, among other | ||||||
| things, focuses on streamlining cloud operations and optimizing performance. | ||||||
| Based in Bengaluru, India, Yash is a member of Point Blank, a student-run tech | ||||||
| community dedicated to learning together. | ||||||
|
|
||||||
| He looks back at working with the CloudNativePG team as a "great learning experience". | ||||||
| They met twice a week for 30 minutes to discuss the progress of the project. | ||||||
| One thing that Yash says he learned is to have more patience. | ||||||
|
|
||||||
| ## Chaos testing | ||||||
|
|
||||||
| The new [chaos-testing repository](https://github.com/cloudnative-pg/chaos-testing) Yash worked on provides automated tools to validate | ||||||
| PostgreSQL cluster resilience under failure conditions. It combines two testing | ||||||
| approaches: | ||||||
|
|
||||||
| * Jepsen Consistency Testing - Uses the famous Jepsen framework to perform | ||||||
| mathematical proofs of database consistency. It continuously runs database | ||||||
| operations (50 ops/sec) and validates that no data is lost or corrupted during | ||||||
| failures. | ||||||
| * LitmusChaos Fault Injection - Uses LitmusChaos to simulate real-world failures | ||||||
| by repeatedly deleting the PostgreSQL primary pod (every 60-180 seconds), | ||||||
| forcing CloudNativePG to perform automatic failover. | ||||||
|
|
||||||
| You can read more about the project in the repository's [README](https://github.com/cloudnative-pg/chaos-testing/blob/main/README.md). And, in case | ||||||
| you're curious, here's Yash's PR: https://github.com/cloudnative-pg/chaos-testing/pull/3 | ||||||
|
|
||||||
|
|
||||||
| ## Contributing to Litmus itself | ||||||
|
|
||||||
| Yash wasn't able to find how to get the chaos engine to target the primary pods | ||||||
| since the appKind CloudNativePG uses isn't natively supported by Litmus. "I tried | ||||||
| many things, but when I tried AppKind as "cluster" it worked! I read the Litmus | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| code and found that there were some validations which prevented "Cluster" (capital | ||||||
| "C") from working. This behavior was not described in Litmus' documentation, | ||||||
| which meant I could submit a PR and prevent the next person from running into | ||||||
| the same issue!" | ||||||
|
|
||||||
| ## What's next? | ||||||
|
|
||||||
| In the second half of his 3rd year, Yash is exploring opportunities in the field | ||||||
| of backend and DevOps. "I will surely try to contribute more towards CloudNativePG | ||||||
| when time permits!" You can follow Yash's work on [GitHub](https://github.com/XploY04). | ||||||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.