-
Notifications
You must be signed in to change notification settings - Fork 36
Improve README clarity and add workflow explanation #155
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
bhavyamittal06
wants to merge
2
commits into
krkn-chaos:main
Choose a base branch
from
bhavyamittal06:main
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.
+18
−5
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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 |
|---|---|---|
|
|
@@ -4,17 +4,17 @@ | |
|
|
||
|
|
||
| > [!CAUTION] | ||
| > __The tool is currently in under active development, use it at your own risk.__ | ||
| > The tool is currently in under active development, use it at your own risk. | ||
|
|
||
| An intelligent chaos engineering framework that uses genetic algorithms to optimize chaos scenarios for Kubernetes/OpenShift applications. Krkn-AI automatically evolves and discovers the most effective chaos experiments to test your system's resilience. | ||
| An intelligent chaos engineering framework that uses genetic algorithms to optimize chaos scenarios for Kubernetes/OpenShift applications. Krkn-AI automatically evolves and discovers the most effective chaos experiments to test your system's resilience. | ||
|
|
||
| ## 🌟 Features | ||
|
|
||
| - **Genetic Algorithm Optimization**: Automatically evolves chaos scenarios to find optimal testing strategies | ||
| -**Genetic Algorithm Optimization**: Automatically evolves chaos scenarios to find optimal testing strategies, Discovers that terminating pods in a specific sequence reveals a race condition. | ||
|
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. This information isn’t necessary for a quick-look guide. It’s better to keep it short and precise. |
||
| - **Multi-Scenario Support**: Pod failures, container scenarios, node resource exhaustion, and application outages | ||
| - **Kubernetes/OpenShift Integration**: Native support for both platforms | ||
| - **Health Monitoring**: Continuous monitoring of application health during chaos experiments | ||
| - **Prometheus Integration**: Metrics-driven fitness evaluation | ||
| - **Prometheus Integration**: Metrics-driven fitness evaluation,scenarios that trigger SLO violations get higher fitness scores. | ||
| - **Configurable Fitness Functions**: Point-based and range-based fitness evaluation | ||
| - **Population Evolution**: Maintains and evolves populations of chaos scenarios across generations | ||
|
|
||
|
|
@@ -64,6 +64,7 @@ oc config set-context --current --namespace=$DEMO_NAMESPACE | |
|
|
||
| ### Setup Monitoring and Testing | ||
|
|
||
|
|
||
| ```bash | ||
| # Setup NGINX reverse proxy for external access | ||
| ./scripts/setup-nginx.sh | ||
|
|
@@ -304,14 +305,26 @@ Krkn-AI saves results in the specified output directory: | |
|
|
||
| The current version of Krkn-AI leverages an [evolutionary algorithm](https://en.wikipedia.org/wiki/Evolutionary_algorithm), an optimization technique that uses heuristics to identify chaos scenarios and components that impact the stability of your cluster and applications. | ||
|
|
||
| 1. **Initial Population**: Creates random chaos scenarios based on your configuration | ||
| 1. **Initial Population**: Creates random chaos scenarios based on your configuration | ||
| 2. **Fitness Evaluation**: Runs each scenario and measures system response using Prometheus metrics | ||
| 3. **Selection**: Identifies the most effective scenarios based on fitness scores | ||
| 4. **Evolution**: Creates new scenarios through crossover and mutation | ||
| 5. **Health Monitoring**: Continuously monitors application health during experiments | ||
| 6. **Iteration**: Repeats the process across multiple generations to find optimal scenarios | ||
|
|
||
|
|
||
| ```text | ||
| ┌─────────────┐ ┌──────────────┐ ┌─────────────┐ ┌────────────────────┐ | ||
| │ Config │─────▶│ Generate │─────▶│ Execute │─────▶│ Evaluate (Fitness)│ | ||
| │ Setup │ │ Scenarios │ │ Chaos │ │ Using Metrics │ | ||
| └─────────────┘ └──────────────┘ └─────────────┘ └────────────────────┘ | ||
| │ │ | ||
| │ ┌──────────────┐ │ | ||
| └─────────│ Evolve & │◀─────────────────┘ | ||
| │ Iterate │ | ||
| └──────────────┘ | ||
| ``` | ||
|
|
||
| ## 🤝 Contributing | ||
|
|
||
| 1. Fork the repository | ||
|
|
||
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.
1. Trailing whitespace fails pre-commit
🐞 Bug⛯ ReliabilityAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools