Skip to content

xlab-uiuc/stratus

Repository files navigation

Development Instructions

  1. Clone the submodules
mkdir stratus-agent
cd stratus-agent
git clone --recurse-submodules [email protected]:xlab-uiuc/Stratus-agent.git
  1. Ensure you are in the Python 3.12 environment.
$ python --version
Python 3.12.x

Python 3.12.9 tested.

  1. Install dependencies
pip install uv crewai crewai-tools
crewai install

crewai install will create the virtual environment in the .venv directory. You can use source .venv/bin/activate to activate the virtual environment.

  1. Create a .env based on .env.tmpl by running:
cp .env.tmpl .env

Update the values here to switch LLM backends.

  1. Connect to Kubernetes cluster If you are testing in AIOpsLab, please follow this guide.

If you are testing in ITBench, please follow this guide.

  1. (Optional if testing ITBench) Copy and modify config.yml file
cd AIOpsLab/aiopslab
cp config.yml.example config.yml

# Then modify the copied file as you need.
  1. Modify .env for respective bench In the .env file, modify the environment variable BENCHMARK to either ITBench or AIOpsLab according to your need, such as :
BENCHMARK="AIOpsLab"
  1. Test installation For testing the agent on one task of AIOpsLab, run this:
bash test_agent.sh -r <x86/arm> <task_name>

For testing the agent on ITBench, make sure you have deployed the SRE scenario you want to test, then run this:

bash test_agent.sh -p
  1. Running evaluations We currently support running multiple tasks on AIOpsLab in one command.

First, open eval/eval_tasks.yaml. You should see similar file content like this:

detections:
  - misconfig_app_hotel_res-detection-1
mitigations:
  - k8s_target_port-misconfig-mitigation-1

Modify the tasks according to your evaluation needs. If for certain task type, you have no desired tasks, delete the key in the yaml file, such as:

mitigations:
  - k8s_target_port-misconfig-mitigation-1

Then, run the eval script.

python eval/eval.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •